This is the mail archive of the
glibc-bugs@sourceware.org
mailing list for the glibc project.
[Bug nptl/12674] sem_post/sem_wait race causing sem_post to return EINVAL
- From: "drepper.fsp at gmail dot com" <sourceware-bugzilla at sourceware dot org>
- To: glibc-bugs at sources dot redhat dot com
- Date: Tue, 19 Apr 2011 11:26:37 +0000
- Subject: [Bug nptl/12674] sem_post/sem_wait race causing sem_post to return EINVAL
- Auto-submitted: auto-generated
- References: <bug-12674-131@http.sourceware.org/bugzilla/>
http://sourceware.org/bugzilla/show_bug.cgi?id=12674
--- Comment #4 from Ulrich Drepper <drepper.fsp at gmail dot com> 2011-04-19 11:25:39 UTC ---
There cannot be any question that it is illegal. You pass a pointer to the
semaphore to sem_post and just because it is half-finished and a sem_wait
succeeds this doesn't mean the call must be done. As I said, only when the
sem_post call also returns is the semaphore unused.
--
Configure bugmail: http://sourceware.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.