Closed llvmbot closed 14 years ago
Unfortunately, we need a small testcase to be able to reproduce and fix this. Please reopen if you can produce one, thanks!
Well, I just start it again and always get the same crash and error. But it would be kind of complicated for you to reproduce that (you would need a lot of files from my environment). And you need all of them because it will not start otherwise. All of the stuff is available and open though, so I can explain how you can install and setup everything. But not sure if you really want to do that.
I also tried to reduce the test case a bit. I wasn't able yet to reproduce the problem about the missing __dso_handle address. I also couldn't reproduce the pure virtual function call. However, I could reproduce mostly the same crash. See bug #7131 about it.
Please explain how to reproduce this.
(gdb) bt full
No symbol table info available.
No symbol table info available.
No symbol table info available.
No symbol table info available.
No symbol table info available.
No symbol table info available.
No symbol table info available.
No symbol table info available.
No locals.
No locals.
No locals.
Size = 16
No locals.
No locals.
No locals.
No locals.
No locals.
No locals.
I = {
_M_node = 0x48dc3f0 } E = { _M_node = 0x1807294 }
MDNodes = {
<llvm::SmallVectorImpl<llvm::MDNode>> = { <llvm::SmallVectorTemplateBase<llvm::MDNode,true>> = { <llvm::SmallVectorTemplateCommon<llvm::MDNode*>> = {
Extended Description
I am not sure if the LLVM ERROR is also a bug in lli (or just related to a problem in my code). At least the pure virtual method call seems to be a bug in lli.
LLVM ERROR: Could not resolve external global address: __dso_handle pure virtual method called terminate called without an active exception
Program received signal SIGABRT, Aborted. 0x94cbee42 in __kill () (gdb) bt
0 0x94cbee42 in __kill ()
1 0x94cbee34 in kill$UNIX2003 ()
2 0x94d3123a in raise ()
3 0x94d3d679 in abort ()
4 0x9472c005 in __gnu_cxx::__verbose_terminate_handler ()
5 0x9472a10c in __gxx_personality_v0 ()
6 0x9472a14b in std::terminate ()
7 0x9472a6da in __cxa_pure_virtual ()
8 0x00638c0f in llvm::raw_ostream::write (this=0x6f9b80, Ptr=0x69494d "While deleting: ", Size=16) at raw_ostream.cpp:249
9 0x0063810e in llvm::circular_raw_ostream::write_impl (this=0x6f98c0, Ptr=0x69494d "While deleting: ", Size=16) at circular_raw_ostream.cpp:20
10 0x00638c0f in llvm::raw_ostream::write (this=0x6f98c0, Ptr=0x69494d "While deleting: ", Size=16) at raw_ostream.cpp:249
11 0x00206a3a in llvm::raw_ostream::operator<< (this=0x6f98c0, Str={static npos = 4294967295, Data = 0x69494d "While deleting: ", Length = 16}) at raw_ostream.h:179
12 0x001ac141 in llvm::raw_ostream::operator<< (this=0x6f98c0, Str=0x69494d "While deleting: ") at raw_ostream.h:190
13 0x005e1e24 in llvm::Value::~Value (this=0x48dc3d0) at Value.cpp:69
14 0x000125e2 in llvm::User::~User (this=0x48dc3d0) at User.h:79
15 0x000132f8 in llvm::Constant::~Constant (this=0x48dc3d0) at Constant.h:42
16 0x000139f4 in llvm::ConstantExpr::~ConstantExpr (this=0x48dc3d0) at Constants.h:650
17 0x00541de4 in llvm::GetElementPtrConstantExpr::~GetElementPtrConstantExpr (this=0x48dc3d0) at ConstantsContext.h:204
18 0x005a080f in llvm::ConstantUniqueMap<llvm::ExprMapKeyType, llvm::Type, llvm::ConstantExpr, false>::freeConstants (this=0x180728c) at ConstantsContext.h:604
19 0x0059c9d0 in llvm::LLVMContextImpl::~LLVMContextImpl (this=0x1807000) at LLVMContextImpl.cpp:64
20 0x0059ae1c in llvm::LLVMContext::~LLVMContext (this=0x1501330) at LLVMContext.cpp:35
21 0x0059b855 in llvm::object_deleter::call (Ptr=0x1501330) at ManagedStatic.h:31
22 0x00624af4 in llvm::ManagedStaticBase::destroy (this=0x6f9308) at ManagedStatic.cpp:61
23 0x00624b2d in llvm::llvm_shutdown () at ManagedStatic.cpp:71
24 0x0000189e in do_shutdown () at lli.cpp:102
25 0x94c79da7 in __cxa_finalize ()
26 0x94c79c90 in exit ()
27 0x00623266 in llvm::report_fatal_error (reason=@0xbfffe74c) at ErrorHandling.cpp:55
28 0x00267e44 in llvm::ExecutionEngine::emitGlobals (this=0x1501620) at ExecutionEngine.cpp:1055
29 0x0023b5ee in llvm::Interpreter::Interpreter (this=0x1501620, M=0x1511680) at Interpreter.cpp:55
30 0x0023b663 in llvm::Interpreter::create (M=0x1511680, ErrStr=0xbfffe988) at Interpreter.cpp:41
31 0x00263384 in llvm::EngineBuilder::create (this=0xbfffe910) at ExecutionEngine.cpp:480
32 0x00001da3 in main (argc=30, argv=0xbfffea64, envp=0xbfffeae0) at lli.cpp:175