----------------------------------------------------------------------- # 16 Mar 2026 # This is on top of # https://github.com/kashyapc/llvm-project/commit/86e20a7c0f04 $ git describe llvmorg-23-init-7562-g4e009a357be5 # Build with debug ("RelWithDebInfo") $ cmake -G Ninja -S llvm -B build \ -DLLVM_ENABLE_PROJECTS="mlir" \ -DLLVM_TARGETS_TO_BUILD="RISCV" \ -DCMAKE_BUILD_TYPE=RelWithDebInfo \ -DLLVM_ENABLE_ASSERTIONS=ON \ -DLLVM_USE_LINKER=lld \ -DCMAKE_C_COMPILER=clang \ -DCMAKE_CXX_COMPILER=clang++ ----------------------------------------------------------------------- $ ninja -C build tools/mlir/unittests/ExecutionEngine/MLIRExecutionEngineTests ----------------------------------------------------------------------- $ gdb --args ./build/tools/mlir/unittests/ExecutionEngine/MLIRExecutionEngineTests --gtest_filter=NativeMemRefJit.ZeroRankMemref Starting program: /home/fedora/src/upstream/llvm-project/build/tools/mlir/unittests/ExecutionEngine/MLIRExecutionEngineTests --gtest_filter=NativeMemRefJit.ZeroRankMemref This GDB supports auto-downloading debuginfo from the following URLs: Debuginfod has been enabled. To make this setting permanent, add 'set debuginfod enabled on' to .gdbinit. Function(s) ^std::(move|forward|as_const|(__)?addressof) will be skipped when stepping. Function(s) ^std::(shared|unique)_ptr<.*>::(get|operator) will be skipped when stepping. Function(s) ^std::(basic_string|vector|array|deque|(forward_)?list|(unordered_|flat_)?(multi)?(map|set)|span)<.*>::(c?r?(begin|end)|front|back|data|size|empty) will be skipped when stepping. Function(s) ^std::(basic_string|vector|array|deque|span)<.*>::operator.] will be skipped when stepping. Python Exception : No module named 'libstdcxx' [Thread debugging using libthread_db enabled] Using host libthread_db library "/lib64/lp64d/libthread_db.so.1". [New Thread 0x7ffff7a7bee0 (LWP 331820)] [New Thread 0x7ffff727aee0 (LWP 331821)] Thread 1 "MLIRExecutionEn" received signal SIGSEGV, Segmentation fault. 0x00008000022fb404 in ?? () Missing rpms, try: dnf --enablerepo='*debug*' install glibc-debuginfo-2.41-9.fc42.riscv64 zlib-ng-compat-debuginfo-2.2.4-1.fc42.riscv64 libzstd-debuginfo-1.5.7-1.fc42.riscv64 libstdc++-debuginfo-15.1.1-1.fc42.riscv64 libgcc-debuginfo-15.1.1-1.fc42.riscv64 Thread 3 (Thread 0x7ffff727aee0 (LWP 331821) "llvm-worker-1"): #0 0x00007ffff7ad3418 in __syscall_cancel_arch () from /lib64/lp64d/libc.so.6 No symbol table info available. #1 0x00007ffff7ac9448 in __internal_syscall_cancel () from /lib64/lp64d/libc.so.6 No symbol table info available. #2 0x00007ffff7ac96f2 in __futex_abstimed_wait_cancelable64 () from /lib64/lp64d/libc.so.6 No symbol table info available. #3 0x00007ffff7acb646 in pthread_cond_wait@@GLIBC_2.27 () from /lib64/lp64d/libc.so.6 No symbol table info available. #4 0x00007ffff7c27258 in std::condition_variable::wait(std::unique_lock&) () from /lib64/lp64d/libstdc++.so.6 No symbol table info available. #5 0x00000000059c0f06 in std::condition_variable::wait(std::unique_lock&, llvm::StdThreadPool::processTasks(llvm::ThreadPoolTaskGroup*)::$_0) (this=0x5bfb028, __lock=..., __p=...) at /usr/lib/gcc/riscv64-redhat-linux/15/../../../../include/c++/15/condition_variable:107 No locals. #6 llvm::StdThreadPool::processTasks (this=0x5bfaf50, WaitingForGroup=0x0) at /home/fedora/src/upstream/llvm-project/llvm/lib/Support/ThreadPool.cpp:82 LockGuard = {_M_device = 0x5bfb000, _M_owns = true} workCompletedForGroup = false Task = {> = {static InlineStorageSize = 24, static InlineStorageAlign = 8, StorageUnion = {OutOfLineStorage = {StoragePtr = 0xadadadadadadadad, Size = 12514849900987264429, Alignment = 12514849900987264429}, InlineStorage = {173 }}, CallbackAndInlineFlag = {Value = {Data = "\000\000\000\000\000\000\000"}}}, } GroupOfTask = 0x7fffffffdb28 Notify = NotifyGroup = #7 0x00000000059c245a in llvm::StdThreadPool::grow(int)::$_0::operator()() const (this=0x5c5cb20) at /home/fedora/src/upstream/llvm-project/llvm/lib/Support/ThreadPool.cpp:62 No locals. #8 llvm::thread::GenericThreadProxy >(void*)::{lambda(auto:1&&, (auto:2&&)...)#1}::operator()(llvm::StdThreadPool::grow(int)::$_0&) const (F=..., this=) at /home/fedora/src/upstream/llvm-project/llvm/include/llvm/Support/thread.h:46 No locals. #9 std::__invoke_impl >(void*)::{lambda(auto:1&&, (auto:2&&)...)#1}, llvm::StdThreadPool::grow(int)::$_0&>(std::__invoke_other, llvm::thread::GenericThreadProxy >(void*)::{lambda(auto:1&&, (auto:2&&)...)#1}&&, llvm::StdThreadPool::grow(int)::$_0&) (__args=..., __f=...) at /usr/lib/gcc/riscv64-redhat-linux/15/../../../../include/c++/15/bits/invoke.h:63 No locals. #10 std::__invoke >(void*)::{lambda(auto:1&&, (auto:2&&)...)#1}, llvm::StdThreadPool::grow(int)::$_0&>(llvm::thread::GenericThreadProxy >(void*)::{lambda(auto:1&&, (auto:2&&)...)#1}&&, llvm::StdThreadPool::grow(int)::$_0&) (__args=..., __fn=...) at /usr/lib/gcc/riscv64-redhat-linux/15/../../../../include/c++/15/bits/invoke.h:98 No locals. #11 std::__apply_impl >(void*)::{lambda(auto:1&&, (auto:2&&)...)#1}, std::tuple&, 0ul>(llvm::thread::GenericThreadProxy >(void*)::{lambda(auto:1&&, (auto:2&&)...)#1}&&, std::tuple&, std::integer_sequence) (__t=..., __f=...) at /usr/lib/gcc/riscv64-redhat-linux/15/../../../../include/c++/15/tuple:2920 No locals. #12 std::apply >(void*)::{lambda(auto:1&&, (auto:2&&)...)#1}, std::tuple&>(llvm::thread::GenericThreadProxy >(void*)::{lambda(auto:1&&, (auto:2&&)...)#1}&&, std::tuple&) (__t=..., __f=...) at /usr/lib/gcc/riscv64-redhat-linux/15/../../../../include/c++/15/tuple:2935 No locals. #13 llvm::thread::GenericThreadProxy > (Ptr=0x5c5cb20) at /home/fedora/src/upstream/llvm-project/llvm/include/llvm/Support/thread.h:44 Callee = {_M_t = {, std::default_delete > >> = {_M_t = { *, std::default_delete > >> = { > >> = { >, true>> = {_M_head_impl = {}}, }, *, false>> = {_M_head_impl = 0x5c5cb20}, }, }}, }} #14 llvm::thread::ThreadProxy > (Ptr=0x5c5cb20) at /home/fedora/src/upstream/llvm-project/llvm/include/llvm/Support/thread.h:62 No locals. #15 0x00007ffff7acbe0a in start_thread () from /lib64/lp64d/libc.so.6 No symbol table info available. #16 0x00007ffff7b22744 in __thread_start_clone3 () from /lib64/lp64d/libc.so.6 No symbol table info available. Thread 2 (Thread 0x7ffff7a7bee0 (LWP 331820) "llvm-worker-0"): #0 0x00007ffff7ad3418 in __syscall_cancel_arch () from /lib64/lp64d/libc.so.6 No symbol table info available. #1 0x00007ffff7ac9448 in __internal_syscall_cancel () from /lib64/lp64d/libc.so.6 No symbol table info available. #2 0x00007ffff7ac96f2 in __futex_abstimed_wait_cancelable64 () from /lib64/lp64d/libc.so.6 No symbol table info available. #3 0x00007ffff7acb646 in pthread_cond_wait@@GLIBC_2.27 () from /lib64/lp64d/libc.so.6 No symbol table info available. #4 0x00007ffff7c27258 in std::condition_variable::wait(std::unique_lock&) () from /lib64/lp64d/libstdc++.so.6 No symbol table info available. #5 0x00000000059c0f06 in std::condition_variable::wait(std::unique_lock&, llvm::StdThreadPool::processTasks(llvm::ThreadPoolTaskGroup*)::$_0) (this=0x5bfb028, __lock=..., __p=...) at /usr/lib/gcc/riscv64-redhat-linux/15/../../../../include/c++/15/condition_variable:107 No locals. #6 llvm::StdThreadPool::processTasks (this=0x5bfaf50, WaitingForGroup=0x0) at /home/fedora/src/upstream/llvm-project/llvm/lib/Support/ThreadPool.cpp:82 LockGuard = {_M_device = 0x5bfb000, _M_owns = true} workCompletedForGroup = false Task = {> = {static InlineStorageSize = 24, static InlineStorageAlign = 8, StorageUnion = {OutOfLineStorage = {StoragePtr = 0xadadadadadadadad, Size = 12514849900987264429, Alignment = 12514849900987264429}, InlineStorage = {173 }}, CallbackAndInlineFlag = {Value = {Data = "\000\000\000\000\000\000\000"}}}, } GroupOfTask = 0x7fffffffdb28 Notify = NotifyGroup = #7 0x00000000059c245a in llvm::StdThreadPool::grow(int)::$_0::operator()() const (this=0x5ca5220) at /home/fedora/src/upstream/llvm-project/llvm/lib/Support/ThreadPool.cpp:62 No locals. #8 llvm::thread::GenericThreadProxy >(void*)::{lambda(auto:1&&, (auto:2&&)...)#1}::operator()(llvm::StdThreadPool::grow(int)::$_0&) const (F=..., this=) at /home/fedora/src/upstream/llvm-project/llvm/include/llvm/Support/thread.h:46 No locals. #9 std::__invoke_impl >(void*)::{lambda(auto:1&&, (auto:2&&)...)#1}, llvm::StdThreadPool::grow(int)::$_0&>(std::__invoke_other, llvm::thread::GenericThreadProxy >(void*)::{lambda(auto:1&&, (auto:2&&)...)#1}&&, llvm::StdThreadPool::grow(int)::$_0&) (__args=..., __f=...) at /usr/lib/gcc/riscv64-redhat-linux/15/../../../../include/c++/15/bits/invoke.h:63 No locals. #10 std::__invoke >(void*)::{lambda(auto:1&&, (auto:2&&)...)#1}, llvm::StdThreadPool::grow(int)::$_0&>(llvm::thread::GenericThreadProxy >(void*)::{lambda(auto:1&&, (auto:2&&)...)#1}&&, llvm::StdThreadPool::grow(int)::$_0&) (__args=..., __fn=...) at /usr/lib/gcc/riscv64-redhat-linux/15/../../../../include/c++/15/bits/invoke.h:98 No locals. #11 std::__apply_impl >(void*)::{lambda(auto:1&&, (auto:2&&)...)#1}, std::tuple&, 0ul>(llvm::thread::GenericThreadProxy >(void*)::{lambda(auto:1&&, (auto:2&&)...)#1}&&, std::tuple&, std::integer_sequence) (__t=..., __f=...) at /usr/lib/gcc/riscv64-redhat-linux/15/../../../../include/c++/15/tuple:2920 No locals. #12 std::apply >(void*)::{lambda(auto:1&&, (auto:2&&)...)#1}, std::tuple&>(llvm::thread::GenericThreadProxy >(void*)::{lambda(auto:1&&, (auto:2&&)...)#1}&&, std::tuple&) (__t=..., __f=...) at /usr/lib/gcc/riscv64-redhat-linux/15/../../../../include/c++/15/tuple:2935 No locals. #13 llvm::thread::GenericThreadProxy > (Ptr=0x5ca5220) at /home/fedora/src/upstream/llvm-project/llvm/include/llvm/Support/thread.h:44 Callee = {_M_t = {, std::default_delete > >> = {_M_t = { *, std::default_delete > >> = { > >> = { >, true>> = {_M_head_impl = {}}, }, *, false>> = {_M_head_impl = 0x5ca5220}, }, }}, }} #14 llvm::thread::ThreadProxy > (Ptr=0x5ca5220) at /home/fedora/src/upstream/llvm-project/llvm/include/llvm/Support/thread.h:62 No locals. #15 0x00007ffff7acbe0a in start_thread () from /lib64/lp64d/libc.so.6 No symbol table info available. #16 0x00007ffff7b22744 in __thread_start_clone3 () from /lib64/lp64d/libc.so.6 No symbol table info available. Thread 1 (Thread 0x7ffff7e19020 (LWP 331817) "MLIRExecutionEn"): #0 0x00008000022fb404 in ?? () No symbol table info available. -----------------------------------------------------------------------