Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

test/functionalities/thread/main.c relies on undefined pthread mutex behaviour #18435

Closed
emaste opened this issue Nov 26, 2013 · 2 comments
Closed
Assignees
Labels
bugzilla Issues migrated from bugzilla lldb

Comments

@emaste
Copy link
Member

emaste commented Nov 26, 2013

Bugzilla Link 18061
Resolution FIXED
Resolved on Apr 09, 2014 09:48
Version unspecified
OS FreeBSD

Extended Description

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.

@emaste
Copy link
Member Author

emaste commented Nov 26, 2013

assigned to @emaste

@emaste
Copy link
Member Author

emaste commented Apr 9, 2014

Resolved by r205900

@llvmbot llvmbot transferred this issue from llvm/llvm-bugzilla-archive Dec 9, 2021
This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bugzilla Issues migrated from bugzilla lldb
Projects
None yet
Development

No branches or pull requests

1 participant