IBM Support

HOW TO GET A STACK TRACE FROM A PROGRESS PROCESS ON LINUX

How To


Summary

How to attach a debug module get a stack trace on Linux?
How to use gdb on Linux?
How to get a stack trace from a process on Linux?
How to attach to a PID on Linux and get a stack trace?
How to use gdb to get a stack trace on Linux?

Objective

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

[{"Business Unit":{"code":"BU059","label":"IBM Software w\/o TPS"},"Product":{"code":"SSUSQ8","label":"IBM Netezza Analytics"},"Component":"","Platform":[{"code":"PF025","label":"Platform Independent"}],"Version":"All Versions","Edition":"","Line of Business":{"code":"LOB10","label":"Data and AI"}}]

Document Information

Modified date:
03 June 2022

UID

ibm10728281