[LLVMbugs] [Bug 300] NEW: SIGSEGV On Initialization

bugzilla-daemon at cs.uiuc.edu bugzilla-daemon at cs.uiuc.edu
Thu Mar 18 21:49:25 PST 2004


http://llvm.cs.uiuc.edu/bugs/show_bug.cgi?id=300

           Summary: SIGSEGV On Initialization
           Product: libraries
           Version: trunk
          Platform: PC
        OS/Version: Linux
            Status: NEW
          Severity: blocker
          Priority: P2
         Component: Core LLVM classes
        AssignedTo: unassignedbugs at nondot.org
        ReportedBy: rspencer at x10sys.com


I have placed vmcore.o and bcwriter.o in a shared library (libXPS.so) via
libtool. When I start up any XPS executable, I get a SIGSEGV at the pointer
given by the stack trace below.

I'm not sure if this is due to the way I'm linking LLVM but I will investigate
this problem and find more details.

Stack Trace:

Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread 1090372928 (LWP 15807)]
0x081b99bf in std::_Rb_tree<llvm::Type const*, std::pair<llvm::Type const*
const, std::string>, std::_Select1st<std::pair<llvm::Type const* const,
std::string> >, std::less<llvm::Type const*>,
std::allocator<std::pair<llvm::Type const* const, std::string> >
>::lower_bound(llvm::Type const* const&) (
    this=0x822c694, __k=@0xbfffdf78) at stl_tree.h:1320
1320          _Link_type __x = _M_root(); /* Current node. */
(gdb) where
#0  0x081b99bf in std::_Rb_tree<llvm::Type const*, std::pair<llvm::Type const*
const, std::string>, std::_Select1st<std::pair<llvm::Type const* const,
std::string> >, std::less<llvm::Type const*>,
std::allocator<std::pair<llvm::Type const* const, std::string> >
>::lower_bound(llvm::Type const* const&) (
    this=0x822c694, __k=@0xbfffdf78) at stl_tree.h:1320
#1  0x081b999a in std::map<llvm::Type const*, std::string, std::less<llvm::Type
const*>, std::allocator<std::pair<llvm::Type const* const, std::string> >
>::lower_bound(llvm::Type const* const&) (this=0x822c694, __x=@0xbfffdf78) at
stl_map.h:508
#2  0x081b7863 in std::map<llvm::Type const*, std::string, std::less<llvm::Type
const*>, std::allocator<std::pair<llvm::Type const* const, std::string> >
>::operator[](llvm::Type const* const&) (this=0x822c694, __k=@0xbfffdf78) at
stl_map.h:316
#3  0x0814cd21 in Type (this=0x403efd20, name=@0xbfffdfdc, id=TypeTyID) at
/proj/work/llvm/llvm/lib/VMCore/Type.cpp:48
#4  0x081b9d30 in TypeType (this=0x403efd20) at
/proj/work/llvm/llvm/lib/VMCore/Type.cpp:316
#5  0x40212fe3 in __static_initialization_and_destruction_0 (__initialize_p=1,
__priority=65535) at /proj/work/llvm/llvm/lib/VMCore/Type.cpp:317
#6  0x40213c20 in _GLOBAL__I__ZN4llvm16AbstractTypeUserD2Ev () at stl_map.h:120
#7  0x4035a2c5 in __do_global_ctors_aux () from
/proj/work/xps.dbg/xps/.libs/libXPS.so.0
#8  0x401ddf81 in _init () from /proj/work/xps.dbg/xps/.libs/libXPS.so.0
#9  0x4000cab1 in _dl_init_internal () from /lib/ld-linux.so.2
#10 0x40000c5d in _dl_start_user () from /lib/ld-linux.so.2



------- 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