| Issue |
185051
|
| Summary |
[BOLT] runtime/bolt-reserved.cpp failing
|
| Labels |
BOLT,
crash
|
| Assignees |
|
| Reporter |
nikic
|
```
FAIL: BOLT :: runtime/bolt-reserved.cpp (640 of 643)
******************** TEST 'BOLT :: runtime/bolt-reserved.cpp' FAILED ********************
Exit Code: -6
Command Output (stdout):
--
# RUN: at line 8
/home/npopov/repos/llvm-project/build/bin/clang --driver-mode=g++ /home/npopov/repos/llvm-project/bolt/test/runtime/bolt-reserved.cpp -o /home/npopov/repos/llvm-project/build/tools/bolt/test/runtime/Output/bolt-reserved.cpp.tmp.exe -Wl,-q
# executed command: /home/npopov/repos/llvm-project/build/bin/clang --driver-mode=g++ /home/npopov/repos/llvm-project/bolt/test/runtime/bolt-reserved.cpp -o /home/npopov/repos/llvm-project/build/tools/bolt/test/runtime/Output/bolt-reserved.cpp.tmp.exe -Wl,-q
# note: command had no output on stdout or stderr
# RUN: at line 9
/home/npopov/repos/llvm-project/build/bin/llvm-bolt --runtime-instrumentation-lib=/home/npopov/repos/llvm-project/build/tools/bolt/bolt_rt-bins/lib/libbolt_rt_instr.a --runtime-hugify-lib=/home/npopov/repos/llvm-project/build/tools/bolt/bolt_rt-bins/lib/libbolt_rt_hugify.a /home/npopov/repos/llvm-project/build/tools/bolt/test/runtime/Output/bolt-reserved.cpp.tmp.exe -o /home/npopov/repos/llvm-project/build/tools/bolt/test/runtime/Output/bolt-reserved.cpp.tmp.bolt.exe 2>&1 | /home/npopov/repos/llvm-project/build/bin/FileCheck /home/npopov/repos/llvm-project/bolt/test/runtime/bolt-reserved.cpp
# executed command: /home/npopov/repos/llvm-project/build/bin/llvm-bolt --runtime-instrumentation-lib=/home/npopov/repos/llvm-project/build/tools/bolt/bolt_rt-bins/lib/libbolt_rt_instr.a --runtime-hugify-lib=/home/npopov/repos/llvm-project/build/tools/bolt/bolt_rt-bins/lib/libbolt_rt_hugify.a /home/npopov/repos/llvm-project/build/tools/bolt/test/runtime/Output/bolt-reserved.cpp.tmp.exe -o /home/npopov/repos/llvm-project/build/tools/bolt/test/runtime/Output/bolt-reserved.cpp.tmp.bolt.exe
# note: command had no output on stdout or stderr
# error: command failed with exit status: -6
# executed command: /home/npopov/repos/llvm-project/build/bin/FileCheck /home/npopov/repos/llvm-project/bolt/test/runtime/bolt-reserved.cpp
# note: command had no output on stdout or stderr
--
********************
```
Manually running the command I get:
```
BOLT-INFO: shared object or position-independent executable detected
BOLT-INFO: Target architecture: x86_64
BOLT-INFO: BOLT version: <unknown>
BOLT-INFO: first alloc address is 0x0
BOLT-INFO: creating new program header table at address 0xa00000, offset 0xa00000
BOLT-INFO: enabling relocation mode
BOLT-INFO: enabling lite mode
BOLT-INFO: using reserved space for allocating new sections
BOLT-INFO: 0 out of 9 functions in the binary (0.0%) have non-empty execution profile
BOLT-INFO: removed 3 empty blocks
llvm-bolt: /home/npopov/repos/llvm-project/llvm/include/llvm/Support/raw_ostream.h:449: void llvm::raw_pwrite_stream::pwrite(const char *, size_t, uint64_t): Assertion `Size + Offset <= Pos && "We don't support extending the stream"' failed.
#0 0x0000000002fdfa98 llvm::sys::PrintStackTrace(llvm::raw_ostream&, int) (/home/npopov/repos/llvm-project/build/bin/llvm-bolt+0x2fdfa98)
#1 0x0000000002fdc9bc llvm::sys::RunSignalHandlers() (/home/npopov/repos/llvm-project/build/bin/llvm-bolt+0x2fdc9bc)
#2 0x0000000002fe0881 SignalHandler(int, siginfo_t*, void*) Signals.cpp:0:0
#3 0x00007faaab827290 __restore_rt (/lib64/libc.so.6+0x1a290)
#4 0x00007faaab8813cc __pthread_kill_implementation (/lib64/libc.so.6+0x743cc)
#5 0x00007faaab82715e gsignal (/lib64/libc.so.6+0x1a15e)
#6 0x00007faaab80e6d0 abort (/lib64/libc.so.6+0x16d0)
#7 0x00007faaab80e639 __assert_perror_fail (/lib64/libc.so.6+0x1639)
#8 0x00000000030a30bb 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>>*)::'lambda'(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>>*)::'lambda'(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>>*)::'lambda'(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>>*)::'lambda'(llvm::StringRef)) (/home/npopov/repos/llvm-project/build/bin/llvm-bolt+0x30a30bb)
#9 0x0000000003092ae4 void llvm::bolt::RewriteInstance::patchELFSymTabs<llvm::object::ELFType<(llvm::endianness)1, true>>(llvm::object::ELFObjectFile<llvm::object::ELFType<(llvm::endianness)1, true>>*) (/home/npopov/repos/llvm-project/build/bin/llvm-bolt+0x3092ae4)
#10 0x00000000030785e9 llvm::bolt::RewriteInstance::rewriteFile() (/home/npopov/repos/llvm-project/build/bin/llvm-bolt+0x30785e9)
#11 0x000000000306af96 llvm::bolt::RewriteInstance::run() (/home/npopov/repos/llvm-project/build/bin/llvm-bolt+0x306af96)
#12 0x00000000023c4b59 main (/home/npopov/repos/llvm-project/build/bin/llvm-bolt+0x23c4b59)
#13 0x00007faaab8105b5 __libc_start_call_main (/lib64/libc.so.6+0x35b5)
#14 0x00007faaab810668 __libc_start_main@GLIBC_2.2.5 (/lib64/libc.so.6+0x3668)
#15 0x00000000023c29a5 _start (/home/npopov/repos/llvm-project/build/bin/llvm-bolt+0x23c29a5)
PLEASE submit a bug report to https://github.com/llvm/llvm-project/issues/ and include the crash backtrace and instructions to reproduce the bug.
Stack dump:
0. Program arguments: /home/npopov/repos/llvm-project/build/bin/llvm-bolt --runtime-instrumentation-lib=/home/npopov/repos/llvm-project/build/tools/bolt/bolt_rt-bins/lib/libbolt_rt_instr.a --runtime-hugify-lib=/home/npopov/repos/llvm-project/build/tools/bolt/bolt_rt-bins/lib/libbolt_rt_hugify.a /home/npopov/repos/llvm-project/build/tools/bolt/test/runtime/Output/bolt-reserved.cpp.tmp.exe -o /home/npopov/repos/llvm-project/build/tools/bolt/test/runtime/Output/bolt-reserved.cpp.tmp.bolt.exe
```
This is on Fedora 43 x86_64.
_______________________________________________
llvm-bugs mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs