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

             Bug #: 14713
           Summary: Segmentation fault in produced binary when using -pg
                    -O2
           Product: clang
           Version: 3.2
          Platform: PC
        OS/Version: Linux
            Status: NEW
          Severity: normal
          Priority: P
         Component: -New Bugs
        AssignedTo: [email protected]
        ReportedBy: [email protected]
                CC: [email protected]
    Classification: Unclassified


When compiling this simple code with clang++ -pg -O2 -g

#include <iostream>

int main () {
    std::cout << "hello" << std::endl;
    return 0;
}

the produced binary results in segmentation fault.

Program received signal SIGSEGV, Segmentation fault.
0x00007ffff730af4b in mcount () from /usr/lib/libc.so.6
(gdb) bt
#0  0x00007ffff730af4b in mcount () from /usr/lib/libc.so.6
#1  0x0000000000000000 in ?? ()


With clang++ -pg -O0 -g it works without problems.

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

Reply via email to