[llvm-bugs] [Bug 30202] New: notify_all_at_thread_exit seg faults if run from a raw pthread context.
via llvm-bugs
llvm-bugs at lists.llvm.org
Tue Aug 30 13:05:58 PDT 2016
https://llvm.org/bugs/show_bug.cgi?id=30202
Bug ID: 30202
Summary: notify_all_at_thread_exit seg faults if run from a raw
pthread context.
Product: libc++
Version: unspecified
Hardware: PC
OS: Linux
Status: NEW
Severity: normal
Priority: P
Component: All Bugs
Assignee: unassignedclangbugs at nondot.org
Reporter: ben.craig at codeaurora.org
CC: llvm-bugs at lists.llvm.org, mclow.lists at gmail.com
Classification: Unclassified
std::thread's ctor allocates a __thread_struct, and stuffs it in a thread local
variable. std::notify_all_at_thread_exit tries to use that __thread_struct.
If a thread is created with pthread_create instead of std::thread, then the
__thread_struct never gets allocated, and std::notify_all_at_thread_exit seg
faults.
--
You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20160830/fdd7a3ea/attachment.html>
More information about the llvm-bugs
mailing list