threads/83914: [libc] popen() doesn't work in static threaded
programs.
Andrey Sverdlichenko
blaze at ruddy.ru
Thu Jul 12 16:10:11 UTC 2007
The following reply was made to PR threads/83914; it has been noted by GNATS.
From: "Andrey Sverdlichenko" <blaze at ruddy.ru>
To: bug-followup at freebsd.org, phk at critter.freebsd.dk
Cc:
Subject: Re: threads/83914: [libc] popen() doesn't work in static threaded programs.
Date: Thu, 12 Jul 2007 19:41:27 +0400
Same problem exists in FreeBSD 6.2-RELEASE.
Looks like fork() makes a call to _kse_single_thread(), which set
curthread->attr.flags |=3D PTHREAD_SCOPE_SYSTEM
But in _execve() this flag is gone, so instead of __sys_execve()
call to kse_thr_interrupt() is made and in-kernel check for P_SA
fails.
More information about the freebsd-threads
mailing list