Consultor Eletrônico



Kbase P58872: How to get a stack trace from a Progress process on Linux?
Autor   Progress Software Corporation - Progress
Acesso   Público
Publicação   07/04/2006
Status: Verified

GOAL:

How to attach a debug module get a stack trace on Linux?

GOAL:

How to use gdb on Linux?

GOAL:

How to get a stack trace from a process on Linux?

GOAL:

How to attach to a PID on Linux and get a stack trace?

GOAL:

How to use gdb to get a stack trace on Linux?

FACT(s) (Environment):

Linux Intel

FIX:

The executable name for debug is gdb. The gdb command is part of a debug package and needs to be installed on the machine before proceeding with these steps.

1. Login in as root.
2. Find the PID for the running process
3. Execute the following command to attach to the running process:
gdb <PATH-TO-EXECUTABLE> <PID>
4. That should load the gdb application
5. Once connected to the process, type where to get a stack trace for the process.