http://llvm.org/bugs/show_bug.cgi?id=12158

Seth <[email protected]> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|RESOLVED                    |REOPENED
         Resolution|FIXED                       |---

--- Comment #3 from Seth <[email protected]> ---
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.
_______________________________________________
LLVMbugs mailing list
[email protected]
http://lists.cs.uiuc.edu/mailman/listinfo/llvmbugs

Reply via email to