<table border="1" cellspacing="0" cellpadding="8">
    <tr>
        <th>Issue</th>
        <td>
            <a href=https://github.com/llvm/llvm-project/issues/121161>121161</a>
        </td>
    </tr>

    <tr>
        <th>Summary</th>
        <td>
            [BOLT] const llvm::bolt::AddressMap& llvm::bolt::BinaryContext::getIOAddressMap() const: Assertion `IOAddressMap && "Address map not set yet"' failed
        </td>
    </tr>

    <tr>
      <th>Labels</th>
      <td>
            BOLT
      </td>
    </tr>

    <tr>
      <th>Assignees</th>
      <td>
      </td>
    </tr>

    <tr>
      <th>Reporter</th>
      <td>
          dcci
      </td>
    </tr>
</table>

<pre>
    ```
[...]
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)
[...]
```
</pre>
<img width="1" height="1" alt="" src="http://email.email.llvm.org/o/eJzsWF9v4y4W_TTkBdXCOP73kAcnrXe76m9aTTvSvlkYSMIWgwW4bfbTr8CZcZLptJ1VVquRGrWJjS_nHg7XwL3EWrFRnC9AugTp5YwMbqvNglEqZq1muwXI0P4PVSBdRlEE0kuAquXtzcPF9Zf6FiQV1IPrBwelUI-cQbIhQlkH_ZcZOq4ccUIraAblRMehFK0hZgfwyl9CrpzZwV4L5aCwEL1kqI0xOvVBJScG9kZTzgbDv5uWNP_J1HLnhNrAhisGnQ52DBEKUCXlU3fRaum8HcD1Vncc4JqRJ8GE0gDXwaI3-l-cOoDrYItroagcGJ8aVtr4u6VQxOxWWjn-4qItSKp4XmaBr_YaeDSQVCCp9k5BUlWMGW7tX6QHOHvV4gh1bNpwd3172LMAuBydeG-VtdwElUGGDg0hwJl3AzDeN8KO9FBp52WCO-4AxgDncE2E5CwCyOuSIIhe0I_POkkyFB9QtTs7XtwZody9I_TxwRDKAS4mI0OeG22d4aQLJFZQKOdZB_IfkH4Qkvlfob4_HMVfopeREcDlnm98whextn2N79dB3YuNIvLvRDHJjd0LeRZK3ulECZ9S4usUHjkHuNgrMjbbiPY9SCo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