Closed
Description
openedon Jan 9, 2022
As documented in https://docs.julialang.org/en/v1/devdocs/llvm/#Debugging-LLVM-transformations-in-isolation
usr/tools/opt -load=usr/lib/libjulia-codegen.so -enable-new-pm=0 -julia ../julia-dbg/rep-43712/has_scope_input.ll -o out.bc
opt: /home/vchuravy/src/julia/src/cgmemmgr.cpp:340: int {anonymous}::_init_self_mem(): Assertion `test_pg != MAP_FAILED && "Cannot allocate executable memory"' failed.
PLEASE submit a bug report to https://bugs.llvm.org/ and include the crash backtrace.
Stack dump:
0. Program arguments: usr/tools/opt -load=usr/lib/libjulia-codegen.so -enable-new-pm=0 -julia ../julia-dbg/rep-43712/has_scope_input.ll -o out.bc
#0 0x00007fa0e8515f9f PrintStackTraceSignalHandler(void*) Signals.cpp:0:0
#1 0x00007fa0e8513979 SignalHandler(int) Signals.cpp:0:0
#2 0x00007fa0e7bf7870 __restore_rt sigaction.c:0:0
#3 0x00007fa0e76e1d22 raise (/usr/lib/libc.so.6+0x3cd22)
#4 0x00007fa0e76cb862 abort (/usr/lib/libc.so.6+0x26862)
#5 0x00007fa0e76cb747 _nl_load_domain.cold loadmsgcat.c:0:0
#6 0x00007fa0e76da616 (/usr/lib/libc.so.6+0x35616)
#7 0x00007fa0e73fab04 (anonymous namespace)::_init_self_mem() /home/vchuravy/src/julia/src/cgmemmgr.cpp:351:1
#8 0x00007fa0e73fd58c get_self_mem_fd /home/vchuravy/src/julia/src/cgmemmgr.cpp:355:36
#9 0x00007fa0e73fd58c RTDyldMemoryManagerJL /home/vchuravy/src/julia/src/cgmemmgr.cpp:778:41
#10 0x00007fa0e73fd58c createRTDyldMemoryManager() /home/vchuravy/src/julia/src/cgmemmgr.cpp:943:38
#11 0x00007fa0e7383710 std::__shared_count<(__gnu_cxx::_Lock_policy)2>::__shared_count<llvm::RTDyldMemoryManager*>(llvm::RTDyldMemoryManager*) /usr/include/c++/11.1.0/bits/shared_ptr_base.h:596:16
#12 0x00007fa0e7383710 std::__shared_count<(__gnu_cxx::_Lock_policy)2>::__shared_count<llvm::RTDyldMemoryManager*>(llvm::RTDyldMemoryManager*, std::integral_constant<bool, false>) /usr/include/c++/11.1.0/bits/shared_ptr_base.h:607:22
#13 0x00007fa0e7383710 std::__shared_ptr<llvm::RTDyldMemoryManager, (__gnu_cxx::_Lock_policy)2>::__shared_ptr<llvm::RTDyldMemoryManager, void>(llvm::RTDyldMemoryManager*) /usr/include/c++/11.1.0/bits/shared_ptr_base.h:1094:17
#14 0x00007fa0e7383710 std::shared_ptr<llvm::RTDyldMemoryManager>::shared_ptr<llvm::RTDyldMemoryManager, void>(llvm::RTDyldMemoryManager*) /usr/include/c++/11.1.0/bits/shared_ptr.h:160:46
#15 0x00007fa0e7383710 JuliaOJIT::JuliaOJIT(llvm::TargetMachine&, llvm::LLVMContext*) /home/vchuravy/src/julia/src/jitlayers.cpp:614:5
#16 0x00007fa0e7320c43 jl_init_llvm /home/vchuravy/src/julia/src/codegen.cpp:8131:24
#17 0x00007fa0e73961dc llvm::PMStack::top() const /home/vchuravy/builds/julia/usr/include/llvm/IR/LegacyPassManagers.h:144:46
#18 0x00007fa0e73961dc JuliaPipeline<2>::preparePassManager(llvm::PMStack&) /home/vchuravy/src/julia/src/aotcompile.cpp:852:65
#19 0x00007fa0e864de2e llvm::PMTopLevelManager::schedulePass(llvm::Pass*) (/home/vchuravy/builds/julia/usr/tools/../lib/libLLVM-13jl.so+0xa16e2e)
#20 0x000000000041b063 main (usr/tools/opt+0x41b063)
#21 0x00007fa0e76ccb25 __libc_start_main (/usr/lib/libc.so.6+0x27b25)
#22 0x000000000041c1e2 _start /workspace/srcdir/glibc-2.12.2/csu/../sysdeps/x86_64/elf/start.S:116:0
fish: Job 1, 'usr/tools/opt -load=usr/lib/lib…' terminated by signal SIGABRT (Abort)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment