[Bug 18061] New: test/functionalities/thread/main.c relies on undefined pthread mutex behaviour

Bug ID 18061
Summary test/functionalities/thread/main.c relies on undefined pthread mutex behaviour
Product lldb
Version unspecified
Hardware PC
OS FreeBSD
Status NEW
Severity normal
Priority P
Component All Bugs
Assignee lldb-dev@cs.uiuc.edu
Reporter emaste@freebsd.org
Classification Unclassified

See [http://pubs.opengroup.org/onlinepubs/007908775/xsh/pthread_mutex_lock.html](http://pubs.opengroup.org/onlinepubs/007908775/xsh/pthread_mutex_lock.html)

 The pthread_mutex_unlock() function may fail if:

[EPERM]
    The current thread does not own the mutex.

The test code locks mutexes from one thread and unlocks them from another,
which is not allowed.  FreeBSD follows the standard more closely, and so this
test fails.

emaste@freebsd.org changed bug 18061

What Removed Added
Status NEW RESOLVED
Resolution FIXED
Assignee lldb-dev@cs.uiuc.edu emaste@freebsd.org

Comment # 1 on bug 18061 from emaste@freebsd.org

Resolved by r205900