[LLVMbugs] [Bug 12158] sig 11 sometimes when accessing std::cout from multiple threads.
bugzilla-daemon at llvm.org
bugzilla-daemon at llvm.org
Sat Jun 29 21:15:53 PDT 2013
http://llvm.org/bugs/show_bug.cgi?id=12158
Seth <seth.cantrell at gmail.com> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|RESOLVED |REOPENED
Resolution|FIXED |---
--- Comment #3 from Seth <seth.cantrell at gmail.com> ---
I've updated and rebuilt libcxx (r185275, git commit 02786c613), but the
example program still crashes sometimes.
I ran the program using the following bash command:
for i in {1..100}; do ./a.out > /dev/null; done
and the result with r185275 was:
Segmentation fault: 11
Segmentation fault: 11
Abort trap: 6
Segmentation fault: 11
Segmentation fault: 11
Segmentation fault: 11
Segmentation fault: 11
Segmentation fault: 11
Killed: 9
Segmentation fault: 11
Segmentation fault: 11
Segmentation fault: 11
Segmentation fault: 11
Segmentation fault: 11
Segmentation fault: 11
Abort trap: 6
Segmentation fault: 11
summary:
14 segmentation faults, two aborts, one hang (I killed the process from
Activity Monitor.app after several seconds).
Below are the command lines I used.
to update and build libc++:
git svn fetch && git merge git-svn; (cd lib;
CXX=~/Programming/llvm-ninja-build/bin/clang++ TRIPLE=-apple- ./buildit)
To compile:
/Users/socantre/Programming/llvm-ninja-build/bin/clang++ -nostdinc++ -I
~/Programming/libcxx/include -std=c++11 -c main.cpp
To link:
/Users/socantre/Programming/llvm-ninja-build/bin/clang++ -nostdlib -L
~/Programming/libcxx/lib -lc++ -lpthread main.o
--
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/20130630/d93be55c/attachment.html>
More information about the llvm-bugs
mailing list