LLVM Bugzilla is read-only and represents the historical archive of all LLVM issues filled before November 26, 2021. Use github to submit LLVM bugs

Bug 18061 - test/functionalities/thread/main.c relies on undefined pthread mutex behaviour
Summary: test/functionalities/thread/main.c relies on undefined pthread mutex behaviour
Status: RESOLVED FIXED
Alias: None
Product: lldb
Classification: Unclassified
Component: All Bugs (show other bugs)
Version: unspecified
Hardware: PC FreeBSD
: P normal
Assignee: emaste
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-11-25 19:01 PST by emaste
Modified: 2014-04-09 09:48 PDT (History)
0 users

See Also:
Fixed By Commit(s):


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description emaste 2013-11-25 19:01:18 PST
See 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.
Comment 1 emaste 2014-04-09 09:48:54 PDT
Resolved by r205900