[LLVMbugs] [Bug 14713] New: Segmentation fault in produced binary when using -pg -O2

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Tue Dec 25 08:16:20 PST 2012


             Bug #: 14713
           Summary: Segmentation fault in produced binary when using -pg
           Product: clang
           Version: 3.2
          Platform: PC
        OS/Version: Linux
            Status: NEW
          Severity: normal
          Priority: P
         Component: -New Bugs
        AssignedTo: unassignedclangbugs at nondot.org
        ReportedBy: askondro at gmail.com
                CC: llvmbugs at cs.uiuc.edu
    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.

More information about the llvm-bugs mailing list