Skip to content

Instantly share code, notes, and snippets.

@zanieb
Created March 9, 2025 19:28
Show Gist options
  • Save zanieb/258f94e3a9a6ead86f843b914688d620 to your computer and use it in GitHub Desktop.
Save zanieb/258f94e3a9a6ead86f843b914688d620 to your computer and use it in GitHub Desktop.
cpython-3.12> BOLT-INFO: Target architecture: x86_64
cpython-3.12> BOLT-INFO: BOLT version: <unknown>
cpython-3.12> BOLT-INFO: first alloc address is 0x
cpython-3.12> 400000
cpython-3.12> BOLT-INFO: creating new program header table at address 0x600000, offset 0x200000
cpython-3.12> BOLT-INFO: enabling relocation mode
cpython-3.12> BOLT-INFO: forcing -jump-tables=move for instrumentation
cpython-3.12> BOLT-INFO: enabling lite mode
cpython-3.12> BOLT-INFO: 0 out of 11 functions in the binary (
cpython-3.12> 0.0%) have non-empty execution profile
cpython-3.12> BOLT-INSTRUMENTER: Number of indirect call site descriptors: 1
cpython-3.12> BOLT-INSTRUMENTER: Number of indirect call target descriptors: 8
cpython-3.12> BOLT-INSTRUMENTER: Number of function descriptors: 8
cpython-3.12> BOLT-INSTRUMENTER: Number of branch counters: 4
cpython-3.12> BOLT-INSTRUMENTER: Number of ST leaf node counters: 12
cpython-3.12> BOLT-INSTRUMENTER: Number of direct call counters: 0
cpython-3.12> BOLT-INSTRUMENTER: Total number of counters: 16
cpython-3.12> BOLT-INSTRUMENTER: Total size of counters: 128 bytes (static alloc memory)
cpython-3.12> BOLT-INSTRUMENTER: Total size of string table emitted: 202 bytes in file
cpython-3.12> BOLT-INSTRUMENTER: Total size of descriptors: 988 bytes in file
cpython-3.12> BOLT-INSTRUMENTER: Profile will be saved to file /build/Python-3.12.9/python.bolt
cpython-3.12> BOLT-INFO: removed 1 empty block
cpython-3.12> BOLT-INFO: removed 1 'repz' prefixes with estimated execution count of 0 times.
cpython-3.12> BOLT-INFO: UCE removed 3 blocks and 133 bytes of code
cpython-3.12> BOLT-INFO: padding code to 0xa00000 to accommodate hot text
cpython-3.12> BOLT-INFO: output linked against instrumentation runtime library, lib entry point is 0xa06850
cpython-3.12> BOLT-INFO: clear procedure is 0xa02350
cpython-3.12> BOLT-INFO: setting _end to 0xa0a0dc
cpython-3.12> BOLT-INFO: setting _end to 0xa0a0dc
cpython-3.12> BOLT-INFO: setting __bolt_runtime_start to 0xa06810
cpython-3.12> BOLT-INFO: setting __bolt_runtime_fini to 0xa06850
cpython-3.12> BOLT-INFO: setting __hot_start to 0x800000
cpython-3.12> BOLT-INFO: setting __hot_end to 0x8002f4
cpython-3.12> BOLT-INFO: shared object or position-independent executable detected
cpython-3.12> BOLT-INFO: Target architecture: x86_64
cpython-3.12> BOLT-INFO: BOLT version: <unknown>
cpython-3.12> BOLT-INFO: first alloc address is 0x0
cpython-3.12> BOLT-INFO: creating new program header table at address 0x1a00000, offset 0x1a00000
cpython-3.12> BOLT-INFO: enabling relocation mode
cpython-3.12> BOLT-INFO: forcing -jump-tables=move for instrumentation
cpython-3.12> BOLT-INFO: enabling lite mode
cpython-3.12> BOLT-WARNING: sizes differ for function poly1305_blocks_avx/1. FDE : 420; symbol table : 2802. Using max size.
cpython-3.12> BOLT-WARNING: sizes differ for function poly1305_blocks_avx2/1. FDE : 420; symbol table : 1989. Using max size.
cpython-3.12> BOLT-WARNING: sizes differ for function RC4_options/1. FDE : 41; symbol table : 208. Using max size.
cpython-3.12> BOLT-WARNING: FDE [0xa28460, 0xa2853e) conflicts with function poly1305_blocks_avx/1(*2)
cpython-3.12> BOLT-WARNING: FDE [0xa28540, 0xa28d92) conflicts with function poly1305_blocks_avx/1(*2)
cpython-3.12> BOLT-WARNING: FDE [0xa29000, 0xa290f7) conflicts with function poly1305_blocks_avx2/1(*2)
cpython-3.12> BOLT-WARNING: FDE [0xa29100, 0xa29605) conflicts with function poly1305_blocks_avx2/1(*2)
cpython-3.12> BOLT-WARNING: Failed to analyze 6055 relocations
cpython-3.12> BOLT-WARNING: unable to disassemble instruction at offset 0x30 (address 0x97bfb0) in function K_XX_XX/1
cpython-3.12> BOLT-WARNING: unable to disassemble instruction at offset 0x1 (address 0x97c601) in function K256/1
cpython-3.12> BOLT-WARNING: unable to disassemble instruction at offset 0x4 (address 0x9879c4) in function _bsaes_const/1
cpython-3.12> BOLT-WARNING: unable to disassemble instruction at offset 0x11 (address 0x9883d1) in function _vpaes_consts/1
cpython-3.12> BOLT-WARNING: unable to disassemble instruction at offset 0x8 (address 0xa35c48) in function iotas/1
cpython-3.12> BOLT-WARNING: unable to disassemble instruction at offset 0x33 (address 0xa3d353) in function K_XX_XX/2
cpython-3.12> BOLT-WARNING: unable to disassemble instruction at offset 0x53 (address 0xa41c13) in function K_XX_XX/3
cpython-3.12> BOLT-WARNING: unable to disassemble instruction at offset 0x1 (address 0xa49a01) in function K256/2
cpython-3.12> BOLT-WARNING: unable to disassemble instruction at offset 0x1 (address 0xa4b581) in function K256/3
cpython-3.12> BOLT-WARNING: unable to disassemble instruction at offset 0x32 (address 0xa67e62) in function padlock_sha512_blocks/1
cpython-3.12> BOLT-WARNING: unable to disassemble instruction at offset 0x1a (address 0xa7b01a) in function ecp_nistz256_precomputed/1
cpython-3.12> BOLT-WARNING: unable to disassemble instruction at offset 0x15 (address 0xaa8195) in function K512/1
cpython-3.12> BOLT-WARNING: function ffi_call_efi64/1 has an object detected in a padding region at address 0x65f148
cpython-3.12> BOLT-WARNING: function bn_gather5/1 has an object detected in a padding region at address 0x8cf800
cpython-3.12> BOLT-WARNING: function AES_cbc_encrypt/1 has an object detected in a padding region at address 0x977480
cpython-3.12> BOLT-WARNING: function aesni_set_encrypt_key/1 has an object detected in a padding region at address 0x984de0
cpython-3.12> BOLT-WARNING: function rsaz_avx2_eligible/1 has an object detected in a padding region at address 0x9a1f00
cpython-3.12> BOLT-WARNING: function Camellia_Ekeygen/1 has an object detected in a padding region at address 0x9a5740
cpython-3.12> BOLT-WARNING: function Camellia_decrypt/1 has an object detected in a padding region at address 0x9a6b10
cpython-3.12> BOLT-WARNING: function aesni_gcm_encrypt/1 has an object detected in a padding region at address 0xa1a840
cpython-3.12> BOLT-WARNING: function gcm_ghash_avx/1 has an object detected in a padding region at address 0xa20140
cpython-3.12> BOLT-WARNING: function poly1305_blocks_avx2/1(*2) has an object detected in a padding region at address 0xa29640
cpython-3.12> BOLT-WARNING: function rsaz_512_gather4/1 has an object detected in a padding region at address 0xa72350
cpython-3.12> BOLT-WARNING: function whirlpool_block/1 has an object detected in a padding region at address 0xaac800
cpython-3.12> BOLT-WARNING: reference in the middle of instruction detected in function ffi_prep_cif_machdep_efi64/1 at offset 0x20
cpython-3.12> BOLT-WARNING: reference in the middle of instruction detected in function ffi_call_efi64/1 at offset 0x30
cpython-3.12> BOLT-WARNING: reference in the middle of instruction detected in function ffi_call_int/2(*2) at offset 0x10
cpython-3.12> BOLT-WARNING: reference in the middle of instruction detected in function ffi_call_go_efi64/1 at offset 0x38
cpython-3.12> BOLT-WARNING: reference in the middle of instruction detected in function ffi_prep_closure_loc_efi64/1 at offset 0x38
cpython-3.12> BOLT-WARNING: reference in the middle of instruction detected in function ffi_prep_go_closure_efi64/1 at offset 0x28
cpython-3.12> BOLT-WARNING: reference in the middle of instruction detected in function ffi_closure_win64_inner/1 at offset 0x8
cpython-3.12> BOLT-WARNING: reference in the middle of instruction detected in function ffi_call_win64/1 at offset 0x20
cpython-3.12> BOLT-WARNING: reference in the middle of instruction detected in function _nc_render/1 at offset 0x20
cpython-3.12> BOLT-WARNING: reference in the middle of instruction detected in function render_char/1(*2) at offset 0x30
cpython-3.12> BOLT-WARNING: reference in the middle of instruction detected in function _nc_build_wch/1 at offset 0x20
cpython-3.12> BOLT-WARNING: reference in the middle of instruction detected in function _nc_waddch_nosync/1 at offset 0x20
cpython-3.12> BOLT-WARNING: reference in the middle of instruction detected in function waddch_nosync/1(*2) at offset 0x8
cpython-3.12> BOLT-WARNING: reference in the middle of instruction detected in function RIPEMD160_Update/1 at offset 0x33
cpython-3.12> BOLT-ERROR: cannot find BB containing branch destination.
cpython-3.12> FATAL BOLT-ERROR: =======================================
cpython-3.12> BOLT is unable to proceed because it couldn't properly understand this function.
cpython-3.12> If you are running the most recent version of BOLT, you may want to report this and paste this dump.
cpython-3.12> Please check that there is no sensitive contents being shared in this dump.
cpython-3.12>
cpython-3.12> Offending function: RC4_options/1
cpython-3.12>
cpython-3.12> Function contents (
cpython-3.12> 0000: F30F1EFA 488D0545 0000008B 15775BDD |....H..E.....w[.|
cpython-3.12> 0010: 000FBAE2 14720C0F BAE21E73 0A4883C0 |.....r.....s.H..|
cpython-3.12> 0020: 19F3C348 83C00CF3 C3662E0F 1F840000 |...H.....f......|
cpython-3.12> 0030: 00000066 2E0F1F84 00000000 00662E0F |...f.........f..|
cpython-3.12> 0040: 1F840000 00000066 0F1F8400 00000000 |.......f........|
cpython-3.12> 0050: 72633428 38782C69 6E742900 72633428 |rc4(8x,int).rc4(|
cpython-3.12> 0060: 38782C63 68617229 00726334 28313678 |8x,char).rc4(16x|
cpython-3.12> 0070: 2C696E74 29005243 3420666F 72207838 |,int).RC4 for x8|
cpython-3.12> 0080: 365F3634 2C204352 5950544F 47414D53 |6_64, CRYPTOGAMS|
cpython-3.12> 0090: 20627920 3C617070 726F406F 70656E73 | by <appro@opens|
cpython-3.12> 00A0: 736C2E6F 72673E00 662E0F1F 84000000 |sl.org>.f.......|
cpython-3.12> 00B0: 0000662E 0F1F8400 00000000 662E0F1F |..f.........f...|
cpython-3.12> 00C0: 84000000 0000662E 0F1F8400 00000000 |......f.........|
cpython-3.12> )
cpython-3.12>
cpython-3.12> Binary Function "RC4_options/1" {
cpython-3.12> Number : 23288
cpython-3.12> State : disassembled
cpython-3.12> Address : 0xa2c370
cpython-3.12> Size : 0xd0
cpython-3.12> MaxSize : 0xd0
cpython-3.12> Offset : 0xa2c370
cpython-3.12> Section : .text
cpython-3.12> Orc Section : .local.text.RC4_options/1
cpython-3.12> LSDA : 0x0
cpython-3.12> IsSimple : 1
cpython-3.12> IsMultiEntry: 1
cpython-3.12> IsSplit : 0
cpython-3.12> BB Count : 17
cpython-3.12> Secondary Entry Points : __ENTRY_RC4_options/1@0xa2c3c0
cpython-3.12> }
cpython-3.12> DWARF CFI Instructions:
cpython-3.12> <empty>
cpython-3.12> End of Function "RC4_options/1"
cpython-3.12>
cpython-3.12> ERROR: disassembly failed - inconsistent branch found.
cpython-3.12> =======================================
cpython-3.12> LLVM ERROR: pthread_join failed: Resource deadlock avoided
cpython-3.12> #0 0x000056207b8e6188 llvm::sys::PrintStackTrace(llvm::raw_ostream&, int) (/tools/llvm/bin/llvm-bolt+0x1a6d188)
cpython-3.12> #1 0x000056207b8e3f6c llvm::sys::RunSignalHandlers() (/tools/llvm/bin/llvm-bolt+0x1a6af6c)
cpython-3.12> #2 0x000056207b8e680d SignalHandler(int) Signals.cpp:0:0
cpython-3.12> #3 0x00007f40ea300890 __restore_rt (/lib/x86_64-linux-gnu/libpthread.so.0+0xf890)
cpython-3.12> #4 0x00007f40e8fc7067 raise (/lib/x86_64-linux-gnu/libc.so.6+0x35067)
cpython-3.12> #5 0x00007f40e8fc8448 abort (/lib/x86_64-linux-gnu/libc.so.6+0x36448)
cpython-3.12> #6 0x000056207b89669f llvm::report_fatal_error(llvm::Twine const&, bool) (/tools/llvm/bin/llvm-bolt+0x1a1d69f)
cpython-3.12> #7 0x000056207b8e7514 (/tools/llvm/bin/llvm-bolt+0x1a6e514)
cpython-3.12> #8 0x000056207b8e753c (/tools/llvm/bin/llvm-bolt+0x1a6e53c)
cpython-3.12> #9 0x000056207cba1b99 llvm::StdThreadPool::~StdThreadPool() (/tools/llvm/bin/llvm-bolt+0x2d28b99)
cpython-3.12> #10 0x000056207cba1cd9 llvm::StdThreadPool::~StdThreadPool() (/tools/llvm/bin/llvm-bolt+0x2d28cd9)
cpython-3.12> #11 0x000056207c065082 std::unique_ptr<llvm::ThreadPoolInterface, std::default_delete<llvm::ThreadPoolInterface>>::~unique_ptr() crtstuff.c:0:0
cpython-3.12> #12 0x00007f40e8fc9b29 (/lib/x86_64-linux-gnu/libc.so.6+0x37b29)
cpython-3.12> #13 0x00007f40e8fc9b75 (/lib/x86_64-linux-gnu/libc.so.6+0x37b75)
cpython-3.12> #14 0x000056207b9aa0fd std::_Function_handler<void (llvm::bolt::BinaryFunction&, unsigned short), llvm::bolt::RewriteInstance::buildFunctionsCFG()::$_0>::_M_invoke(std::_Any_data const&, llvm::bolt::BinaryFunction&, unsigned short&&) RewriteInstance.cpp:0:0
cpython-3.12> #15 0x000056207c06602b llvm::bolt::ParallelUtilities::runOnEachFunctionWithUniqueAllocId(llvm::bolt::BinaryContext&, llvm::bolt::ParallelUtilities::SchedulingPolicy, std::function<void (llvm::bolt::BinaryFunction&, unsigned short)>, std::function<bool (llvm::bolt::BinaryFunction const&)>, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, unsigned int)::$_0::operator()(std::_Rb_tree_iterator<std::pair<unsigned long const, llvm::bolt::BinaryFunction>>, std::_Rb_tree_iterator<std::pair<unsigned long const, llvm::bolt::BinaryFunction>>, unsigned short) const ParallelUtilities.cpp:0:0
cpython-3.12> #16 0x000056207b9c7168 std::_Function_handler<std::unique_ptr<std::__future_base::_Result_base, std::__future_base::_Result_base::_Deleter> (), std::__future_base::_Task_setter<std::unique_ptr<std::__future_base::_Result<void>, std::__future_base::_Result_base::_Deleter>, std::thread::_Invoker<std::tuple<std::function<void ()>>>, void>>::_M_invoke(std::_Any_data const&) crtstuff.c:0:0
cpython-3.12> #17 0x000056207b9c70c7 std::__future_base::_State_baseV2::_M_do_set(std::function<std::unique_ptr<std::__future_base::_Result_base, std::__future_base::_Result_base::_Deleter> ()>*, bool*) crtstuff.c:0:0
cpython-3.12> #18 0x00007f40ea2fe410 __pthread_once (/lib/x86_64-linux-gnu/libpthread.so.0+0xd410)
cpython-3.12> #19 0x000056207b9c7413 std::__future_base::_Deferred_state<std::thread::_Invoker<std::tuple<std::function<void ()>>>, void>::_M_complete_async() crtstuff.c:0:0
cpython-3.12> #20 0x000056207b9c74a5 std::_Function_handler<void (), std::shared_future<void> llvm::ThreadPoolInterface::asyncImpl<void>(std::function<void ()>, llvm::ThreadPoolTaskGroup*)::'lambda'()>::_M_invoke(std::_Any_data const&) crtstuff.c:0:0
cpython-3.12> #21 0x000056207cba119c llvm::StdThreadPool::processTasks(llvm::ThreadPoolTaskGroup*) (/tools/llvm/bin/llvm-bolt+0x2d2819c)
cpython-3.12> #22 0x000056207cba28be void* llvm::thread::ThreadProxy<std::tuple<llvm::StdThreadPool::grow(int)::$_0>>(void*) ThreadPool.cpp:0:0
cpython-3.12> #23 0x00007f40ea2f9064 start_thread (/lib/x86_64-linux-gnu/libpthread.so.0+0x8064)
cpython-3.12> #24 0x00007f40e907a62d __clone (/lib/x86_64-linux-gnu/libc.so.6+0xe862d)
cpython-3.12> PLEASE submit a bug report to https://github.com/llvm/llvm-project/issues/ and include the crash backtrace.
cpython-3.12> Aborted (core dumped)
cpython-3.12> make[1]: *** [profile-bolt-stamp] Error 134
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment