[PATCH] RFC: do not detach when we think tracee is going to die

Dmitry V. Levin ldv at altlinux.org
Wed Aug 17 18:32:54 UTC 2011


On Wed, Aug 17, 2011 at 07:33:57PM +0200, Denys Vlasenko wrote:
[...]
> We might have moderately bad news. I tested current git
> on 2.4.32 kernel (ISO image from
> http://mirrors.kernel.org/openwall/Owl/2.0-release/iso/Owl-2.0-release-i386.iso.gz
> )
> 
> and test/childthread.c testcase apparently shows that exit_group
> syscall *returns* under ptrace.

"./strace -f time ls" also produces quite an unexpected output on
that system.

> IOW: the "detach before exit" might be a necessity even
> on latest 2.4 kernels. Need to test 2.4.37...

I've made an installation from Owl-2.0-release-i386.iso.gz and updated it
to 2.0-stable with linux-2.4.37.9-ow1 kernel, the qemu image could be
found at ftp://ftp.altlinux.org/pub/people/ldv/owl/owl-2.0-stable-hd.img.xz

Looks like no essential differences from 2.4.32, though.


-- 
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/20110817/8f42946e/attachment.bin>


More information about the Strace-devel mailing list