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?
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
Was this topic helpful?
03 June 2022