See the hanging Python stacktrace in futex (..., FUTEX_WAIT_BITSET_PRIVATE | ...)

The python process freezes in futex ():

root@pc :~# strace -p 9042 strace: Process 9042 attached futex(0x1e61900, FUTEX_WAIT_BITSET_PRIVATE|FUTEX_CLOCK_REALTIME, 0, NULL, ffffffff 

I want to see stacktrace if the process is hanging.

Unfortunately, ctrl-c does not work: - (

How can I see stacktrace if Python is hanging like this?

+5
source share
1 answer
  • install python gdb extensions if necessary for your system (see here or see your distribution documentation)
  • bind gdb to your process freeze
  • run

     (gdb) py-bt 

    instead of regular bt to get python return line

+4
source

All Articles