threads/119920: fork broken in libpthread

Landon Fuller landonf at bikemonkey.org
Tue Jan 29 15:15:05 PST 2008


On Jan 29, 2008, at 13:13, Daniel Eischen wrote:
>>
>
> There is a bug somewhere else or something is stomping
> on the thread's lockuser.  It is allocated once when the
> thread is created and should never be null thereafter.
> Hence, it should never be malloc'd and the reinit should
> be sufficient.

I'm totally unfamiliar with KSE, so perhaps this a stupid question --  
it seems to solve the issue locally, so I'll ask it --
Why not place the fork() code inside of _kse_critical_enter /  
_kse_critical_leave, to ensure upcalls are blocked while re- 
initializing in the child process post-fork?

Unless I'm off base, this should be an adequate replacement for this  
code?
	http://www.freebsd.org/cgi/cvsweb.cgi/src/sys/kern/kern_fork.c.diff? 
r1=1.285;r2=1.286

-landonf
-------------- next part --------------
A non-text attachment was scrubbed...
Name: PGP.sig
Type: application/pgp-signature
Size: 186 bytes
Desc: This is a digitally signed message part
Url : http://lists.freebsd.org/pipermail/freebsd-threads/attachments/20080129/b553fc7e/PGP.pgp


More information about the freebsd-threads mailing list