Issue 79267
Summary Bolt crash on windows
Labels BOLT
Assignees
Reporter kissholic
    We exploit bolt to optimize a .so file for android on windows 10 22H2, but it seems a problem while generating the instrumented .so file

> H:\path>llvm-bolt libUE4.so --instrument --instrumentation-file=libUE4.so.fdata -o libUE4.so.instrumented
> BOLT-INFO: shared object or position-independent executable detected
> BOLT-INFO: Target architecture: aarch64
> BOLT-INFO: BOLT version: 595d780b492d3de3f5653851e7d64c122472d71a
> BOLT-INFO: first alloc address is 0x0
> BOLT-INFO: creating new program header table at address 0x17200000, offset 0x17200000
> BOLT-WARNING: debug info will be stripped from the binary. Use -update-debug-sections to keep it.
> BOLT-INFO: enabling relocation mode
> BOLT-INFO: forcing -jump-tables=move for instrumentation
> BOLT-INFO: disabling -align-macro-fusion on non-x86 platform
> PLEASE submit a bug report to https://github.com/llvm/llvm-project/issues/ and include the crash backtrace.
> Stack dump:
> 0.      Program arguments: llvm-bolt libUE4.so --instrument --instrumentation-file=libUE4.so.fdata -o libUE4.so.instrumented
> Exception Code: 0x80000003
>  #0 0x00007ff7ed609e72 std::_Tree_const_iterator<class std::_Tree_val<struct std::_Tree_simple_types<struct llvm::bolt::Relocation>>>::operator*(void) const C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.29.30133\include\xtree:183:0
> #1 0x00007ff7ee6328c4 std::_Tree_const_iterator<class std::_Tree_val<struct std::_Tree_simple_types<struct llvm::bolt::Relocation>>>::operator->(void) const C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.29.30133\include\xtree:190:0
> #2 0x00007ff7ee62c646 llvm::bolt::BinarySection::hash(class llvm::bolt::BinaryData const &, class std::map<class llvm::bolt::BinaryData const *, unsigned __int64, struct std::less<class llvm::bolt::BinaryData const *>, class std::allocator<struct std::pair<class llvm::bolt::BinaryData const *const, unsigned __int64>>> &) const H:\llvm-project\bolt\lib\Core\BinarySection.cpp:58:0
>  #3 0x00007ff7ee69fdd3 llvm::bolt::BinarySection::hash(class llvm::bolt::BinaryData const &) const H:\llvm-project\bolt\include\bolt\Core\BinarySection.h:431:0
>  #4 0x00007ff7ee63f6e1 llvm::bolt::BinaryContext::generateSymbolHashes(void) H:\llvm-project\bolt\lib\Core\BinaryContext.cpp:1118:0
>  #5 0x00007ff7ee64789c llvm::bolt::BinaryContext::postProcessSymbolTable(void) H:\llvm-project\bolt\lib\Core\BinaryContext.cpp:1340:0
>  #6 0x00007ff7ed54da20 llvm::bolt::RewriteInstance::buildFunctionsCFG(void) H:\llvm-project\bolt\lib\Rewrite\RewriteInstance.cpp:3238:0
>  #7 0x00007ff7ed53d8c8 llvm::bolt::RewriteInstance::run(void) H:\llvm-project\bolt\lib\Rewrite\RewriteInstance.cpp:732:0
>  #8 0x00007ff7ebb9590a main H:\llvm-project\bolt\tools\driver\llvm-bolt.cpp:243:0
>  #9 0x00007ff7f0bc76a9 invoke_main D:\a\_work\1\s\src\vctools\crt\vcstartup\src\startup\exe_common.inl:79:0
> #10 0x00007ff7f0bc758e __scrt_common_main_seh D:\a\_work\1\s\src\vctools\crt\vcstartup\src\startup\exe_common.inl:288:0
> #11 0x00007ff7f0bc744e __scrt_common_main D:\a\_work\1\s\src\vctools\crt\vcstartup\src\startup\exe_common.inl:331:0
> #12 0x00007ff7f0bc773e mainCRTStartup D:\a\_work\1\s\src\vctools\crt\vcstartup\src\startup\exe_main.cpp:17:0
> #13 0x00007ffbc8a37344 (C:\WINDOWS\System32\KERNEL32.DLL+0x17344)
> #14 0x00007ffbc95826b1 (C:\WINDOWS\SYSTEM32\ntdll.dll+0x526b1)

_______________________________________________
llvm-bugs mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs

Reply via email to