Salesforce

How to use GDB to create a stack trace for all the threads in PASOE or multi-threaded DB Server.

« Go Back

Information

 
TitleHow to use GDB to create a stack trace for all the threads in PASOE or multi-threaded DB Server.
URL NameHow-to-use-GDB-to-create-a-stack-trace-for-all-the-threads-in-PASOE
Article Number000228698
EnvironmentProduct: OpenEdge
Version: 11.x, 12.x
OS: UNIX, Linux
Other: PASOE
Question/Problem Description

How to use GDB to create a stack trace for all the threads in PASOE.
How to use GDB to create a stack trace for all the threads in multi-threaded DB Server.

 

Steps to Reproduce
Clarifying Information
Error Message
Defect Number
Enhancement Number
Cause
Resolution

To create a stack trace for all the threads in a PASOE Agent process it is possible to use the GDB debugger like this:

gdb --pid=<PID# of multi-threaded process> -ex "thread apply all bt" -ex "detach" -ex "quit" > PID_stack.txt

NOTE: If gdb does not detach from the process and a quit is executed the process will abruptly terminate, potentially holding latches if the process is connected through shared memory to the database. So it is important the "detach" command is executed.  The parameter -ex "detach" in the command above will do that before quitting.

Workaround
Notes
Keyword Phrase
Last Modified Date8/20/2025 11:34 AM

Powered by