[LLVMbugs] [Bug 22324] New: clang-3.6 thread sanitizer complains on shared_ptr operations
bugzilla-daemon at llvm.org
bugzilla-daemon at llvm.org
Sat Jan 24 12:29:08 PST 2015
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: unassignedclangbugs at nondot.org
Reporter: mendola at gmail.com
CC: dgregor at apple.com, llvmbugs at cs.uiuc.edu
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.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20150124/1b26f83f/attachment.html>
More information about the llvm-bugs
mailing list