This is the mail archive of the
glibc-bugs@sourceware.org
mailing list for the glibc project.
[Bug nptl/17214] Expose a function to reset the PID cache
- From: "sstewartgallus00 at mylangara dot bc.ca" <sourceware-bugzilla at sourceware dot org>
- To: glibc-bugs at sourceware dot org
- Date: Tue, 26 Aug 2014 18:11:13 +0000
- Subject: [Bug nptl/17214] Expose a function to reset the PID cache
- Auto-submitted: auto-generated
- References: <bug-17214-131 at http dot sourceware dot org/bugzilla/>
https://sourceware.org/bugzilla/show_bug.cgi?id=17214
--- Comment #7 from Steven Stewart-Gallus <sstewartgallus00 at mylangara dot bc.ca> ---
Strange, Rich.
The source in pthread_join says:
/* Wait for the child. */
lll_wait_tid (pd->tid);
However, I'm sure I wasn't mistaken when my code was randomly failing
at unshare(CLONE_NEWPID).
The idea that the pthread_join completed before the kernel recognized
the thread as dead seemed very logical to me but I may be wrong.
Alternatively, there could a tiny bug in the kernel or in GLibc as
this logic is probably infreguently tested. I'll try to create a
reduced test for the problem.
In any case, unshare(CLONE_NEWPID); then fork is kind of fragile and
weird (for one, the spawned process after fork doesn't get immunity to
signals like an init should).
--
You are receiving this mail because:
You are on the CC list for the bug.