[LLVMbugs] [Bug 5186] New: hello.cpp && lli: Addr && "Code generation didn' t add function to GlobalAddress table!"
bugzilla-daemon at cs.uiuc.edu
bugzilla-daemon at cs.uiuc.edu
Wed Oct 14 03:13:30 PDT 2009
http://llvm.org/bugs/show_bug.cgi?id=5186
Summary: hello.cpp && lli: Addr && "Code generation didn't add
function to GlobalAddress table!"
Product: new-bugs
Version: trunk
Platform: PC
OS/Version: Linux
Status: NEW
Severity: normal
Priority: P2
Component: new bugs
AssignedTo: unassignedbugs at nondot.org
ReportedBy: timo.lindfors at iki.fi
CC: llvmbugs at cs.uiuc.edu
Created an attachment (id=3655)
--> (http://llvm.org/bugs/attachment.cgi?id=3655)
bitcode that causes the assertion
Steps to reproduce:
1) cat > testcase.cpp <<EOF
#include <iostream>
int main()
{
std::cout << "hello world\n";
return 0;
}
EOF
2) llvm-g++ hello.cpp -emit-llvm -c -o hello.bc
3) lli hello.bc
Expected results:
3) the program prints "hello world"
Actual results:
3) lli prints
lli: JIT.cpp:673: virtual void*
llvm::JIT::getPointerToFunction(llvm::Function*): Assertion `Addr && "Code
generation didn't add function to GlobalAddress table!"' failed.
0 lli 0x087c5d98
Stack dump:
0. Program arguments: lli hello.bc
Aborted (core dumped)
More info:
1) "clang hello.cpp -emit-llvm -c -o hello2.bc hello.bc" and "lli hello2.bc"
prints "hello world"
2) Version information:
llvm-gcc r83879
llvm r84032
clang r83964
--
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