Skip to content

[BOLT] const llvm::bolt::AddressMap& llvm::bolt::BinaryContext::getIOAddressMap() const: Assertion `IOAddressMap && "Address map not set yet"' failed #121161

Open
@dcci

Description

[...]
BOLT-INFO: output linked against instrumentation runtime library, lib entry point is 0x60b120
BOLT-INFO: clear procedure is 0x609c70
BOLT-INFO: setting _end to 0x60d0ac
llvm-bolt: /home/davidino/llvm-project/bolt/include/bolt/Core/BinaryContext.h:1496: const llvm::bolt::AddressMap& llvm::bolt::BinaryContext::getIOAddressMap() const: Assertion `IOAddressMap && "Address map not set yet"' failed.
 #0 0x0000000000f33601 llvm::sys::PrintStackTrace(llvm::raw_ostream&, int) (/home/davidino/llvm-project/build/bin/llvm-bolt+0xf33601)
 #1 0x0000000000f30dbb llvm::sys::RunSignalHandlers() (/home/davidino/llvm-project/build/bin/llvm-bolt+0xf30dbb)
 #2 0x0000000000f30ef5 SignalHandler(int) Signals.cpp:0:0
 #3 0x00007efd77a3e730 __restore_rt (/lib64/libc.so.6+0x3e730)
 #4 0x00007efd77a8bacc __pthread_kill_implementation (/lib64/libc.so.6+0x8bacc)
 #5 0x00007efd77a3e686 gsignal (/lib64/libc.so.6+0x3e686)
 #6 0x00007efd77a28833 abort (/lib64/libc.so.6+0x28833)
 #7 0x00007efd77a2875b _nl_load_domain.cold (/lib64/libc.so.6+0x2875b)
 #8 0x00007efd77a373c6 (/lib64/libc.so.6+0x373c6)
 #9 0x000000000179c0b1 (/home/davidino/llvm-project/build/bin/llvm-bolt+0x179c0b1)
#10 0x000000000101c10d void llvm::bolt::RewriteInstance::updateELFSymbolTable<llvm::object::ELFType<(llvm::endianness)1, true>, void llvm::bolt::RewriteInstance::patchELFSymTabs<llvm::object::ELFType<(llvm::endianness)1, true>>(llvm::object::ELFObjectFile<llvm::object::ELFType<(llvm::endianness)1, true>>*)::'lambda1'(unsigned long, llvm::object::Elf_Sym_Impl<llvm::object::ELFType<(llvm::endianness)1, true>> const&), void llvm::bolt::RewriteInstance::patchELFSymTabs<llvm::object::ELFType<(llvm::endianness)1, true>>(llvm::object::ELFObjectFile<llvm::object::ELFType<(llvm::endianness)1, true>>*)::'lambda2'(llvm::StringRef)>(llvm::object::ELFObjectFile<llvm::object::ELFType<(llvm::endianness)1, true>>*, bool, llvm::object::ELFObjectFile<llvm::object::ELFType<(llvm::endianness)1, true>>::Elf_Shdr const&, std::vector<unsigned int, std::allocator<unsigned int>> const&, void llvm::bolt::RewriteInstance::patchELFSymTabs<llvm::object::ELFType<(llvm::endianness)1, true>>(llvm::object::ELFObjectFile<llvm::object::ELFType<(llvm::endianness)1, true>>*)::'lambda1'(unsigned long, llvm::object::Elf_Sym_Impl<llvm::object::ELFType<(llvm::endianness)1, true>> const&), void llvm::bolt::RewriteInstance::patchELFSymTabs<llvm::object::ELFType<(llvm::endianness)1, true>>(llvm::object::ELFObjectFile<llvm::object::ELFType<(llvm::endianness)1, true>>*)::'lambda2'(llvm::StringRef)) (/home/davidino/llvm-project/build/bin/llvm-bolt+0x101c10d)
#11 0x000000000101f294 void llvm::bolt::RewriteInstance::patchELFSymTabs<llvm::object::ELFType<(llvm::endianness)1, true>>(llvm::object::ELFObjectFile<llvm::object::ELFType<(llvm::endianness)1, true>>*) (/home/davidino/llvm-project/build/bin/llvm-bolt+0x101f294)
#12 0x000000000102ae2a llvm::bolt::RewriteInstance::rewriteFile() (/home/davidino/llvm-project/build/bin/llvm-bolt+0x102ae2a)
#13 0x000000000102c807 llvm::bolt::RewriteInstance::run() (/home/davidino/llvm-project/build/bin/llvm-bolt+0x102c807)
#14 0x000000000041189a main (/home/davidino/llvm-project/build/bin/llvm-bolt+0x41189a)
#15 0x00007efd77a295d0 __libc_start_call_main (/lib64/libc.so.6+0x295d0)
#16 0x00007efd77a29680 __libc_start_main@GLIBC_2.2.5 (/lib64/libc.so.6+0x29680)
#17 0x00000000004b3a15 _start (/home/davidino/llvm-project/build/bin/llvm-bolt+0x4b3a15)
PLEASE submit a bug report to https://github.com/llvm/llvm-project/issues/ and include the crash backtrace.
Stack dump:
0.      Program arguments: /home/davidino/llvm-project/build/bin/llvm-bolt --instrument --instrumentation-file=/tmp/ssUwUPBpkJMUwFDzkrBk93XNh.c.fdata /tmp/ssUwUPBpkJMUwFDzkrBk93XNh.o -o /tmp/ssUwUPBpkJMUwFDzkrBk93XNh.o.instrumented
Aborted (core dumped)
[...]

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Assignees

Labels

BOLTcrashPrefer [crash-on-valid] or [crash-on-invalid]

Type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions