http://llvm.org/bugs/show_bug.cgi?id=22324
Bug ID: 22324
Summary: clang-3.6 thread sanitizer complains on shared_ptr
operations
Product: clang
Version: trunk
Hardware: PC
OS: Linux
Status: NEW
Severity: normal
Priority: P
Component: Modules
Assignee: [email protected]
Reporter: [email protected]
CC: [email protected], [email protected]
Classification: Unclassified
Compiling the code (using boost 1.54) here:
http://pastebin.com/zh0SPz5n
$ clang++-3.6 -g main.cpp -lboost_system -lboost_thread -fsanitize=thread
it complains about the concurrent operation on two different instances of
shared_ptr pointing to the same int.
Probably clang doesn't understand the homegrown atomic operations in
sp_counted_base_gcc_x86.hpp (may because it use inline assembly?).
Compiling the same source with -DBOOST_SP_USE_PTHREADS then the warning
disappears.
--
You are receiving this mail because:
You are on the CC list for the bug.
_______________________________________________
LLVMbugs mailing list
[email protected]
http://lists.cs.uiuc.edu/mailman/listinfo/llvmbugs