[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:
> the original fix of a hang of vfork() tracing with -f was posted here:
> 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.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Size: 197 bytes
Desc: not available
More information about the Strace-devel