[LLVMbugs] [Bug 1493] NEW: Segfault in produced native executable

bugzilla-daemon at cs.uiuc.edu bugzilla-daemon at cs.uiuc.edu
Sun Jun 3 12:02:08 PDT 2007


           Summary: Segfault in produced native executable
           Product: new-bugs
           Version: unspecified
          Platform: PC
        OS/Version: Linux
            Status: NEW
          Severity: normal
          Priority: P2
         Component: new bugs
        AssignedTo: unassignedbugs at nondot.org
        ReportedBy: maarten at treewalker.org

See attached sources and build+test script.

The bug occurs only when compiling to bytecode and then linking the bytecode 
into a single executable. When I use llvm-g++ to compile each C++ source to 
native object files and link those, the executable runs fine.

Running the bytecode of the executable in lli also produces a segfault.

The std::map, although unused in the code, is essential for the segfault to 
occur. Also, the segfault only occurs when I use two source files: when I put 
this same code in a single C++ source file, it runs fine.

The std::map being part of the problem looks similar to bug 1491, but not 
exactly the same:
- this bug occurs when running the native executable, no errors while linking
- this bug also occurs without -O2

I'm using LLVM 2.0 and its g++ front-end, compiled from source with GCC 4.1.3.

------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.

More information about the llvm-bugs mailing list