print a stack trace of a running process

gstack PID

Thread 3 (Thread 0x7f196867d700 (LWP 1873)):
#0 0x00007f1988a89c6b in poll () from /lib64/libc.so.6
#1 0x00007f1983965eb9 in g_main_context_iterate.isra () from /lib64/libglib-2.0.so.0
#2 0x00007f1983965fcc in g_main_context_iteration () from /lib64/libglib-2.0.so.0
#3 0x00007f19898e0d1f in QEventDispatcherGlib::processEvents(QFlags) () from /lib64/libQt5Core.so.5

Leave a Reply

Your email address will not be published. Required fields are marked *