[PATCH] D147803: Run ExecutionEngine/MCJIT/remote tests only if threads enabled
Youngsuk Kim via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Sat Apr 8 17:26:00 PDT 2023
JOE1994 added a comment.
Below is the error message & stacktrace output by LLVM (at commit 653a82e95257a7cd3f22c24e40d54459a6608429 <https://reviews.llvm.org/rG653a82e95257a7cd3f22c24e40d54459a6608429>, Release build, `LLVM_ENABLE_THREADS=Off`) when running the tests on x86_64 Linux:
(some sensitive paths are removed)
lli: ~/llvm-project/llvm/lib/ExecutionEngine/Orc/SimpleRemoteEPC.cpp:23: virtual llvm::orc::SimpleRemoteEPC::~SimpleRemoteEPC(): Assertion `Disconnected && "Destroyed without disconnection"' failed.
PLEASE submit a bug report to https://github.com/llvm/llvm-project/issues/ and include the crash backtrace.
Stack dump:
0. Program arguments: ~/llvm-project/build/bin/lli -jit-kind=mcjit -remote-mcjit -mcjit-remote-process=~/llvm-project/build/bin/lli-child-target -O0 -relocation-model=pic -code-model=small ~/llvm-project/llvm/test/ExecutionEngine/MCJIT/remote/test-ptr-reloc-sm-pic.ll
~/llvm-project/build/bin/lli-child-target error: this tool requires threads, but LLVM was built with LLVM_ENABLE_THREADS=Off
#0 0x000000000248f7d7 llvm::sys::PrintStackTrace(llvm::raw_ostream&, int) (~/llvm-project/build/bin/lli+0x248f7d7)
#1 0x000000000249021f SignalHandler(int) Signals.cpp:0:0
#2 0x00007f3e85ab68c0 __restore_rt (/lib64/libpthread.so.0+0x168c0)
#3 0x00007f3e856f5cbb raise (/lib64/libc.so.6+0x4acbb)
#4 0x00007f3e856f7355 abort (/lib64/libc.so.6+0x4c355)
#5 0x00007f3e856edcba __assert_fail_base (/lib64/libc.so.6+0x42cba)
#6 0x00007f3e856edd42 (/lib64/libc.so.6+0x42d42)
#7 0x0000000001f21902 llvm::orc::SimpleRemoteEPC::~SimpleRemoteEPC() (~/llvm-project/build/bin/lli+0x1f21902)
#8 0x0000000001f21929 llvm::orc::SimpleRemoteEPC::~SimpleRemoteEPC() (~/llvm-project/build/bin/lli+0x1f21929)
#9 0x00000000011d31c5 llvm::Expected<std::unique_ptr<llvm::orc::SimpleRemoteEPC, std::default_delete<llvm::orc::SimpleRemoteEPC>>> llvm::orc::SimpleRemoteEPC::Create<llvm::orc::FDSimpleRemoteEPCTransport, int&, int&>(std::unique_ptr<llvm::orc::TaskDispatcher, std::default_delete<llvm::orc::TaskDispatcher>>, llvm::orc::SimpleRemoteEPC::Setup, int&, int&) lli.cpp:0:0
#10 0x00000000011d1ad3 launchRemote() (~/llvm-project/build/bin/lli+0x11d1ad3)
#11 0x00000000011c9bbe main (~/llvm-project/build/bin/lli+0x11c9bbe)
#12 0x00007f3e856e029d __libc_start_main (/lib64/libc.so.6+0x3529d)
#13 0x00000000011c49aa _start
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D147803/new/
https://reviews.llvm.org/D147803
More information about the llvm-commits
mailing list