[LLVMbugs] [Bug 11728] New: segfault with a C++ code when used with -pthread

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Mon Jan 9 05:55:47 PST 2012


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

             Bug #: 11728
           Summary: segfault with a C++ code when used with -pthread
           Product: clang
           Version: 2.9
          Platform: PC
        OS/Version: All
            Status: NEW
          Severity: normal
          Priority: P
         Component: C++
        AssignedTo: unassignedclangbugs at nondot.org
        ReportedBy: slayoo at igf.fuw.edu.pl
                CC: dgregor at apple.com, llvmbugs at cs.uiuc.edu
    Classification: Unclassified


Created attachment 7855
  --> http://llvm.org/bugs/attachment.cgi?id=7855
bug.cpp and inc.cpp files which trigger a segfault during compilation on my
machine

Trying to compile the attached code I get the following behaviour:

$ clang++ -fsyntax-only -I/opt/local/include -pthread bug.cpp

-> OK

$ clang++ -S -I/opt/local/include bug.cpp

-> OK

$ clang++ -S -I/opt/local/include -pthread bug.cpp

clang: error: unable to execute command: Segmentation fault
clang: error: clang frontend command failed due to signal 1 (use -v to see
invocation)

$ clang++ -E -I/opt/local/include -pthread bug.cpp > code.cpp
$ clang++ -S -I/opt/local/include -pthread code.cpp

-> OK

It might be tricky to reproduce... Please let me know how to get a backtrace
from this segfault? so I'll post it here.

Some relevant version info:
- boost 1.48
- clang 2.9 (tags/RELEASE_29/final)
- OS X 10.6.6 (10J567)

-- 
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.



More information about the llvm-bugs mailing list