strace bug + prctl (PR_SET_PDEATHSIG, SIGKILL) + threads

Марк Коренберг socketpair at gmail.com
Wed Oct 12 04:10:46 UTC 2011


Suppose this scenario:

$ pstree -upal
....
strace,26778 -ff -o jjjjj ./main
  └─main,26779
      ├─main,26780
      ├─main,26781
      ├─main,26782
      │   └─{main},26794
      ├─main,26783
      ├─main,26784
      ├─main,26785
      ├─main,26786
      ├─main,26787
      ├─main,26788
      └─main,26789
...

Subprocesses (like 26782) use  "prctl (PR_SET_PDEATHSIG, SIGKILL)" to
dead when "root main process (26779)" unexpectedly exits.

subprocesses creates threads (like 26794).

Now, when some threads exists, and I issue kill -KILL 26779, strace
writes following:

PANIC: handle_group_exit: 26794 leader 26782

I don't know what it is, but probably this is a bug.


-- 
Segmentation fault




More information about the Strace-devel mailing list