strace bug + prctl (PR_SET_PDEATHSIG, SIGKILL) + threads

Dmitry V. Levin ldv at altlinux.org
Wed Oct 12 09:21:27 UTC 2011


On Wed, Oct 12, 2011 at 10:10:46AM +0600, Марк Коренберг wrote:
> 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.

The strace code you are pointing to is already gone, there is no
handle_group_exit logic anymore, see
http://strace.git.sourceforge.net/git/gitweb.cgi?p=strace/strace;a=commitdiff;h=v4.6-66-g19cdada


-- 
ldv
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 198 bytes
Desc: not available
URL: <http://lists.strace.io/pipermail/strace-devel/attachments/20111012/9ac93c09/attachment.bin>


More information about the Strace-devel mailing list