This is the mail archive of the glibc-bugs@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]

[Bug nptl/12674] sem_post/sem_wait race causing sem_post to return EINVAL


http://sourceware.org/bugzilla/show_bug.cgi?id=12674

--- Comment #14 from Michael Ballantyne <michael.ballantyne at gmail dot com> ---
I've also run into this bug. Appears to be the cause of random failures in our
scientific computing framework's parallel back end that have kept us from
declaring it production ready for quite some time.

I reproduced in debian jessie with eglibc 2.17.

I've attached an even simpler test-case for purposes of reproducing in gdb
(simple.c). Gdb instructions below.

set target-async 1
set pagination off
set non-stop on
b poster
b sem_wait
r

disas sem_post

# half-finish the sem-post
b *(sem_post+18) thread 2
t 2
c

# run the sem_wait, destroy, and trash memory
b free thread 1
t 1
c

# finish the sem_post and get an error
t 2
c

-- 
You are receiving this mail because:
You are on the CC list for the bug.


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