[patch] ia64 vfork() fix #2

Dmitry V. Levin ldv at altlinux.org
Wed Aug 6 19:31:48 UTC 2008


On Tue, Aug 05, 2008 at 01:51:18PM +0200, Jan Kratochvil wrote:
> Hi,
> 
> the original fix of a hang of vfork() tracing with -f was posted here:
> http://sourceforge.net/mailarchive/message.php?msg_name=20080630132558.GA4346%40host0.dyn.jankratochvil.net
> 
> Unfortunately it did convert vfork() into (+/-) pthread_create() instead of
> intended fork().  It brought no regressions but the fix was incomplete as
> there was a race possibly causing a crash when the child waited too long:
> 
> clone(Process 944 attached (waiting for parent)
> Process 944 resumed (parent 942 ready)
> child_stack=0, flags=CLONE_VM|CLONE_VFORK|SIGCHLD) = 944
> [pid   942] exit_group(0)               = ?
> --- SIGSEGV (Segmentation fault) @ 200000000010ccb1 (58) ---
> Process 944 detached
> 
> Fixed by this patch.  I hope the fix commit is OK when the original patch was
> already accepted.

Looks OK for me.


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


More information about the Strace-devel mailing list