pthread_mutex_destroy fails after successful trylock/unlock
Bug #1387848 reported by
Robert Escriva
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
glibc (Ubuntu) |
New
|
Undecided
|
Unassigned |
Bug Description
The following sequence of calls ends up failing in step 4 with EBUSY:
1) pthread_
2) pthread_
3) pthread_
4) pthread_
I've attached a self-contained example that fails on 14.10 and passes on 14.04. Replacing step 2 with pthread_mutex_lock solves all externally-visible failures.
To post a comment you must log in.