[llvm] Hexagon loop idiom pass segfaults when -debug present (PR #121828)

LLVM Continuous Integration via llvm-commits llvm-commits at lists.llvm.org
Wed Jan 8 13:01:21 PST 2025


llvm-ci wrote:

LLVM Buildbot has detected a new failure on builder `llvm-clang-x86_64-expensive-checks-ubuntu` running on `as-builder-4` while building `llvm` at step 6 "test-build-unified-tree-check-all".

Full details are available at: https://lab.llvm.org/buildbot/#/builders/187/builds/3616

<details>
<summary>Here is the relevant piece of the build log for the reference</summary>

```
Step 6 (test-build-unified-tree-check-all) failure: test (failure)
******************** TEST 'LLVM :: ExecutionEngine/JITLink/LoongArch/ELF_loongarch64_relocations.s' FAILED ********************
Exit Code: 134

Command Output (stderr):
--
RUN: at line 1: rm -rf /home/buildbot/worker/as-builder-4/ramdisk/expensive-checks/build/test/ExecutionEngine/JITLink/LoongArch/Output/ELF_loongarch64_relocations.s.tmp && mkdir -p /home/buildbot/worker/as-builder-4/ramdisk/expensive-checks/build/test/ExecutionEngine/JITLink/LoongArch/Output/ELF_loongarch64_relocations.s.tmp
+ rm -rf /home/buildbot/worker/as-builder-4/ramdisk/expensive-checks/build/test/ExecutionEngine/JITLink/LoongArch/Output/ELF_loongarch64_relocations.s.tmp
+ mkdir -p /home/buildbot/worker/as-builder-4/ramdisk/expensive-checks/build/test/ExecutionEngine/JITLink/LoongArch/Output/ELF_loongarch64_relocations.s.tmp
RUN: at line 2: /home/buildbot/worker/as-builder-4/ramdisk/expensive-checks/build/bin/llvm-mc --triple=loongarch64 --filetype=obj -o /home/buildbot/worker/as-builder-4/ramdisk/expensive-checks/build/test/ExecutionEngine/JITLink/LoongArch/Output/ELF_loongarch64_relocations.s.tmp/elf_reloc.o /home/buildbot/worker/as-builder-4/ramdisk/expensive-checks/llvm-project/llvm/test/ExecutionEngine/JITLink/LoongArch/ELF_loongarch64_relocations.s
+ /home/buildbot/worker/as-builder-4/ramdisk/expensive-checks/build/bin/llvm-mc --triple=loongarch64 --filetype=obj -o /home/buildbot/worker/as-builder-4/ramdisk/expensive-checks/build/test/ExecutionEngine/JITLink/LoongArch/Output/ELF_loongarch64_relocations.s.tmp/elf_reloc.o /home/buildbot/worker/as-builder-4/ramdisk/expensive-checks/llvm-project/llvm/test/ExecutionEngine/JITLink/LoongArch/ELF_loongarch64_relocations.s
RUN: at line 3: /home/buildbot/worker/as-builder-4/ramdisk/expensive-checks/build/bin/llvm-jitlink --noexec               --abs external_data=0xdeadbeef               --abs external_func=0xcafef00d               --check /home/buildbot/worker/as-builder-4/ramdisk/expensive-checks/llvm-project/llvm/test/ExecutionEngine/JITLink/LoongArch/ELF_loongarch64_relocations.s /home/buildbot/worker/as-builder-4/ramdisk/expensive-checks/build/test/ExecutionEngine/JITLink/LoongArch/Output/ELF_loongarch64_relocations.s.tmp/elf_reloc.o
+ /home/buildbot/worker/as-builder-4/ramdisk/expensive-checks/build/bin/llvm-jitlink --noexec --abs external_data=0xdeadbeef --abs external_func=0xcafef00d --check /home/buildbot/worker/as-builder-4/ramdisk/expensive-checks/llvm-project/llvm/test/ExecutionEngine/JITLink/LoongArch/ELF_loongarch64_relocations.s /home/buildbot/worker/as-builder-4/ramdisk/expensive-checks/build/test/ExecutionEngine/JITLink/LoongArch/Output/ELF_loongarch64_relocations.s.tmp/elf_reloc.o
llvm-jitlink: /home/buildbot/worker/as-builder-4/ramdisk/expensive-checks/llvm-project/llvm/include/llvm/ExecutionEngine/Orc/SymbolStringPool.h:285: llvm::orc::SymbolStringPool::~SymbolStringPool(): Assertion `Pool.empty() && "Dangling references at pool destruction time"' failed.
PLEASE submit a bug report to https://github.com/llvm/llvm-project/issues/ and include the crash backtrace.
Stack dump:
0.	Program arguments: /home/buildbot/worker/as-builder-4/ramdisk/expensive-checks/build/bin/llvm-jitlink --noexec --abs external_data=0xdeadbeef --abs external_func=0xcafef00d --check /home/buildbot/worker/as-builder-4/ramdisk/expensive-checks/llvm-project/llvm/test/ExecutionEngine/JITLink/LoongArch/ELF_loongarch64_relocations.s /home/buildbot/worker/as-builder-4/ramdisk/expensive-checks/build/test/ExecutionEngine/JITLink/LoongArch/Output/ELF_loongarch64_relocations.s.tmp/elf_reloc.o
 #0 0x0000555b9e6064b4 llvm::sys::PrintStackTrace(llvm::raw_ostream&, int) /home/buildbot/worker/as-builder-4/ramdisk/expensive-checks/llvm-project/llvm/lib/Support/Unix/Signals.inc:723:22
 #1 0x0000555b9e6068d5 PrintStackTraceSignalHandler(void*) /home/buildbot/worker/as-builder-4/ramdisk/expensive-checks/llvm-project/llvm/lib/Support/Unix/Signals.inc:798:1
 #2 0x0000555b9e603d25 llvm::sys::RunSignalHandlers() /home/buildbot/worker/as-builder-4/ramdisk/expensive-checks/llvm-project/llvm/lib/Support/Signals.cpp:105:20
 #3 0x0000555b9e605d4c SignalHandler(int) /home/buildbot/worker/as-builder-4/ramdisk/expensive-checks/llvm-project/llvm/lib/Support/Unix/Signals.inc:413:1
 #4 0x00007fe957ee9520 (/lib/x86_64-linux-gnu/libc.so.6+0x42520)
 #5 0x00007fe957f3d9fc pthread_kill (/lib/x86_64-linux-gnu/libc.so.6+0x969fc)
 #6 0x00007fe957ee9476 gsignal (/lib/x86_64-linux-gnu/libc.so.6+0x42476)
 #7 0x00007fe957ecf7f3 abort (/lib/x86_64-linux-gnu/libc.so.6+0x287f3)
 #8 0x00007fe957ecf71b (/lib/x86_64-linux-gnu/libc.so.6+0x2871b)
 #9 0x00007fe957ee0e96 (/lib/x86_64-linux-gnu/libc.so.6+0x39e96)
#10 0x0000555b9d32d0de llvm::orc::SymbolStringPool::~SymbolStringPool() /home/buildbot/worker/as-builder-4/ramdisk/expensive-checks/llvm-project/llvm/include/llvm/ExecutionEngine/Orc/SymbolStringPool.h:287:1
#11 0x0000555b9d3ab618 void __gnu_cxx::new_allocator<llvm::orc::SymbolStringPool>::destroy<llvm::orc::SymbolStringPool>(llvm::orc::SymbolStringPool*) /usr/include/c++/11/ext/new_allocator.h:168:17
#12 0x0000555b9d3aa4f3 void std::allocator_traits<std::allocator<llvm::orc::SymbolStringPool>>::destroy<llvm::orc::SymbolStringPool>(std::allocator<llvm::orc::SymbolStringPool>&, llvm::orc::SymbolStringPool*) /usr/include/c++/11/bits/alloc_traits.h:539:2
#13 0x0000555b9d3a8959 std::_Sp_counted_ptr_inplace<llvm::orc::SymbolStringPool, std::allocator<llvm::orc::SymbolStringPool>, (__gnu_cxx::_Lock_policy)2>::_M_dispose() /usr/include/c++/11/bits/shared_ptr_base.h:529:7
#14 0x0000555b9d35791c std::_Sp_counted_base<(__gnu_cxx::_Lock_policy)2>::_M_release() /usr/include/c++/11/bits/shared_ptr_base.h:180:48
#15 0x0000555b9d339227 std::__shared_count<(__gnu_cxx::_Lock_policy)2>::~__shared_count() /usr/include/c++/11/bits/shared_ptr_base.h:706:7
#16 0x0000555b9d32e248 std::__shared_ptr<llvm::orc::SymbolStringPool, (__gnu_cxx::_Lock_policy)2>::~__shared_ptr() /usr/include/c++/11/bits/shared_ptr_base.h:1154:7
#17 0x0000555b9d32e268 std::shared_ptr<llvm::orc::SymbolStringPool>::~shared_ptr() /usr/include/c++/11/bits/shared_ptr.h:122:11
#18 0x0000555b9e442238 llvm::orc::ExecutorProcessControl::~ExecutorProcessControl() /home/buildbot/worker/as-builder-4/ramdisk/expensive-checks/llvm-project/llvm/lib/ExecutionEngine/Orc/ExecutorProcessControl.cpp:27:1
#19 0x0000555b9e444f11 llvm::orc::SelfExecutorProcessControl::~SelfExecutorProcessControl() /home/buildbot/worker/as-builder-4/ramdisk/expensive-checks/llvm-project/llvm/include/llvm/ExecutionEngine/Orc/ExecutorProcessControl.h:467:7
#20 0x0000555b9e444f50 llvm::orc::SelfExecutorProcessControl::~SelfExecutorProcessControl() /home/buildbot/worker/as-builder-4/ramdisk/expensive-checks/llvm-project/llvm/include/llvm/ExecutionEngine/Orc/ExecutorProcessControl.h:467:7
#21 0x0000555b9d36707c std::default_delete<llvm::orc::ExecutorProcessControl>::operator()(llvm::orc::ExecutorProcessControl*) const /usr/include/c++/11/bits/unique_ptr.h:86:7
#22 0x0000555b9d3490b4 std::unique_ptr<llvm::orc::ExecutorProcessControl, std::default_delete<llvm::orc::ExecutorProcessControl>>::~unique_ptr() /usr/include/c++/11/bits/unique_ptr.h:362:8
#23 0x0000555b9e26c3fd llvm::orc::ExecutionSession::~ExecutionSession() /home/buildbot/worker/as-builder-4/ramdisk/expensive-checks/llvm-project/llvm/lib/ExecutionEngine/Orc/Core.cpp:1600:1
#24 0x0000555b9d309620 llvm::Session::~Session() /home/buildbot/worker/as-builder-4/ramdisk/expensive-checks/llvm-project/llvm/tools/llvm-jitlink/llvm-jitlink.cpp:1033:1
#25 0x0000555b9d3674e4 std::default_delete<llvm::Session>::operator()(llvm::Session*) const /usr/include/c++/11/bits/unique_ptr.h:85:2
#26 0x0000555b9d371690 std::__uniq_ptr_impl<llvm::Session, std::default_delete<llvm::Session>>::reset(llvm::Session*) /usr/include/c++/11/bits/unique_ptr.h:183:7
#27 0x0000555b9d355175 std::unique_ptr<llvm::Session, std::default_delete<llvm::Session>>::reset(llvm::Session*) /usr/include/c++/11/bits/unique_ptr.h:457:7
#28 0x0000555b9d316fb5 main /home/buildbot/worker/as-builder-4/ramdisk/expensive-checks/llvm-project/llvm/tools/llvm-jitlink/llvm-jitlink.cpp:2586:13
#29 0x00007fe957ed0d90 (/lib/x86_64-linux-gnu/libc.so.6+0x29d90)
#30 0x00007fe957ed0e40 __libc_start_main (/lib/x86_64-linux-gnu/libc.so.6+0x29e40)
#31 0x0000555b9d304be5 _start (/home/buildbot/worker/as-builder-4/ramdisk/expensive-checks/build/bin/llvm-jitlink+0x7f9be5)
/home/buildbot/worker/as-builder-4/ramdisk/expensive-checks/build/test/ExecutionEngine/JITLink/LoongArch/Output/ELF_loongarch64_relocations.s.script: line 3: 4010168 Aborted                 (core dumped) /home/buildbot/worker/as-builder-4/ramdisk/expensive-checks/build/bin/llvm-jitlink --noexec --abs external_data=0xdeadbeef --abs external_func=0xcafef00d --check /home/buildbot/worker/as-builder-4/ramdisk/expensive-checks/llvm-project/llvm/test/ExecutionEngine/JITLink/LoongArch/ELF_loongarch64_relocations.s /home/buildbot/worker/as-builder-4/ramdisk/expensive-checks/build/test/ExecutionEngine/JITLink/LoongArch/Output/ELF_loongarch64_relocations.s.tmp/elf_reloc.o

...

```

</details>

https://github.com/llvm/llvm-project/pull/121828


More information about the llvm-commits mailing list