[Bug 1131330] New: pthread_mutex_destroy occasionally returns EBUSY even though mutex is unlocked
http://bugzilla.opensuse.org/show_bug.cgi?id=1131330
Bug ID: 1131330
Summary: pthread_mutex_destroy occasionally returns EBUSY even
though mutex is unlocked
Classification: openSUSE
Product: openSUSE Distribution
Version: Leap 15.0
Hardware: x86-64
OS: SUSE Other
Status: NEW
Severity: Normal
Priority: P5 - None
Component: Basesystem
Assignee: bnc-team-screening@forge.provo.novell.com
Reporter: asbeer@gmail.com
QA Contact: qa-bugs@suse.de
Found By: ---
Blocker: ---
User-Agent: Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML,
like Gecko) Chrome/73.0.3683.86 Safari/537.36
Build Identifier:
I'm running the latest patched/updated OpenSUSE LEAP 15.0. My glibc version is
2.26-lp150.11.9.1. When I compile and run the following program on my system
and let it run for a while (normally less than 30 seconds) it exits indicating
that pthread_mutex_destroy() returned 16 (EBUSY). However, it's obvious from
the code that pthread_mutex_unlock() was called right before
pthread_mutex_destroy() and thus the mutex is not locked. So I believe the
EBUSY value is being erroneously returned in this case.
g++ -g -O2 -o test_ebusy_bug -lpthread test_ebusy_bug.cpp
test_ebusy_bug.cpp:
#include <vector>
#include <thread>
#include
http://bugzilla.opensuse.org/show_bug.cgi?id=1131330
http://bugzilla.opensuse.org/show_bug.cgi?id=1131330#c2
Austin Beer
http://bugzilla.opensuse.org/show_bug.cgi?id=1131330
http://bugzilla.opensuse.org/show_bug.cgi?id=1131330#c7
Austin Beer
http://bugzilla.opensuse.org/show_bug.cgi?id=1131330
http://bugzilla.opensuse.org/show_bug.cgi?id=1131330#c8
--- Comment #8 from Austin Beer
participants (1)
-
bugzilla_noreply@novell.com