This is the mail archive of the libc-alpha@sourceware.org mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Ping[2]: [PATCH] Fix sporadic failure in tst-eintr1 test case


On 10/01/2012 09:12 PM, Jonathan Nieder wrote:
KOSAKI Motohiro wrote:

I have a question. Do any standard require pthread_join() ensure to
reduce NPROC? I guess no.

It's not clear to me, but my guess is also no.

The following passage seems to involve an assumption that joined
threads would not count towards implementation limits (otherwise, why
would it single out unjoined threads in particular?):

	It is unspecified whether a thread that has exited but remains
	unjoined counts against {PTHREAD_THREADS_MAX}.

I ran into this on current Fedora 18.

This smells like a bug in our implementation. Can we fix this in glibc? Any pointers?

pthread_join actually deallocating resources seems fairly important to me as a quality-of-implementation issue, irrespective of what the standard says.

--
Florian Weimer / Red Hat Product Security Team


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]