[1/6] Building CXX object library/CMakeFiles/rocsparse.dir/src/util/rocsparse_check_matrix_csr.cpp.o FAILED: library/CMakeFiles/rocsparse.dir/src/util/rocsparse_check_matrix_csr.cpp.o /opt/rocm/bin/hipcc -DUSE_PROF_API=1 -D__HIP_PLATFORM_AMD__=1 -Drocsparse_EXPORTS -I/home/aphid/src/rocm/14_sparse/rocSPARSE/library/src/include -I/home/aphid/src/rocm/14_sparse/rocSPARSE/library/include -I/home/aphid/src/rocm/14_sparse/rocSPARSE/include/rocsparse -I/home/aphid/src/rocm/14_sparse/rocSPARSE/include -fcf-protection=none -O3 -DNDEBUG -std=c++14 -fPIC -fvisibility=hidden -fvisibility-inlines-hidden -DROCSPARSE_WITH_ROCBLAS -Wno-unused-command-line-argument -Wall -x hip --offload-arch=gfx803 --offload-arch=gfx900:xnack- --offload-arch=gfx906:xnack- --offload-arch=gfx908:xnack- --offload-arch=gfx90a:xnack- --offload-arch=gfx90a:xnack+ --offload-arch=gfx940 --offload-arch=gfx941 --offload-arch=gfx942 --offload-arch=gfx1030 --offload-arch=gfx1100 --offload-arch=gfx1101 --offload-arch=gfx1102 --offload-arch=gfx1200 --offload-arch=gfx1201 -MD -MT library/CMakeFiles/rocsparse.dir/src/util/rocsparse_check_matrix_csr.cpp.o -MF library/CMakeFiles/rocsparse.dir/src/util/rocsparse_check_matrix_csr.cpp.o.d -o library/CMakeFiles/rocsparse.dir/src/util/rocsparse_check_matrix_csr.cpp.o -c /home/aphid/src/rocm/14_sparse/rocSPARSE/library/src/util/rocsparse_check_matrix_csr.cpp PLEASE submit a bug report to https://github.com/llvm/llvm-project/issues/ and include the crash backtrace, preprocessed source, and associated run script. Stack dump: 0. Program arguments: /opt/rocm/lib/llvm/bin/clang-19 -cc1 -triple amdgcn-amd-amdhsa -aux-triple x86_64-unknown-linux-gnu -Werror=atomic-alignment -emit-obj -disable-free -clear-ast-before-backend -main-file-name rocsparse_check_matrix_csr.cpp -mrelocation-model pic -pic-level 2 -fhalf-no-semantic-interposition -mframe-pointer=none -fno-rounding-math -mconstructor-aliases -aux-target-cpu x86-64 -fcuda-is-device -mllvm -amdgpu-internalize-symbols -fcuda-allow-variadic-functions -mlink-builtin-bitcode /opt/rocm/amdgcn/bitcode/hip.bc -mlink-builtin-bitcode /opt/rocm/amdgcn/bitcode/ocml.bc -mlink-builtin-bitcode /opt/rocm/amdgcn/bitcode/ockl.bc -mlink-builtin-bitcode /opt/rocm/amdgcn/bitcode/oclc_daz_opt_off.bc -mlink-builtin-bitcode /opt/rocm/amdgcn/bitcode/oclc_unsafe_math_off.bc -mlink-builtin-bitcode /opt/rocm/amdgcn/bitcode/oclc_finite_only_off.bc -mlink-builtin-bitcode /opt/rocm/amdgcn/bitcode/oclc_correctly_rounded_sqrt_on.bc -mlink-builtin-bitcode /opt/rocm/amdgcn/bitcode/oclc_wavefrontsize64_off.bc -mlink-builtin-bitcode /opt/rocm/amdgcn/bitcode/oclc_isa_version_1102.bc -mlink-builtin-bitcode /opt/rocm/amdgcn/bitcode/oclc_abi_version_500.bc -target-cpu gfx1102 -debugger-tuning=gdb -fdebug-compilation-dir=/home/aphid/src/rocm/14_sparse/rocSPARSE -resource-dir /opt/rocm/lib/llvm/lib/clang/19 -dependency-file library/CMakeFiles/rocsparse.dir/src/util/rocsparse_check_matrix_csr.cpp.o.d -MT library/CMakeFiles/rocsparse.dir/src/util/rocsparse_check_matrix_csr.cpp.o -sys-header-deps -internal-isystem /opt/rocm/lib/llvm/lib/clang/19/include/cuda_wrappers -idirafter /opt/rocm/include -include __clang_hip_runtime_wrapper.h -isystem /opt/rocm/include -D USE_PROF_API=1 -D __HIP_PLATFORM_AMD__=1 -D rocsparse_EXPORTS -I /home/aphid/src/rocm/14_sparse/rocSPARSE/library/src/include -I /home/aphid/src/rocm/14_sparse/rocSPARSE/library/include -I /home/aphid/src/rocm/14_sparse/rocSPARSE/include/rocsparse -I /home/aphid/src/rocm/14_sparse/rocSPARSE/include -D NDEBUG -D ROCSPARSE_WITH_ROCBLAS -internal-isystem /usr/lib64/gcc/x86_64-pc-linux-gnu/14.1.1/../../../../include/c++/14.1.1 -internal-isystem /usr/lib64/gcc/x86_64-pc-linux-gnu/14.1.1/../../../../include/c++/14.1.1/x86_64-pc-linux-gnu -internal-isystem /usr/lib64/gcc/x86_64-pc-linux-gnu/14.1.1/../../../../include/c++/14.1.1/backward -internal-isystem /usr/lib64/gcc/x86_64-pc-linux-gnu/14.1.1/../../../../include/c++/14.1.1 -internal-isystem /usr/lib64/gcc/x86_64-pc-linux-gnu/14.1.1/../../../../include/c++/14.1.1/x86_64-pc-linux-gnu -internal-isystem /usr/lib64/gcc/x86_64-pc-linux-gnu/14.1.1/../../../../include/c++/14.1.1/backward -internal-isystem /opt/rocm/lib/llvm/lib/clang/19/include -internal-isystem /usr/local/include -internal-isystem /usr/lib64/gcc/x86_64-pc-linux-gnu/14.1.1/../../../../x86_64-pc-linux-gnu/include -internal-externc-isystem /include -internal-externc-isystem /usr/include -internal-isystem /opt/rocm/lib/llvm/lib/clang/19/include -internal-isystem /usr/local/include -internal-isystem /usr/lib64/gcc/x86_64-pc-linux-gnu/14.1.1/../../../../x86_64-pc-linux-gnu/include -internal-externc-isystem /include -internal-externc-isystem /usr/include -O3 -Wno-unused-command-line-argument -Wall -std=c++14 -fdeprecated-macro -fno-autolink -ferror-limit 19 -fvisibility=hidden -fvisibility-inlines-hidden -fhip-new-launch-api -fcf-protection=none -fgnuc-version=4.2.1 -fskip-odr-check-in-gmf -fcxx-exceptions -fexceptions -vectorize-loops -vectorize-slp -mllvm -amdgpu-early-inline-all=true -mllvm -amdgpu-function-calls=false -cuid=90d98b4a092efb3c -fcuda-allow-variadic-functions -faddrsig -D__GCC_HAVE_DWARF2_CFI_ASM=1 -o /tmp/rocsparse_check_matrix_csr-gfx1102-599a9c.o -x hip /home/aphid/src/rocm/14_sparse/rocSPARSE/library/src/util/rocsparse_check_matrix_csr.cpp 1. parser at end of file 2. Code generation 3. Running pass 'CallGraph Pass Manager' on module '/home/aphid/src/rocm/14_sparse/rocSPARSE/library/src/util/rocsparse_check_matrix_csr.cpp'. 4. Running pass 'AMDGPU DAG->DAG Pattern Instruction Selection' on function '@_ZN7rocprim6detail28segmented_sort_medium_kernelINS0_35wrapped_segmented_radix_sort_configINS_14default_configElNS_10empty_typeEEELb0EPlS6_PS4_S7_PjS6_EEvT1_PNSt15iterator_traitsIS9_E10value_typeET2_T3_PNSA_ISF_E10value_typeET4_bjT5_T6_SL_jj' #0 0x000059aed69c156c llvm::sys::PrintStackTrace(llvm::raw_ostream&, int) /home/aphid/src/rocm/02_llvm/llvm-project/llvm/lib/Support/Unix/Signals.inc:723:22 #1 0x000059aed69be5fb llvm::sys::RunSignalHandlers() /home/aphid/src/rocm/02_llvm/llvm-project/llvm/lib/Support/Signals.cpp:105:20 #2 0x000059aed69be5fb SignalHandler(int) /home/aphid/src/rocm/02_llvm/llvm-project/llvm/lib/Support/Unix/Signals.inc:403:31 #3 0x00007846f3a50ae0 (/usr/lib64/libc.so.6+0x3cae0) #4 0x000059aed4d6fe58 llvm::Use::getUser() const /home/aphid/src/rocm/02_llvm/llvm-project/llvm/include/llvm/IR/Use.h:72:34 #5 0x000059aed4d6fe58 llvm::Value::user_iterator_impl::operator*() const /home/aphid/src/rocm/02_llvm/llvm-project/llvm/include/llvm/IR/Value.h:202:25 #6 0x000059aed4d6fe58 hasCFUser(llvm::Value const*, llvm::SmallPtrSet&, unsigned int) /home/aphid/src/rocm/02_llvm/llvm-project/llvm/lib/Target/AMDGPU/SIISelLowering.cpp:16621:0 #7 0x000059aed4d6fe43 hasCFUser(llvm::Value const*, llvm::SmallPtrSet&, unsigned int) /home/aphid/src/rocm/02_llvm/llvm-project/llvm/lib/Target/AMDGPU/SIISelLowering.cpp:16649:0 #8 0x000059aed4d6fe43 hasCFUser(llvm::Value const*, llvm::SmallPtrSet&, unsigned int) /home/aphid/src/rocm/02_llvm/llvm-project/llvm/lib/Target/AMDGPU/SIISelLowering.cpp:16649:0 #9 0x000059aed4d6fe43 hasCFUser(llvm::Value const*, llvm::SmallPtrSet&, unsigned int) /home/aphid/src/rocm/02_llvm/llvm-project/llvm/lib/Target/AMDGPU/SIISelLowering.cpp:16649:0 #10 0x000059aed4d6fe43 hasCFUser(llvm::Value const*, llvm::SmallPtrSet&, unsigned int) /home/aphid/src/rocm/02_llvm/llvm-project/llvm/lib/Target/AMDGPU/SIISelLowering.cpp:16649:0 #11 0x000059aed4d6fe43 hasCFUser(llvm::Value const*, llvm::SmallPtrSet&, unsigned int) /home/aphid/src/rocm/02_llvm/llvm-project/llvm/lib/Target/AMDGPU/SIISelLowering.cpp:16649:0 #12 0x000059aed4d6fe43 hasCFUser(llvm::Value const*, llvm::SmallPtrSet&, unsigned int) /home/aphid/src/rocm/02_llvm/llvm-project/llvm/lib/Target/AMDGPU/SIISelLowering.cpp:16649:0 #13 0x000059aed4d6fe43 hasCFUser(llvm::Value const*, llvm::SmallPtrSet&, unsigned int) /home/aphid/src/rocm/02_llvm/llvm-project/llvm/lib/Target/AMDGPU/SIISelLowering.cpp:16649:0 #14 0x000059aed4d6fe43 hasCFUser(llvm::Value const*, llvm::SmallPtrSet&, unsigned int) /home/aphid/src/rocm/02_llvm/llvm-project/llvm/lib/Target/AMDGPU/SIISelLowering.cpp:16649:0 #15 0x000059aed4d6fe43 hasCFUser(llvm::Value const*, llvm::SmallPtrSet&, unsigned int) /home/aphid/src/rocm/02_llvm/llvm-project/llvm/lib/Target/AMDGPU/SIISelLowering.cpp:16649:0 #16 0x000059aed4d6fe43 hasCFUser(llvm::Value const*, llvm::SmallPtrSet&, unsigned int) /home/aphid/src/rocm/02_llvm/llvm-project/llvm/lib/Target/AMDGPU/SIISelLowering.cpp:16649:0 #17 0x000059aed4d6fe43 hasCFUser(llvm::Value const*, llvm::SmallPtrSet&, unsigned int) /home/aphid/src/rocm/02_llvm/llvm-project/llvm/lib/Target/AMDGPU/SIISelLowering.cpp:16649:0 #18 0x000059aed4d6fe43 hasCFUser(llvm::Value const*, llvm::SmallPtrSet&, unsigned int) /home/aphid/src/rocm/02_llvm/llvm-project/llvm/lib/Target/AMDGPU/SIISelLowering.cpp:16649:0 #19 0x000059aed4d6fe43 hasCFUser(llvm::Value const*, llvm::SmallPtrSet&, unsigned int) /home/aphid/src/rocm/02_llvm/llvm-project/llvm/lib/Target/AMDGPU/SIISelLowering.cpp:16649:0 #20 0x000059aed4d6fe43 hasCFUser(llvm::Value const*, llvm::SmallPtrSet&, unsigned int) /home/aphid/src/rocm/02_llvm/llvm-project/llvm/lib/Target/AMDGPU/SIISelLowering.cpp:16649:0 #21 0x000059aed4d6fe43 hasCFUser(llvm::Value const*, llvm::SmallPtrSet&, unsigned int) /home/aphid/src/rocm/02_llvm/llvm-project/llvm/lib/Target/AMDGPU/SIISelLowering.cpp:16649:0 #22 0x000059aed4d6fe43 hasCFUser(llvm::Value const*, llvm::SmallPtrSet&, unsigned int) /home/aphid/src/rocm/02_llvm/llvm-project/llvm/lib/Target/AMDGPU/SIISelLowering.cpp:16649:0 #23 0x000059aed4d6fe43 hasCFUser(llvm::Value const*, llvm::SmallPtrSet&, unsigned int) /home/aphid/src/rocm/02_llvm/llvm-project/llvm/lib/Target/AMDGPU/SIISelLowering.cpp:16649:0 #24 0x000059aed4d6fe43 hasCFUser(llvm::Value const*, llvm::SmallPtrSet&, unsigned int) /home/aphid/src/rocm/02_llvm/llvm-project/llvm/lib/Target/AMDGPU/SIISelLowering.cpp:16649:0 #25 0x000059aed4d6fe43 hasCFUser(llvm::Value const*, llvm::SmallPtrSet&, unsigned int) /home/aphid/src/rocm/02_llvm/llvm-project/llvm/lib/Target/AMDGPU/SIISelLowering.cpp:16649:0 #26 0x000059aed4d6fe43 hasCFUser(llvm::Value const*, llvm::SmallPtrSet&, unsigned int) /home/aphid/src/rocm/02_llvm/llvm-project/llvm/lib/Target/AMDGPU/SIISelLowering.cpp:16649:0 #27 0x000059aed4d6fe43 hasCFUser(llvm::Value const*, llvm::SmallPtrSet&, unsigned int) /home/aphid/src/rocm/02_llvm/llvm-project/llvm/lib/Target/AMDGPU/SIISelLowering.cpp:16649:0 #28 0x000059aed4d6fe43 hasCFUser(llvm::Value const*, llvm::SmallPtrSet&, unsigned int) /home/aphid/src/rocm/02_llvm/llvm-project/llvm/lib/Target/AMDGPU/SIISelLowering.cpp:16649:0 #29 0x000059aed4d6fe43 hasCFUser(llvm::Value const*, llvm::SmallPtrSet&, unsigned int) /home/aphid/src/rocm/02_llvm/llvm-project/llvm/lib/Target/AMDGPU/SIISelLowering.cpp:16649:0 #30 0x000059aed4d6fe43 hasCFUser(llvm::Value const*, llvm::SmallPtrSet&, unsigned int) /home/aphid/src/rocm/02_llvm/llvm-project/llvm/lib/Target/AMDGPU/SIISelLowering.cpp:16649:0 #31 0x000059aed4d6fe43 hasCFUser(llvm::Value const*, llvm::SmallPtrSet&, unsigned int) /home/aphid/src/rocm/02_llvm/llvm-project/llvm/lib/Target/AMDGPU/SIISelLowering.cpp:16649:0 #32 0x000059aed4d6fe43 hasCFUser(llvm::Value const*, llvm::SmallPtrSet&, unsigned int) /home/aphid/src/rocm/02_llvm/llvm-project/llvm/lib/Target/AMDGPU/SIISelLowering.cpp:16649:0 #33 0x000059aed4d6fe43 hasCFUser(llvm::Value const*, llvm::SmallPtrSet&, unsigned int) /home/aphid/src/rocm/02_llvm/llvm-project/llvm/lib/Target/AMDGPU/SIISelLowering.cpp:16649:0 #34 0x000059aed4d6fe43 hasCFUser(llvm::Value const*, llvm::SmallPtrSet&, unsigned int) /home/aphid/src/rocm/02_llvm/llvm-project/llvm/lib/Target/AMDGPU/SIISelLowering.cpp:16649:0 #35 0x000059aed4d6fe43 hasCFUser(llvm::Value const*, llvm::SmallPtrSet&, unsigned int) /home/aphid/src/rocm/02_llvm/llvm-project/llvm/lib/Target/AMDGPU/SIISelLowering.cpp:16649:0 #36 0x000059aed4dd6981 llvm::SmallPtrSetImplBase::isSmall() const /home/aphid/src/rocm/02_llvm/llvm-project/llvm/include/llvm/ADT/SmallPtrSet.h:197:33 #37 0x000059aed4dd6981 llvm::SmallPtrSetImplBase::~SmallPtrSetImplBase() /home/aphid/src/rocm/02_llvm/llvm-project/llvm/include/llvm/ADT/SmallPtrSet.h:84:17 #38 0x000059aed4dd6981 llvm::SmallPtrSetImpl::~SmallPtrSetImpl() /home/aphid/src/rocm/02_llvm/llvm-project/llvm/include/llvm/ADT/SmallPtrSet.h:323:7 #39 0x000059aed4dd6981 llvm::SmallPtrSet::~SmallPtrSet() /home/aphid/src/rocm/02_llvm/llvm-project/llvm/include/llvm/ADT/SmallPtrSet.h:479:7 #40 0x000059aed4dd6981 llvm::SITargetLowering::requiresUniformRegister(llvm::MachineFunction&, llvm::Value const*) const /home/aphid/src/rocm/02_llvm/llvm-project/llvm/lib/Target/AMDGPU/SIISelLowering.cpp:16680:0 #41 0x000059aed7bdb449 llvm::FunctionLoweringInfo::CreateRegs(llvm::Value const*) /home/aphid/src/rocm/02_llvm/llvm-project/llvm/lib/CodeGen/SelectionDAG/FunctionLoweringInfo.cpp:400:60 #42 0x000059aed7bdb449 llvm::FunctionLoweringInfo::InitializeRegForValue(llvm::Value const*) /home/aphid/src/rocm/02_llvm/llvm-project/llvm/lib/CodeGen/SelectionDAG/FunctionLoweringInfo.cpp:411:24 #43 0x000059aed7be054b llvm::FunctionLoweringInfo::set(llvm::Function const&, llvm::MachineFunction&, llvm::SelectionDAG*) /home/aphid/src/rocm/02_llvm/llvm-project/llvm/lib/CodeGen/SelectionDAG/FunctionLoweringInfo.cpp:231:7 #44 0x000059aed7d22bd0 llvm::SelectionDAGISel::runOnMachineFunction(llvm::MachineFunction&) /home/aphid/src/rocm/02_llvm/llvm-project/llvm/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp:598:3 #45 0x000059aed7d0c333 llvm::OptLevelChanger::~OptLevelChanger() /home/aphid/src/rocm/02_llvm/llvm-project/llvm/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp:268:11 #46 0x000059aed7d0c333 llvm::SelectionDAGISelLegacy::runOnMachineFunction(llvm::MachineFunction&) /home/aphid/src/rocm/02_llvm/llvm-project/llvm/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp:375:1 #47 0x000059aed7d0c333 llvm::SelectionDAGISelLegacy::runOnMachineFunction(llvm::MachineFunction&) /home/aphid/src/rocm/02_llvm/llvm-project/llvm/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp:346:6 #48 0x000059aed5c18830 llvm::MachineFunctionPass::runOnFunction(llvm::Function&) (.part.0) /home/aphid/src/rocm/02_llvm/llvm-project/llvm/lib/CodeGen/MachineFunctionPass.cpp:94:33 #49 0x000059aed62b8818 llvm::FPPassManager::runOnFunction(llvm::Function&) /home/aphid/src/rocm/02_llvm/llvm-project/llvm/lib/IR/LegacyPassManager.cpp:1440:40 #50 0x000059aed57ca167 RunPassOnSCC /home/aphid/src/rocm/02_llvm/llvm-project/llvm/lib/Analysis/CallGraphSCCPass.cpp:180:17 #51 0x000059aed57ca167 RunAllPassesOnSCC /home/aphid/src/rocm/02_llvm/llvm-project/llvm/lib/Analysis/CallGraphSCCPass.cpp:470:21 #52 0x000059aed57ca167 (anonymous namespace)::CGPassManager::runOnModule(llvm::Module&) /home/aphid/src/rocm/02_llvm/llvm-project/llvm/lib/Analysis/CallGraphSCCPass.cpp:535:35 #53 0x000059aed62b9677 runOnModule /home/aphid/src/rocm/02_llvm/llvm-project/llvm/lib/IR/LegacyPassManager.cpp:1562:7 #54 0x000059aed62b9677 llvm::legacy::PassManagerImpl::run(llvm::Module&) /home/aphid/src/rocm/02_llvm/llvm-project/llvm/lib/IR/LegacyPassManager.cpp:541:55 #55 0x000059aed6c78232 llvm::TimeTraceScope::~TimeTraceScope() /home/aphid/src/rocm/02_llvm/llvm-project/llvm/include/llvm/Support/TimeProfiler.h:168:37 #56 0x000059aed6c78232 RunCodegenPipeline /home/aphid/src/rocm/02_llvm/llvm-project/clang/lib/CodeGen/BackendUtil.cpp:1158:3 #57 0x000059aed6c78232 EmitAssembly /home/aphid/src/rocm/02_llvm/llvm-project/clang/lib/CodeGen/BackendUtil.cpp:1180:21 #58 0x000059aed6c78232 clang::EmitBackendOutput(clang::DiagnosticsEngine&, clang::HeaderSearchOptions const&, clang::CodeGenOptions const&, clang::TargetOptions const&, clang::LangOptions const&, llvm::StringRef, llvm::Module*, clang::BackendAction, llvm::IntrusiveRefCntPtr, std::unique_ptr>, clang::BackendConsumer*) /home/aphid/src/rocm/02_llvm/llvm-project/clang/lib/CodeGen/BackendUtil.cpp:1341:25 #59 0x000059aed731943d llvm::IntrusiveRefCntPtr::release() /home/aphid/src/rocm/02_llvm/llvm-project/llvm/include/llvm/ADT/IntrusiveRefCntPtr.h:232:9 #60 0x000059aed731943d llvm::IntrusiveRefCntPtr::~IntrusiveRefCntPtr() /home/aphid/src/rocm/02_llvm/llvm-project/llvm/include/llvm/ADT/IntrusiveRefCntPtr.h:196:34 #61 0x000059aed731943d clang::BackendConsumer::HandleTranslationUnit(clang::ASTContext&) /home/aphid/src/rocm/02_llvm/llvm-project/clang/lib/CodeGen/CodeGenAction.cpp:355:20 #62 0x000059aed906167c clang::ParseAST(clang::Sema&, bool, bool) /home/aphid/src/rocm/02_llvm/llvm-project/clang/lib/Parse/ParseAST.cpp:176:34 #63 0x000059aed7609209 clang::FrontendAction::Execute() /home/aphid/src/rocm/02_llvm/llvm-project/clang/lib/Frontend/FrontendAction.cpp:1078:21 #64 0x000059aed758a63e llvm::Error::getPtr() const /home/aphid/src/rocm/02_llvm/llvm-project/llvm/include/llvm/Support/Error.h:279:51 #65 0x000059aed758a63e llvm::Error::operator bool() /home/aphid/src/rocm/02_llvm/llvm-project/llvm/include/llvm/Support/Error.h:242:22 #66 0x000059aed758a63e clang::CompilerInstance::ExecuteAction(clang::FrontendAction&) /home/aphid/src/rocm/02_llvm/llvm-project/clang/lib/Frontend/CompilerInstance.cpp:1061:42 #67 0x000059aed76e981f std::__shared_ptr::get() const /usr/include/c++/14.1.1/bits/shared_ptr_base.h:1667:16 #68 0x000059aed76e981f std::__shared_ptr_access::_M_get() const /usr/include/c++/14.1.1/bits/shared_ptr_base.h:1364:69 #69 0x000059aed76e981f std::__shared_ptr_access::operator*() const /usr/include/c++/14.1.1/bits/shared_ptr_base.h:1350:2 #70 0x000059aed76e981f clang::CompilerInvocation::getFrontendOpts() /home/aphid/src/rocm/02_llvm/llvm-project/clang/include/clang/Frontend/CompilerInvocation.h:259:48 #71 0x000059aed76e981f clang::CompilerInstance::getFrontendOpts() /home/aphid/src/rocm/02_llvm/llvm-project/clang/include/clang/Frontend/CompilerInstance.h:312:39 #72 0x000059aed76e981f clang::ExecuteCompilerInvocation(clang::CompilerInstance*) /home/aphid/src/rocm/02_llvm/llvm-project/clang/lib/FrontendTool/ExecuteCompilerInvocation.cpp:281:29 #73 0x000059aed4bd8277 cc1_main(llvm::ArrayRef, char const*, void*) /home/aphid/src/rocm/02_llvm/llvm-project/clang/tools/driver/cc1_main.cpp:276:40 #74 0x000059aed4bd11c0 ExecuteCC1Tool(llvm::SmallVectorImpl&, llvm::ToolContext const&) /home/aphid/src/rocm/02_llvm/llvm-project/clang/tools/driver/driver.cpp:231:20 #75 0x000059aed4bd38ef clang_main(int, char**, llvm::ToolContext const&) /home/aphid/src/rocm/02_llvm/llvm-project/clang/tools/driver/driver.cpp:272:26 #76 0x000059aed4ad4814 main /home/aphid/src/rocm/02_llvm/llvm-project/tools/clang/tools/driver/clang-driver.cpp:18:1 #77 0x00007846f3a39c88 (/usr/lib64/libc.so.6+0x25c88) #78 0x00007846f3a39d4c __libc_start_main (/usr/lib64/libc.so.6+0x25d4c) #79 0x000059aed4bd07c5 _start (/opt/rocm/lib/llvm/bin/clang-19+0xe5a7c5) clang: error: unable to execute command: Segmentation fault (core dumped) free(): invalid pointer PLEASE submit a bug report to https://github.com/llvm/llvm-project/issues/ and include the crash backtrace, preprocessed source, and associated run script. Stack dump: 0. Program arguments: /opt/rocm/lib/llvm/bin/clang-19 -cc1 -triple amdgcn-amd-amdhsa -aux-triple x86_64-unknown-linux-gnu -Werror=atomic-alignment -emit-obj -disable-free -clear-ast-before-backend -main-file-name rocsparse_check_matrix_csr.cpp -mrelocation-model pic -pic-level 2 -fhalf-no-semantic-interposition -mframe-pointer=none -fno-rounding-math -mconstructor-aliases -aux-target-cpu x86-64 -fcuda-is-device -mllvm -amdgpu-internalize-symbols -fcuda-allow-variadic-functions -mlink-builtin-bitcode /opt/rocm/amdgcn/bitcode/hip.bc -mlink-builtin-bitcode /opt/rocm/amdgcn/bitcode/ocml.bc -mlink-builtin-bitcode /opt/rocm/amdgcn/bitcode/ockl.bc -mlink-builtin-bitcode /opt/rocm/amdgcn/bitcode/oclc_daz_opt_off.bc -mlink-builtin-bitcode /opt/rocm/amdgcn/bitcode/oclc_unsafe_math_off.bc -mlink-builtin-bitcode /opt/rocm/amdgcn/bitcode/oclc_finite_only_off.bc -mlink-builtin-bitcode /opt/rocm/amdgcn/bitcode/oclc_correctly_rounded_sqrt_on.bc -mlink-builtin-bitcode /opt/rocm/amdgcn/bitcode/oclc_wavefrontsize64_off.bc -mlink-builtin-bitcode /opt/rocm/amdgcn/bitcode/oclc_isa_version_1030.bc -mlink-builtin-bitcode /opt/rocm/amdgcn/bitcode/oclc_abi_version_500.bc -target-cpu gfx1030 -debugger-tuning=gdb -fdebug-compilation-dir=/home/aphid/src/rocm/14_sparse/rocSPARSE -resource-dir /opt/rocm/lib/llvm/lib/clang/19 -dependency-file library/CMakeFiles/rocsparse.dir/src/util/rocsparse_check_matrix_csr.cpp.o.d -MT library/CMakeFiles/rocsparse.dir/src/util/rocsparse_check_matrix_csr.cpp.o -sys-header-deps -internal-isystem /opt/rocm/lib/llvm/lib/clang/19/include/cuda_wrappers -idirafter /opt/rocm/include -include __clang_hip_runtime_wrapper.h -isystem /opt/rocm/include -D USE_PROF_API=1 -D __HIP_PLATFORM_AMD__=1 -D rocsparse_EXPORTS -I /home/aphid/src/rocm/14_sparse/rocSPARSE/library/src/include -I /home/aphid/src/rocm/14_sparse/rocSPARSE/library/include -I /home/aphid/src/rocm/14_sparse/rocSPARSE/include/rocsparse -I /home/aphid/src/rocm/14_sparse/rocSPARSE/include -D NDEBUG -D ROCSPARSE_WITH_ROCBLAS -internal-isystem /usr/lib64/gcc/x86_64-pc-linux-gnu/14.1.1/../../../../include/c++/14.1.1 -internal-isystem /usr/lib64/gcc/x86_64-pc-linux-gnu/14.1.1/../../../../include/c++/14.1.1/x86_64-pc-linux-gnu -internal-isystem /usr/lib64/gcc/x86_64-pc-linux-gnu/14.1.1/../../../../include/c++/14.1.1/backward -internal-isystem /usr/lib64/gcc/x86_64-pc-linux-gnu/14.1.1/../../../../include/c++/14.1.1 -internal-isystem /usr/lib64/gcc/x86_64-pc-linux-gnu/14.1.1/../../../../include/c++/14.1.1/x86_64-pc-linux-gnu -internal-isystem /usr/lib64/gcc/x86_64-pc-linux-gnu/14.1.1/../../../../include/c++/14.1.1/backward -internal-isystem /opt/rocm/lib/llvm/lib/clang/19/include -internal-isystem /usr/local/include -internal-isystem /usr/lib64/gcc/x86_64-pc-linux-gnu/14.1.1/../../../../x86_64-pc-linux-gnu/include -internal-externc-isystem /include -internal-externc-isystem /usr/include -internal-isystem /opt/rocm/lib/llvm/lib/clang/19/include -internal-isystem /usr/local/include -internal-isystem /usr/lib64/gcc/x86_64-pc-linux-gnu/14.1.1/../../../../x86_64-pc-linux-gnu/include -internal-externc-isystem /include -internal-externc-isystem /usr/include -O3 -Wno-unused-command-line-argument -Wall -std=c++14 -fdeprecated-macro -fno-autolink -ferror-limit 19 -fvisibility=hidden -fvisibility-inlines-hidden -fhip-new-launch-api -fcf-protection=none -fgnuc-version=4.2.1 -fskip-odr-check-in-gmf -fcxx-exceptions -fexceptions -vectorize-loops -vectorize-slp -mllvm -amdgpu-early-inline-all=true -mllvm -amdgpu-function-calls=false -cuid=90d98b4a092efb3c -fcuda-allow-variadic-functions -faddrsig -D__GCC_HAVE_DWARF2_CFI_ASM=1 -o /tmp/rocsparse_check_matrix_csr-gfx1030-a78cee.o -x hip /home/aphid/src/rocm/14_sparse/rocSPARSE/library/src/util/rocsparse_check_matrix_csr.cpp 1. parser at end of file 2. Code generation 3. Running pass 'CallGraph Pass Manager' on module '/home/aphid/src/rocm/14_sparse/rocSPARSE/library/src/util/rocsparse_check_matrix_csr.cpp'. 4. Running pass 'AMDGPU DAG->DAG Pattern Instruction Selection' on function '@_ZN7rocprim6detail27segmented_sort_small_kernelINS0_35wrapped_segmented_radix_sort_configINS_14default_configElNS_10empty_typeEEELb0EPlS6_PS4_S7_NS_16reverse_iteratorIPjEES6_EEvT1_PNSt15iterator_traitsISB_E10value_typeET2_T3_PNSC_ISH_E10value_typeET4_bjT5_T6_SN_jj' #0 0x000064fb5cb6156c llvm::sys::PrintStackTrace(llvm::raw_ostream&, int) /home/aphid/src/rocm/02_llvm/llvm-project/llvm/lib/Support/Unix/Signals.inc:723:22 #1 0x000064fb5cb5e5fb llvm::sys::RunSignalHandlers() /home/aphid/src/rocm/02_llvm/llvm-project/llvm/lib/Support/Signals.cpp:105:20 #2 0x000064fb5cb5e5fb SignalHandler(int) /home/aphid/src/rocm/02_llvm/llvm-project/llvm/lib/Support/Unix/Signals.inc:403:31 #3 0x00007a64e2250ae0 (/usr/lib64/libc.so.6+0x3cae0) #4 0x00007a64e22a8e44 (/usr/lib64/libc.so.6+0x94e44) #5 0x00007a64e2250a30 raise (/usr/lib64/libc.so.6+0x3ca30) #6 0x00007a64e22384c3 abort (/usr/lib64/libc.so.6+0x244c3) #7 0x00007a64e2239354 (/usr/lib64/libc.so.6+0x25354) #8 0x00007a64e22b3085 (/usr/lib64/libc.so.6+0x9f085) #9 0x00007a64e22b549c (/usr/lib64/libc.so.6+0xa149c) #10 0x00007a64e22b7dae cfree (/usr/lib64/libc.so.6+0xa3dae) #11 0x000064fb5af76994 llvm::SITargetLowering::requiresUniformRegister(llvm::MachineFunction&, llvm::Value const*) const /home/aphid/src/rocm/02_llvm/llvm-project/llvm/lib/Target/AMDGPU/SIISelLowering.cpp:16680:0 #12 0x000064fb5dd7b449 llvm::FunctionLoweringInfo::CreateRegs(llvm::Value const*) /home/aphid/src/rocm/02_llvm/llvm-project/llvm/lib/CodeGen/SelectionDAG/FunctionLoweringInfo.cpp:400:60 #13 0x000064fb5dd7b449 llvm::FunctionLoweringInfo::InitializeRegForValue(llvm::Value const*) /home/aphid/src/rocm/02_llvm/llvm-project/llvm/lib/CodeGen/SelectionDAG/FunctionLoweringInfo.cpp:411:24 #14 0x000064fb5dd8054b llvm::FunctionLoweringInfo::set(llvm::Function const&, llvm::MachineFunction&, llvm::SelectionDAG*) /home/aphid/src/rocm/02_llvm/llvm-project/llvm/lib/CodeGen/SelectionDAG/FunctionLoweringInfo.cpp:231:7 #15 0x000064fb5dec2bd0 llvm::SelectionDAGISel::runOnMachineFunction(llvm::MachineFunction&) /home/aphid/src/rocm/02_llvm/llvm-project/llvm/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp:598:3 #16 0x000064fb5deac333 llvm::OptLevelChanger::~OptLevelChanger() /home/aphid/src/rocm/02_llvm/llvm-project/llvm/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp:268:11 #17 0x000064fb5deac333 llvm::SelectionDAGISelLegacy::runOnMachineFunction(llvm::MachineFunction&) /home/aphid/src/rocm/02_llvm/llvm-project/llvm/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp:375:1 #18 0x000064fb5deac333 llvm::SelectionDAGISelLegacy::runOnMachineFunction(llvm::MachineFunction&) /home/aphid/src/rocm/02_llvm/llvm-project/llvm/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp:346:6 #19 0x000064fb5bdb8830 llvm::MachineFunctionPass::runOnFunction(llvm::Function&) (.part.0) /home/aphid/src/rocm/02_llvm/llvm-project/llvm/lib/CodeGen/MachineFunctionPass.cpp:94:33 #20 0x000064fb5c458818 llvm::FPPassManager::runOnFunction(llvm::Function&) /home/aphid/src/rocm/02_llvm/llvm-project/llvm/lib/IR/LegacyPassManager.cpp:1440:40 #21 0x000064fb5b96a167 RunPassOnSCC /home/aphid/src/rocm/02_llvm/llvm-project/llvm/lib/Analysis/CallGraphSCCPass.cpp:180:17 #22 0x000064fb5b96a167 RunAllPassesOnSCC /home/aphid/src/rocm/02_llvm/llvm-project/llvm/lib/Analysis/CallGraphSCCPass.cpp:470:21 #23 0x000064fb5b96a167 (anonymous namespace)::CGPassManager::runOnModule(llvm::Module&) /home/aphid/src/rocm/02_llvm/llvm-project/llvm/lib/Analysis/CallGraphSCCPass.cpp:535:35 #24 0x000064fb5c459677 runOnModule /home/aphid/src/rocm/02_llvm/llvm-project/llvm/lib/IR/LegacyPassManager.cpp:1562:7 #25 0x000064fb5c459677 llvm::legacy::PassManagerImpl::run(llvm::Module&) /home/aphid/src/rocm/02_llvm/llvm-project/llvm/lib/IR/LegacyPassManager.cpp:541:55 #26 0x000064fb5ce18232 llvm::TimeTraceScope::~TimeTraceScope() /home/aphid/src/rocm/02_llvm/llvm-project/llvm/include/llvm/Support/TimeProfiler.h:168:37 #27 0x000064fb5ce18232 RunCodegenPipeline /home/aphid/src/rocm/02_llvm/llvm-project/clang/lib/CodeGen/BackendUtil.cpp:1158:3 #28 0x000064fb5ce18232 EmitAssembly /home/aphid/src/rocm/02_llvm/llvm-project/clang/lib/CodeGen/BackendUtil.cpp:1180:21 #29 0x000064fb5ce18232 clang::EmitBackendOutput(clang::DiagnosticsEngine&, clang::HeaderSearchOptions const&, clang::CodeGenOptions const&, clang::TargetOptions const&, clang::LangOptions const&, llvm::StringRef, llvm::Module*, clang::BackendAction, llvm::IntrusiveRefCntPtr, std::unique_ptr>, clang::BackendConsumer*) /home/aphid/src/rocm/02_llvm/llvm-project/clang/lib/CodeGen/BackendUtil.cpp:1341:25 #30 0x000064fb5d4b943d llvm::IntrusiveRefCntPtr::release() /home/aphid/src/rocm/02_llvm/llvm-project/llvm/include/llvm/ADT/IntrusiveRefCntPtr.h:232:9 #31 0x000064fb5d4b943d llvm::IntrusiveRefCntPtr::~IntrusiveRefCntPtr() /home/aphid/src/rocm/02_llvm/llvm-project/llvm/include/llvm/ADT/IntrusiveRefCntPtr.h:196:34 #32 0x000064fb5d4b943d clang::BackendConsumer::HandleTranslationUnit(clang::ASTContext&) /home/aphid/src/rocm/02_llvm/llvm-project/clang/lib/CodeGen/CodeGenAction.cpp:355:20 #33 0x000064fb5f20167c clang::ParseAST(clang::Sema&, bool, bool) /home/aphid/src/rocm/02_llvm/llvm-project/clang/lib/Parse/ParseAST.cpp:176:34 #34 0x000064fb5d7a9209 clang::FrontendAction::Execute() /home/aphid/src/rocm/02_llvm/llvm-project/clang/lib/Frontend/FrontendAction.cpp:1078:21 #35 0x000064fb5d72a63e llvm::Error::getPtr() const /home/aphid/src/rocm/02_llvm/llvm-project/llvm/include/llvm/Support/Error.h:279:51 #36 0x000064fb5d72a63e llvm::Error::operator bool() /home/aphid/src/rocm/02_llvm/llvm-project/llvm/include/llvm/Support/Error.h:242:22 #37 0x000064fb5d72a63e clang::CompilerInstance::ExecuteAction(clang::FrontendAction&) /home/aphid/src/rocm/02_llvm/llvm-project/clang/lib/Frontend/CompilerInstance.cpp:1061:42 #38 0x000064fb5d88981f std::__shared_ptr::get() const /usr/include/c++/14.1.1/bits/shared_ptr_base.h:1667:16 #39 0x000064fb5d88981f std::__shared_ptr_access::_M_get() const /usr/include/c++/14.1.1/bits/shared_ptr_base.h:1364:69 #40 0x000064fb5d88981f std::__shared_ptr_access::operator*() const /usr/include/c++/14.1.1/bits/shared_ptr_base.h:1350:2 #41 0x000064fb5d88981f clang::CompilerInvocation::getFrontendOpts() /home/aphid/src/rocm/02_llvm/llvm-project/clang/include/clang/Frontend/CompilerInvocation.h:259:48 #42 0x000064fb5d88981f clang::CompilerInstance::getFrontendOpts() /home/aphid/src/rocm/02_llvm/llvm-project/clang/include/clang/Frontend/CompilerInstance.h:312:39 #43 0x000064fb5d88981f clang::ExecuteCompilerInvocation(clang::CompilerInstance*) /home/aphid/src/rocm/02_llvm/llvm-project/clang/lib/FrontendTool/ExecuteCompilerInvocation.cpp:281:29 #44 0x000064fb5ad78277 cc1_main(llvm::ArrayRef, char const*, void*) /home/aphid/src/rocm/02_llvm/llvm-project/clang/tools/driver/cc1_main.cpp:276:40 #45 0x000064fb5ad711c0 ExecuteCC1Tool(llvm::SmallVectorImpl&, llvm::ToolContext const&) /home/aphid/src/rocm/02_llvm/llvm-project/clang/tools/driver/driver.cpp:231:20 #46 0x000064fb5ad738ef clang_main(int, char**, llvm::ToolContext const&) /home/aphid/src/rocm/02_llvm/llvm-project/clang/tools/driver/driver.cpp:272:26 #47 0x000064fb5ac74814 main /home/aphid/src/rocm/02_llvm/llvm-project/tools/clang/tools/driver/clang-driver.cpp:18:1 #48 0x00007a64e2239c88 (/usr/lib64/libc.so.6+0x25c88) #49 0x00007a64e2239d4c __libc_start_main (/usr/lib64/libc.so.6+0x25d4c) #50 0x000064fb5ad707c5 _start (/opt/rocm/lib/llvm/bin/clang-19+0xe5a7c5) clang: error: unable to execute command: Aborted (core dumped) clang: error: clang frontend command failed due to signal (use -v to see invocation) clang: error: clang frontend command failed due to signal (use -v to see invocation) clang version 19.0.0git (https://github.com/ROCm/llvm-project ccc83cb2ec5984de27102a8f0ce4f7f356105ed9) Target: x86_64-unknown-linux-gnu Thread model: posix InstalledDir: /opt/rocm/lib/llvm/bin Build config: +assertions clang: note: diagnostic msg: Error generating preprocessed source(s). [2/6] Building CXX object library/CMakeFiles/rocsparse.dir/src/util/rocsparse_check_matrix_csr_buffer_size.cpp.o FAILED: library/CMakeFiles/rocsparse.dir/src/util/rocsparse_check_matrix_csr_buffer_size.cpp.o /opt/rocm/bin/hipcc -DUSE_PROF_API=1 -D__HIP_PLATFORM_AMD__=1 -Drocsparse_EXPORTS -I/home/aphid/src/rocm/14_sparse/rocSPARSE/library/src/include -I/home/aphid/src/rocm/14_sparse/rocSPARSE/library/include -I/home/aphid/src/rocm/14_sparse/rocSPARSE/include/rocsparse -I/home/aphid/src/rocm/14_sparse/rocSPARSE/include -fcf-protection=none -O3 -DNDEBUG -std=c++14 -fPIC -fvisibility=hidden -fvisibility-inlines-hidden -DROCSPARSE_WITH_ROCBLAS -Wno-unused-command-line-argument -Wall -x hip --offload-arch=gfx803 --offload-arch=gfx900:xnack- --offload-arch=gfx906:xnack- --offload-arch=gfx908:xnack- --offload-arch=gfx90a:xnack- --offload-arch=gfx90a:xnack+ --offload-arch=gfx940 --offload-arch=gfx941 --offload-arch=gfx942 --offload-arch=gfx1030 --offload-arch=gfx1100 --offload-arch=gfx1101 --offload-arch=gfx1102 --offload-arch=gfx1200 --offload-arch=gfx1201 -MD -MT library/CMakeFiles/rocsparse.dir/src/util/rocsparse_check_matrix_csr_buffer_size.cpp.o -MF library/CMakeFiles/rocsparse.dir/src/util/rocsparse_check_matrix_csr_buffer_size.cpp.o.d -o library/CMakeFiles/rocsparse.dir/src/util/rocsparse_check_matrix_csr_buffer_size.cpp.o -c /home/aphid/src/rocm/14_sparse/rocSPARSE/library/src/util/rocsparse_check_matrix_csr_buffer_size.cpp free(): invalid pointer PLEASE submit a bug report to https://github.com/llvm/llvm-project/issues/ and include the crash backtrace, preprocessed source, and associated run script. Stack dump: 0. Program arguments: /opt/rocm/lib/llvm/bin/clang-19 -cc1 -triple amdgcn-amd-amdhsa -aux-triple x86_64-unknown-linux-gnu -Werror=atomic-alignment -emit-obj -disable-free -clear-ast-before-backend -main-file-name rocsparse_check_matrix_csr_buffer_size.cpp -mrelocation-model pic -pic-level 2 -fhalf-no-semantic-interposition -mframe-pointer=none -fno-rounding-math -mconstructor-aliases -aux-target-cpu x86-64 -fcuda-is-device -mllvm -amdgpu-internalize-symbols -fcuda-allow-variadic-functions -mlink-builtin-bitcode /opt/rocm/amdgcn/bitcode/hip.bc -mlink-builtin-bitcode /opt/rocm/amdgcn/bitcode/ocml.bc -mlink-builtin-bitcode /opt/rocm/amdgcn/bitcode/ockl.bc -mlink-builtin-bitcode /opt/rocm/amdgcn/bitcode/oclc_daz_opt_off.bc -mlink-builtin-bitcode /opt/rocm/amdgcn/bitcode/oclc_unsafe_math_off.bc -mlink-builtin-bitcode /opt/rocm/amdgcn/bitcode/oclc_finite_only_off.bc -mlink-builtin-bitcode /opt/rocm/amdgcn/bitcode/oclc_correctly_rounded_sqrt_on.bc -mlink-builtin-bitcode /opt/rocm/amdgcn/bitcode/oclc_wavefrontsize64_off.bc -mlink-builtin-bitcode /opt/rocm/amdgcn/bitcode/oclc_isa_version_1030.bc -mlink-builtin-bitcode /opt/rocm/amdgcn/bitcode/oclc_abi_version_500.bc -target-cpu gfx1030 -debugger-tuning=gdb -fdebug-compilation-dir=/home/aphid/src/rocm/14_sparse/rocSPARSE -resource-dir /opt/rocm/lib/llvm/lib/clang/19 -dependency-file library/CMakeFiles/rocsparse.dir/src/util/rocsparse_check_matrix_csr_buffer_size.cpp.o.d -MT library/CMakeFiles/rocsparse.dir/src/util/rocsparse_check_matrix_csr_buffer_size.cpp.o -sys-header-deps -internal-isystem /opt/rocm/lib/llvm/lib/clang/19/include/cuda_wrappers -idirafter /opt/rocm/include -include __clang_hip_runtime_wrapper.h -isystem /opt/rocm/include -D USE_PROF_API=1 -D __HIP_PLATFORM_AMD__=1 -D rocsparse_EXPORTS -I /home/aphid/src/rocm/14_sparse/rocSPARSE/library/src/include -I /home/aphid/src/rocm/14_sparse/rocSPARSE/library/include -I /home/aphid/src/rocm/14_sparse/rocSPARSE/include/rocsparse -I /home/aphid/src/rocm/14_sparse/rocSPARSE/include -D NDEBUG -D ROCSPARSE_WITH_ROCBLAS -internal-isystem /usr/lib64/gcc/x86_64-pc-linux-gnu/14.1.1/../../../../include/c++/14.1.1 -internal-isystem /usr/lib64/gcc/x86_64-pc-linux-gnu/14.1.1/../../../../include/c++/14.1.1/x86_64-pc-linux-gnu -internal-isystem /usr/lib64/gcc/x86_64-pc-linux-gnu/14.1.1/../../../../include/c++/14.1.1/backward -internal-isystem /usr/lib64/gcc/x86_64-pc-linux-gnu/14.1.1/../../../../include/c++/14.1.1 -internal-isystem /usr/lib64/gcc/x86_64-pc-linux-gnu/14.1.1/../../../../include/c++/14.1.1/x86_64-pc-linux-gnu -internal-isystem /usr/lib64/gcc/x86_64-pc-linux-gnu/14.1.1/../../../../include/c++/14.1.1/backward -internal-isystem /opt/rocm/lib/llvm/lib/clang/19/include -internal-isystem /usr/local/include -internal-isystem /usr/lib64/gcc/x86_64-pc-linux-gnu/14.1.1/../../../../x86_64-pc-linux-gnu/include -internal-externc-isystem /include -internal-externc-isystem /usr/include -internal-isystem /opt/rocm/lib/llvm/lib/clang/19/include -internal-isystem /usr/local/include -internal-isystem /usr/lib64/gcc/x86_64-pc-linux-gnu/14.1.1/../../../../x86_64-pc-linux-gnu/include -internal-externc-isystem /include -internal-externc-isystem /usr/include -O3 -Wno-unused-command-line-argument -Wall -std=c++14 -fdeprecated-macro -fno-autolink -ferror-limit 19 -fvisibility=hidden -fvisibility-inlines-hidden -fhip-new-launch-api -fcf-protection=none -fgnuc-version=4.2.1 -fskip-odr-check-in-gmf -fcxx-exceptions -fexceptions -vectorize-loops -vectorize-slp -mllvm -amdgpu-early-inline-all=true -mllvm -amdgpu-function-calls=false -cuid=c78cd782fddd420e -fcuda-allow-variadic-functions -faddrsig -D__GCC_HAVE_DWARF2_CFI_ASM=1 -o /tmp/rocsparse_check_matrix_csr_buffer_size-gfx1030-776c0e.o -x hip /home/aphid/src/rocm/14_sparse/rocSPARSE/library/src/util/rocsparse_check_matrix_csr_buffer_size.cpp 1. parser at end of file 2. Code generation 3. Running pass 'CallGraph Pass Manager' on module '/home/aphid/src/rocm/14_sparse/rocSPARSE/library/src/util/rocsparse_check_matrix_csr_buffer_size.cpp'. 4. Running pass 'AMDGPU DAG->DAG Pattern Instruction Selection' on function '@_ZN7rocprim6detail21segmented_sort_kernelINS0_35wrapped_segmented_radix_sort_configINS_14default_configEllEELb0EPlS5_S5_S5_PKlEEvT1_PNSt15iterator_traitsIS8_E10value_typeET2_T3_PNS9_ISE_E10value_typeET4_bT5_SJ_jjjj' #0 0x00006375e421256c llvm::sys::PrintStackTrace(llvm::raw_ostream&, int) /home/aphid/src/rocm/02_llvm/llvm-project/llvm/lib/Support/Unix/Signals.inc:723:22 #1 0x00006375e420f5fb llvm::sys::RunSignalHandlers() /home/aphid/src/rocm/02_llvm/llvm-project/llvm/lib/Support/Signals.cpp:105:20 #2 0x00006375e420f5fb SignalHandler(int) /home/aphid/src/rocm/02_llvm/llvm-project/llvm/lib/Support/Unix/Signals.inc:403:31 #3 0x0000701848365ae0 (/usr/lib64/libc.so.6+0x3cae0) #4 0x00007018483bde44 (/usr/lib64/libc.so.6+0x94e44) #5 0x0000701848365a30 raise (/usr/lib64/libc.so.6+0x3ca30) #6 0x000070184834d4c3 abort (/usr/lib64/libc.so.6+0x244c3) #7 0x000070184834e354 (/usr/lib64/libc.so.6+0x25354) #8 0x00007018483c8085 (/usr/lib64/libc.so.6+0x9f085) #9 0x00007018483ca49c (/usr/lib64/libc.so.6+0xa149c) #10 0x00007018483ccdae cfree (/usr/lib64/libc.so.6+0xa3dae) #11 0x00006375e2627994 llvm::SITargetLowering::requiresUniformRegister(llvm::MachineFunction&, llvm::Value const*) const /home/aphid/src/rocm/02_llvm/llvm-project/llvm/lib/Target/AMDGPU/SIISelLowering.cpp:16680:0 #12 0x00006375e542c449 llvm::FunctionLoweringInfo::CreateRegs(llvm::Value const*) /home/aphid/src/rocm/02_llvm/llvm-project/llvm/lib/CodeGen/SelectionDAG/FunctionLoweringInfo.cpp:400:60 #13 0x00006375e542c449 llvm::FunctionLoweringInfo::InitializeRegForValue(llvm::Value const*) /home/aphid/src/rocm/02_llvm/llvm-project/llvm/lib/CodeGen/SelectionDAG/FunctionLoweringInfo.cpp:411:24 #14 0x00006375e543154b llvm::FunctionLoweringInfo::set(llvm::Function const&, llvm::MachineFunction&, llvm::SelectionDAG*) /home/aphid/src/rocm/02_llvm/llvm-project/llvm/lib/CodeGen/SelectionDAG/FunctionLoweringInfo.cpp:231:7 #15 0x00006375e5573bd0 llvm::SelectionDAGISel::runOnMachineFunction(llvm::MachineFunction&) /home/aphid/src/rocm/02_llvm/llvm-project/llvm/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp:598:3 #16 0x00006375e555d333 llvm::OptLevelChanger::~OptLevelChanger() /home/aphid/src/rocm/02_llvm/llvm-project/llvm/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp:268:11 #17 0x00006375e555d333 llvm::SelectionDAGISelLegacy::runOnMachineFunction(llvm::MachineFunction&) /home/aphid/src/rocm/02_llvm/llvm-project/llvm/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp:375:1 #18 0x00006375e555d333 llvm::SelectionDAGISelLegacy::runOnMachineFunction(llvm::MachineFunction&) /home/aphid/src/rocm/02_llvm/llvm-project/llvm/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp:346:6 #19 0x00006375e3469830 llvm::MachineFunctionPass::runOnFunction(llvm::Function&) (.part.0) /home/aphid/src/rocm/02_llvm/llvm-project/llvm/lib/CodeGen/MachineFunctionPass.cpp:94:33 #20 0x00006375e3b09818 llvm::FPPassManager::runOnFunction(llvm::Function&) /home/aphid/src/rocm/02_llvm/llvm-project/llvm/lib/IR/LegacyPassManager.cpp:1440:40 #21 0x00006375e301b167 RunPassOnSCC /home/aphid/src/rocm/02_llvm/llvm-project/llvm/lib/Analysis/CallGraphSCCPass.cpp:180:17 #22 0x00006375e301b167 RunAllPassesOnSCC /home/aphid/src/rocm/02_llvm/llvm-project/llvm/lib/Analysis/CallGraphSCCPass.cpp:470:21 #23 0x00006375e301b167 (anonymous namespace)::CGPassManager::runOnModule(llvm::Module&) /home/aphid/src/rocm/02_llvm/llvm-project/llvm/lib/Analysis/CallGraphSCCPass.cpp:535:35 #24 0x00006375e3b0a677 runOnModule /home/aphid/src/rocm/02_llvm/llvm-project/llvm/lib/IR/LegacyPassManager.cpp:1562:7 #25 0x00006375e3b0a677 llvm::legacy::PassManagerImpl::run(llvm::Module&) /home/aphid/src/rocm/02_llvm/llvm-project/llvm/lib/IR/LegacyPassManager.cpp:541:55 #26 0x00006375e44c9232 llvm::TimeTraceScope::~TimeTraceScope() /home/aphid/src/rocm/02_llvm/llvm-project/llvm/include/llvm/Support/TimeProfiler.h:168:37 #27 0x00006375e44c9232 RunCodegenPipeline /home/aphid/src/rocm/02_llvm/llvm-project/clang/lib/CodeGen/BackendUtil.cpp:1158:3 #28 0x00006375e44c9232 EmitAssembly /home/aphid/src/rocm/02_llvm/llvm-project/clang/lib/CodeGen/BackendUtil.cpp:1180:21 #29 0x00006375e44c9232 clang::EmitBackendOutput(clang::DiagnosticsEngine&, clang::HeaderSearchOptions const&, clang::CodeGenOptions const&, clang::TargetOptions const&, clang::LangOptions const&, llvm::StringRef, llvm::Module*, clang::BackendAction, llvm::IntrusiveRefCntPtr, std::unique_ptr>, clang::BackendConsumer*) /home/aphid/src/rocm/02_llvm/llvm-project/clang/lib/CodeGen/BackendUtil.cpp:1341:25 #30 0x00006375e4b6a43d llvm::IntrusiveRefCntPtr::release() /home/aphid/src/rocm/02_llvm/llvm-project/llvm/include/llvm/ADT/IntrusiveRefCntPtr.h:232:9 #31 0x00006375e4b6a43d llvm::IntrusiveRefCntPtr::~IntrusiveRefCntPtr() /home/aphid/src/rocm/02_llvm/llvm-project/llvm/include/llvm/ADT/IntrusiveRefCntPtr.h:196:34 #32 0x00006375e4b6a43d clang::BackendConsumer::HandleTranslationUnit(clang::ASTContext&) /home/aphid/src/rocm/02_llvm/llvm-project/clang/lib/CodeGen/CodeGenAction.cpp:355:20 #33 0x00006375e68b267c clang::ParseAST(clang::Sema&, bool, bool) /home/aphid/src/rocm/02_llvm/llvm-project/clang/lib/Parse/ParseAST.cpp:176:34 #34 0x00006375e4e5a209 clang::FrontendAction::Execute() /home/aphid/src/rocm/02_llvm/llvm-project/clang/lib/Frontend/FrontendAction.cpp:1078:21 #35 0x00006375e4ddb63e llvm::Error::getPtr() const /home/aphid/src/rocm/02_llvm/llvm-project/llvm/include/llvm/Support/Error.h:279:51 #36 0x00006375e4ddb63e llvm::Error::operator bool() /home/aphid/src/rocm/02_llvm/llvm-project/llvm/include/llvm/Support/Error.h:242:22 #37 0x00006375e4ddb63e clang::CompilerInstance::ExecuteAction(clang::FrontendAction&) /home/aphid/src/rocm/02_llvm/llvm-project/clang/lib/Frontend/CompilerInstance.cpp:1061:42 #38 0x00006375e4f3a81f std::__shared_ptr::get() const /usr/include/c++/14.1.1/bits/shared_ptr_base.h:1667:16 #39 0x00006375e4f3a81f std::__shared_ptr_access::_M_get() const /usr/include/c++/14.1.1/bits/shared_ptr_base.h:1364:69 #40 0x00006375e4f3a81f std::__shared_ptr_access::operator*() const /usr/include/c++/14.1.1/bits/shared_ptr_base.h:1350:2 #41 0x00006375e4f3a81f clang::CompilerInvocation::getFrontendOpts() /home/aphid/src/rocm/02_llvm/llvm-project/clang/include/clang/Frontend/CompilerInvocation.h:259:48 #42 0x00006375e4f3a81f clang::CompilerInstance::getFrontendOpts() /home/aphid/src/rocm/02_llvm/llvm-project/clang/include/clang/Frontend/CompilerInstance.h:312:39 #43 0x00006375e4f3a81f clang::ExecuteCompilerInvocation(clang::CompilerInstance*) /home/aphid/src/rocm/02_llvm/llvm-project/clang/lib/FrontendTool/ExecuteCompilerInvocation.cpp:281:29 #44 0x00006375e2429277 cc1_main(llvm::ArrayRef, char const*, void*) /home/aphid/src/rocm/02_llvm/llvm-project/clang/tools/driver/cc1_main.cpp:276:40 #45 0x00006375e24221c0 ExecuteCC1Tool(llvm::SmallVectorImpl&, llvm::ToolContext const&) /home/aphid/src/rocm/02_llvm/llvm-project/clang/tools/driver/driver.cpp:231:20 #46 0x00006375e24248ef clang_main(int, char**, llvm::ToolContext const&) /home/aphid/src/rocm/02_llvm/llvm-project/clang/tools/driver/driver.cpp:272:26 #47 0x00006375e2325814 main /home/aphid/src/rocm/02_llvm/llvm-project/tools/clang/tools/driver/clang-driver.cpp:18:1 #48 0x000070184834ec88 (/usr/lib64/libc.so.6+0x25c88) #49 0x000070184834ed4c __libc_start_main (/usr/lib64/libc.so.6+0x25d4c) #50 0x00006375e24217c5 _start (/opt/rocm/lib/llvm/bin/clang-19+0xe5a7c5) clang: error: unable to execute command: Aborted (core dumped) free(): invalid pointer PLEASE submit a bug report to https://github.com/llvm/llvm-project/issues/ and include the crash backtrace, preprocessed source, and associated run script. Stack dump: 0. Program arguments: /opt/rocm/lib/llvm/bin/clang-19 -cc1 -triple amdgcn-amd-amdhsa -aux-triple x86_64-unknown-linux-gnu -Werror=atomic-alignment -emit-obj -disable-free -clear-ast-before-backend -main-file-name rocsparse_check_matrix_csr_buffer_size.cpp -mrelocation-model pic -pic-level 2 -fhalf-no-semantic-interposition -mframe-pointer=none -fno-rounding-math -mconstructor-aliases -aux-target-cpu x86-64 -fcuda-is-device -mllvm -amdgpu-internalize-symbols -fcuda-allow-variadic-functions -mlink-builtin-bitcode /opt/rocm/amdgcn/bitcode/hip.bc -mlink-builtin-bitcode /opt/rocm/amdgcn/bitcode/ocml.bc -mlink-builtin-bitcode /opt/rocm/amdgcn/bitcode/ockl.bc -mlink-builtin-bitcode /opt/rocm/amdgcn/bitcode/oclc_daz_opt_off.bc -mlink-builtin-bitcode /opt/rocm/amdgcn/bitcode/oclc_unsafe_math_off.bc -mlink-builtin-bitcode /opt/rocm/amdgcn/bitcode/oclc_finite_only_off.bc -mlink-builtin-bitcode /opt/rocm/amdgcn/bitcode/oclc_correctly_rounded_sqrt_on.bc -mlink-builtin-bitcode /opt/rocm/amdgcn/bitcode/oclc_wavefrontsize64_off.bc -mlink-builtin-bitcode /opt/rocm/amdgcn/bitcode/oclc_isa_version_1102.bc -mlink-builtin-bitcode /opt/rocm/amdgcn/bitcode/oclc_abi_version_500.bc -target-cpu gfx1102 -debugger-tuning=gdb -fdebug-compilation-dir=/home/aphid/src/rocm/14_sparse/rocSPARSE -resource-dir /opt/rocm/lib/llvm/lib/clang/19 -dependency-file library/CMakeFiles/rocsparse.dir/src/util/rocsparse_check_matrix_csr_buffer_size.cpp.o.d -MT library/CMakeFiles/rocsparse.dir/src/util/rocsparse_check_matrix_csr_buffer_size.cpp.o -sys-header-deps -internal-isystem /opt/rocm/lib/llvm/lib/clang/19/include/cuda_wrappers -idirafter /opt/rocm/include -include __clang_hip_runtime_wrapper.h -isystem /opt/rocm/include -D USE_PROF_API=1 -D __HIP_PLATFORM_AMD__=1 -D rocsparse_EXPORTS -I /home/aphid/src/rocm/14_sparse/rocSPARSE/library/src/include -I /home/aphid/src/rocm/14_sparse/rocSPARSE/library/include -I /home/aphid/src/rocm/14_sparse/rocSPARSE/include/rocsparse -I /home/aphid/src/rocm/14_sparse/rocSPARSE/include -D NDEBUG -D ROCSPARSE_WITH_ROCBLAS -internal-isystem /usr/lib64/gcc/x86_64-pc-linux-gnu/14.1.1/../../../../include/c++/14.1.1 -internal-isystem /usr/lib64/gcc/x86_64-pc-linux-gnu/14.1.1/../../../../include/c++/14.1.1/x86_64-pc-linux-gnu -internal-isystem /usr/lib64/gcc/x86_64-pc-linux-gnu/14.1.1/../../../../include/c++/14.1.1/backward -internal-isystem /usr/lib64/gcc/x86_64-pc-linux-gnu/14.1.1/../../../../include/c++/14.1.1 -internal-isystem /usr/lib64/gcc/x86_64-pc-linux-gnu/14.1.1/../../../../include/c++/14.1.1/x86_64-pc-linux-gnu -internal-isystem /usr/lib64/gcc/x86_64-pc-linux-gnu/14.1.1/../../../../include/c++/14.1.1/backward -internal-isystem /opt/rocm/lib/llvm/lib/clang/19/include -internal-isystem /usr/local/include -internal-isystem /usr/lib64/gcc/x86_64-pc-linux-gnu/14.1.1/../../../../x86_64-pc-linux-gnu/include -internal-externc-isystem /include -internal-externc-isystem /usr/include -internal-isystem /opt/rocm/lib/llvm/lib/clang/19/include -internal-isystem /usr/local/include -internal-isystem /usr/lib64/gcc/x86_64-pc-linux-gnu/14.1.1/../../../../x86_64-pc-linux-gnu/include -internal-externc-isystem /include -internal-externc-isystem /usr/include -O3 -Wno-unused-command-line-argument -Wall -std=c++14 -fdeprecated-macro -fno-autolink -ferror-limit 19 -fvisibility=hidden -fvisibility-inlines-hidden -fhip-new-launch-api -fcf-protection=none -fgnuc-version=4.2.1 -fskip-odr-check-in-gmf -fcxx-exceptions -fexceptions -vectorize-loops -vectorize-slp -mllvm -amdgpu-early-inline-all=true -mllvm -amdgpu-function-calls=false -cuid=c78cd782fddd420e -fcuda-allow-variadic-functions -faddrsig -D__GCC_HAVE_DWARF2_CFI_ASM=1 -o /tmp/rocsparse_check_matrix_csr_buffer_size-gfx1102-528338.o -x hip /home/aphid/src/rocm/14_sparse/rocSPARSE/library/src/util/rocsparse_check_matrix_csr_buffer_size.cpp 1. parser at end of file 2. Code generation 3. Running pass 'CallGraph Pass Manager' on module '/home/aphid/src/rocm/14_sparse/rocSPARSE/library/src/util/rocsparse_check_matrix_csr_buffer_size.cpp'. 4. Running pass 'AMDGPU DAG->DAG Pattern Instruction Selection' on function '@_ZN7rocprim6detail27segmented_sort_small_kernelINS0_35wrapped_segmented_radix_sort_configINS_14default_configEllEELb0EPlS5_S5_S5_NS_16reverse_iteratorIPjEEPKlEEvT1_PNSt15iterator_traitsISB_E10value_typeET2_T3_PNSC_ISH_E10value_typeET4_bjT5_T6_SN_jj' #0 0x000059251969c56c llvm::sys::PrintStackTrace(llvm::raw_ostream&, int) /home/aphid/src/rocm/02_llvm/llvm-project/llvm/lib/Support/Unix/Signals.inc:723:22 #1 0x00005925196995fb llvm::sys::RunSignalHandlers() /home/aphid/src/rocm/02_llvm/llvm-project/llvm/lib/Support/Signals.cpp:105:20 #2 0x00005925196995fb SignalHandler(int) /home/aphid/src/rocm/02_llvm/llvm-project/llvm/lib/Support/Unix/Signals.inc:403:31 #3 0x00007f35bd738ae0 (/usr/lib64/libc.so.6+0x3cae0) #4 0x00007f35bd790e44 (/usr/lib64/libc.so.6+0x94e44) #5 0x00007f35bd738a30 raise (/usr/lib64/libc.so.6+0x3ca30) #6 0x00007f35bd7204c3 abort (/usr/lib64/libc.so.6+0x244c3) #7 0x00007f35bd721354 (/usr/lib64/libc.so.6+0x25354) #8 0x00007f35bd79b085 (/usr/lib64/libc.so.6+0x9f085) #9 0x00007f35bd79d49c (/usr/lib64/libc.so.6+0xa149c) #10 0x00007f35bd79fdae cfree (/usr/lib64/libc.so.6+0xa3dae) #11 0x0000592517ab1994 llvm::SITargetLowering::requiresUniformRegister(llvm::MachineFunction&, llvm::Value const*) const /home/aphid/src/rocm/02_llvm/llvm-project/llvm/lib/Target/AMDGPU/SIISelLowering.cpp:16680:0 #12 0x000059251a8b6449 llvm::FunctionLoweringInfo::CreateRegs(llvm::Value const*) /home/aphid/src/rocm/02_llvm/llvm-project/llvm/lib/CodeGen/SelectionDAG/FunctionLoweringInfo.cpp:400:60 #13 0x000059251a8b6449 llvm::FunctionLoweringInfo::InitializeRegForValue(llvm::Value const*) /home/aphid/src/rocm/02_llvm/llvm-project/llvm/lib/CodeGen/SelectionDAG/FunctionLoweringInfo.cpp:411:24 #14 0x000059251a8bb54b llvm::FunctionLoweringInfo::set(llvm::Function const&, llvm::MachineFunction&, llvm::SelectionDAG*) /home/aphid/src/rocm/02_llvm/llvm-project/llvm/lib/CodeGen/SelectionDAG/FunctionLoweringInfo.cpp:231:7 #15 0x000059251a9fdbd0 llvm::SelectionDAGISel::runOnMachineFunction(llvm::MachineFunction&) /home/aphid/src/rocm/02_llvm/llvm-project/llvm/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp:598:3 #16 0x000059251a9e7333 llvm::OptLevelChanger::~OptLevelChanger() /home/aphid/src/rocm/02_llvm/llvm-project/llvm/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp:268:11 #17 0x000059251a9e7333 llvm::SelectionDAGISelLegacy::runOnMachineFunction(llvm::MachineFunction&) /home/aphid/src/rocm/02_llvm/llvm-project/llvm/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp:375:1 #18 0x000059251a9e7333 llvm::SelectionDAGISelLegacy::runOnMachineFunction(llvm::MachineFunction&) /home/aphid/src/rocm/02_llvm/llvm-project/llvm/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp:346:6 #19 0x00005925188f3830 llvm::MachineFunctionPass::runOnFunction(llvm::Function&) (.part.0) /home/aphid/src/rocm/02_llvm/llvm-project/llvm/lib/CodeGen/MachineFunctionPass.cpp:94:33 #20 0x0000592518f93818 llvm::FPPassManager::runOnFunction(llvm::Function&) /home/aphid/src/rocm/02_llvm/llvm-project/llvm/lib/IR/LegacyPassManager.cpp:1440:40 #21 0x00005925184a5167 RunPassOnSCC /home/aphid/src/rocm/02_llvm/llvm-project/llvm/lib/Analysis/CallGraphSCCPass.cpp:180:17 #22 0x00005925184a5167 RunAllPassesOnSCC /home/aphid/src/rocm/02_llvm/llvm-project/llvm/lib/Analysis/CallGraphSCCPass.cpp:470:21 #23 0x00005925184a5167 (anonymous namespace)::CGPassManager::runOnModule(llvm::Module&) /home/aphid/src/rocm/02_llvm/llvm-project/llvm/lib/Analysis/CallGraphSCCPass.cpp:535:35 #24 0x0000592518f94677 runOnModule /home/aphid/src/rocm/02_llvm/llvm-project/llvm/lib/IR/LegacyPassManager.cpp:1562:7 #25 0x0000592518f94677 llvm::legacy::PassManagerImpl::run(llvm::Module&) /home/aphid/src/rocm/02_llvm/llvm-project/llvm/lib/IR/LegacyPassManager.cpp:541:55 #26 0x0000592519953232 llvm::TimeTraceScope::~TimeTraceScope() /home/aphid/src/rocm/02_llvm/llvm-project/llvm/include/llvm/Support/TimeProfiler.h:168:37 #27 0x0000592519953232 RunCodegenPipeline /home/aphid/src/rocm/02_llvm/llvm-project/clang/lib/CodeGen/BackendUtil.cpp:1158:3 #28 0x0000592519953232 EmitAssembly /home/aphid/src/rocm/02_llvm/llvm-project/clang/lib/CodeGen/BackendUtil.cpp:1180:21 #29 0x0000592519953232 clang::EmitBackendOutput(clang::DiagnosticsEngine&, clang::HeaderSearchOptions const&, clang::CodeGenOptions const&, clang::TargetOptions const&, clang::LangOptions const&, llvm::StringRef, llvm::Module*, clang::BackendAction, llvm::IntrusiveRefCntPtr, std::unique_ptr>, clang::BackendConsumer*) /home/aphid/src/rocm/02_llvm/llvm-project/clang/lib/CodeGen/BackendUtil.cpp:1341:25 #30 0x0000592519ff443d llvm::IntrusiveRefCntPtr::release() /home/aphid/src/rocm/02_llvm/llvm-project/llvm/include/llvm/ADT/IntrusiveRefCntPtr.h:232:9 #31 0x0000592519ff443d llvm::IntrusiveRefCntPtr::~IntrusiveRefCntPtr() /home/aphid/src/rocm/02_llvm/llvm-project/llvm/include/llvm/ADT/IntrusiveRefCntPtr.h:196:34 #32 0x0000592519ff443d clang::BackendConsumer::HandleTranslationUnit(clang::ASTContext&) /home/aphid/src/rocm/02_llvm/llvm-project/clang/lib/CodeGen/CodeGenAction.cpp:355:20 #33 0x000059251bd3c67c clang::ParseAST(clang::Sema&, bool, bool) /home/aphid/src/rocm/02_llvm/llvm-project/clang/lib/Parse/ParseAST.cpp:176:34 #34 0x000059251a2e4209 clang::FrontendAction::Execute() /home/aphid/src/rocm/02_llvm/llvm-project/clang/lib/Frontend/FrontendAction.cpp:1078:21 #35 0x000059251a26563e llvm::Error::getPtr() const /home/aphid/src/rocm/02_llvm/llvm-project/llvm/include/llvm/Support/Error.h:279:51 #36 0x000059251a26563e llvm::Error::operator bool() /home/aphid/src/rocm/02_llvm/llvm-project/llvm/include/llvm/Support/Error.h:242:22 #37 0x000059251a26563e clang::CompilerInstance::ExecuteAction(clang::FrontendAction&) /home/aphid/src/rocm/02_llvm/llvm-project/clang/lib/Frontend/CompilerInstance.cpp:1061:42 #38 0x000059251a3c481f std::__shared_ptr::get() const /usr/include/c++/14.1.1/bits/shared_ptr_base.h:1667:16 #39 0x000059251a3c481f std::__shared_ptr_access::_M_get() const /usr/include/c++/14.1.1/bits/shared_ptr_base.h:1364:69 #40 0x000059251a3c481f std::__shared_ptr_access::operator*() const /usr/include/c++/14.1.1/bits/shared_ptr_base.h:1350:2 #41 0x000059251a3c481f clang::CompilerInvocation::getFrontendOpts() /home/aphid/src/rocm/02_llvm/llvm-project/clang/include/clang/Frontend/CompilerInvocation.h:259:48 #42 0x000059251a3c481f clang::CompilerInstance::getFrontendOpts() /home/aphid/src/rocm/02_llvm/llvm-project/clang/include/clang/Frontend/CompilerInstance.h:312:39 #43 0x000059251a3c481f clang::ExecuteCompilerInvocation(clang::CompilerInstance*) /home/aphid/src/rocm/02_llvm/llvm-project/clang/lib/FrontendTool/ExecuteCompilerInvocation.cpp:281:29 #44 0x00005925178b3277 cc1_main(llvm::ArrayRef, char const*, void*) /home/aphid/src/rocm/02_llvm/llvm-project/clang/tools/driver/cc1_main.cpp:276:40 #45 0x00005925178ac1c0 ExecuteCC1Tool(llvm::SmallVectorImpl&, llvm::ToolContext const&) /home/aphid/src/rocm/02_llvm/llvm-project/clang/tools/driver/driver.cpp:231:20 #46 0x00005925178ae8ef clang_main(int, char**, llvm::ToolContext const&) /home/aphid/src/rocm/02_llvm/llvm-project/clang/tools/driver/driver.cpp:272:26 #47 0x00005925177af814 main /home/aphid/src/rocm/02_llvm/llvm-project/tools/clang/tools/driver/clang-driver.cpp:18:1 #48 0x00007f35bd721c88 (/usr/lib64/libc.so.6+0x25c88) #49 0x00007f35bd721d4c __libc_start_main (/usr/lib64/libc.so.6+0x25d4c) #50 0x00005925178ab7c5 _start (/opt/rocm/lib/llvm/bin/clang-19+0xe5a7c5) clang: error: unable to execute command: Aborted (core dumped) clang: error: clang frontend command failed due to signal (use -v to see invocation) clang: error: clang frontend command failed due to signal (use -v to see invocation) clang version 19.0.0git (https://github.com/ROCm/llvm-project ccc83cb2ec5984de27102a8f0ce4f7f356105ed9) Target: x86_64-unknown-linux-gnu Thread model: posix InstalledDir: /opt/rocm/lib/llvm/bin Build config: +assertions clang: note: diagnostic msg: Error generating preprocessed source(s). [3/6] Building CXX object library/CMakeFiles/rocsparse.dir/src/util/rocsparse_check_matrix_gebsr_buffer_size.cpp.o FAILED: library/CMakeFiles/rocsparse.dir/src/util/rocsparse_check_matrix_gebsr_buffer_size.cpp.o /opt/rocm/bin/hipcc -DUSE_PROF_API=1 -D__HIP_PLATFORM_AMD__=1 -Drocsparse_EXPORTS -I/home/aphid/src/rocm/14_sparse/rocSPARSE/library/src/include -I/home/aphid/src/rocm/14_sparse/rocSPARSE/library/include -I/home/aphid/src/rocm/14_sparse/rocSPARSE/include/rocsparse -I/home/aphid/src/rocm/14_sparse/rocSPARSE/include -fcf-protection=none -O3 -DNDEBUG -std=c++14 -fPIC -fvisibility=hidden -fvisibility-inlines-hidden -DROCSPARSE_WITH_ROCBLAS -Wno-unused-command-line-argument -Wall -x hip --offload-arch=gfx803 --offload-arch=gfx900:xnack- --offload-arch=gfx906:xnack- --offload-arch=gfx908:xnack- --offload-arch=gfx90a:xnack- --offload-arch=gfx90a:xnack+ --offload-arch=gfx940 --offload-arch=gfx941 --offload-arch=gfx942 --offload-arch=gfx1030 --offload-arch=gfx1100 --offload-arch=gfx1101 --offload-arch=gfx1102 --offload-arch=gfx1200 --offload-arch=gfx1201 -MD -MT library/CMakeFiles/rocsparse.dir/src/util/rocsparse_check_matrix_gebsr_buffer_size.cpp.o -MF library/CMakeFiles/rocsparse.dir/src/util/rocsparse_check_matrix_gebsr_buffer_size.cpp.o.d -o library/CMakeFiles/rocsparse.dir/src/util/rocsparse_check_matrix_gebsr_buffer_size.cpp.o -c /home/aphid/src/rocm/14_sparse/rocSPARSE/library/src/util/rocsparse_check_matrix_gebsr_buffer_size.cpp free(): invalid pointer PLEASE submit a bug report to https://github.com/llvm/llvm-project/issues/ and include the crash backtrace, preprocessed source, and associated run script. Stack dump: 0. Program arguments: /opt/rocm/lib/llvm/bin/clang-19 -cc1 -triple amdgcn-amd-amdhsa -aux-triple x86_64-unknown-linux-gnu -Werror=atomic-alignment -emit-obj -disable-free -clear-ast-before-backend -main-file-name rocsparse_check_matrix_gebsr_buffer_size.cpp -mrelocation-model pic -pic-level 2 -fhalf-no-semantic-interposition -mframe-pointer=none -fno-rounding-math -mconstructor-aliases -aux-target-cpu x86-64 -fcuda-is-device -mllvm -amdgpu-internalize-symbols -fcuda-allow-variadic-functions -mlink-builtin-bitcode /opt/rocm/amdgcn/bitcode/hip.bc -mlink-builtin-bitcode /opt/rocm/amdgcn/bitcode/ocml.bc -mlink-builtin-bitcode /opt/rocm/amdgcn/bitcode/ockl.bc -mlink-builtin-bitcode /opt/rocm/amdgcn/bitcode/oclc_daz_opt_off.bc -mlink-builtin-bitcode /opt/rocm/amdgcn/bitcode/oclc_unsafe_math_off.bc -mlink-builtin-bitcode /opt/rocm/amdgcn/bitcode/oclc_finite_only_off.bc -mlink-builtin-bitcode /opt/rocm/amdgcn/bitcode/oclc_correctly_rounded_sqrt_on.bc -mlink-builtin-bitcode /opt/rocm/amdgcn/bitcode/oclc_wavefrontsize64_off.bc -mlink-builtin-bitcode /opt/rocm/amdgcn/bitcode/oclc_isa_version_1102.bc -mlink-builtin-bitcode /opt/rocm/amdgcn/bitcode/oclc_abi_version_500.bc -target-cpu gfx1102 -debugger-tuning=gdb -fdebug-compilation-dir=/home/aphid/src/rocm/14_sparse/rocSPARSE -resource-dir /opt/rocm/lib/llvm/lib/clang/19 -dependency-file library/CMakeFiles/rocsparse.dir/src/util/rocsparse_check_matrix_gebsr_buffer_size.cpp.o.d -MT library/CMakeFiles/rocsparse.dir/src/util/rocsparse_check_matrix_gebsr_buffer_size.cpp.o -sys-header-deps -internal-isystem /opt/rocm/lib/llvm/lib/clang/19/include/cuda_wrappers -idirafter /opt/rocm/include -include __clang_hip_runtime_wrapper.h -isystem /opt/rocm/include -D USE_PROF_API=1 -D __HIP_PLATFORM_AMD__=1 -D rocsparse_EXPORTS -I /home/aphid/src/rocm/14_sparse/rocSPARSE/library/src/include -I /home/aphid/src/rocm/14_sparse/rocSPARSE/library/include -I /home/aphid/src/rocm/14_sparse/rocSPARSE/include/rocsparse -I /home/aphid/src/rocm/14_sparse/rocSPARSE/include -D NDEBUG -D ROCSPARSE_WITH_ROCBLAS -internal-isystem /usr/lib64/gcc/x86_64-pc-linux-gnu/14.1.1/../../../../include/c++/14.1.1 -internal-isystem /usr/lib64/gcc/x86_64-pc-linux-gnu/14.1.1/../../../../include/c++/14.1.1/x86_64-pc-linux-gnu -internal-isystem /usr/lib64/gcc/x86_64-pc-linux-gnu/14.1.1/../../../../include/c++/14.1.1/backward -internal-isystem /usr/lib64/gcc/x86_64-pc-linux-gnu/14.1.1/../../../../include/c++/14.1.1 -internal-isystem /usr/lib64/gcc/x86_64-pc-linux-gnu/14.1.1/../../../../include/c++/14.1.1/x86_64-pc-linux-gnu -internal-isystem /usr/lib64/gcc/x86_64-pc-linux-gnu/14.1.1/../../../../include/c++/14.1.1/backward -internal-isystem /opt/rocm/lib/llvm/lib/clang/19/include -internal-isystem /usr/local/include -internal-isystem /usr/lib64/gcc/x86_64-pc-linux-gnu/14.1.1/../../../../x86_64-pc-linux-gnu/include -internal-externc-isystem /include -internal-externc-isystem /usr/include -internal-isystem /opt/rocm/lib/llvm/lib/clang/19/include -internal-isystem /usr/local/include -internal-isystem /usr/lib64/gcc/x86_64-pc-linux-gnu/14.1.1/../../../../x86_64-pc-linux-gnu/include -internal-externc-isystem /include -internal-externc-isystem /usr/include -O3 -Wno-unused-command-line-argument -Wall -std=c++14 -fdeprecated-macro -fno-autolink -ferror-limit 19 -fvisibility=hidden -fvisibility-inlines-hidden -fhip-new-launch-api -fcf-protection=none -fgnuc-version=4.2.1 -fskip-odr-check-in-gmf -fcxx-exceptions -fexceptions -vectorize-loops -vectorize-slp -mllvm -amdgpu-early-inline-all=true -mllvm -amdgpu-function-calls=false -cuid=ed939aca60cbb1c8 -fcuda-allow-variadic-functions -faddrsig -D__GCC_HAVE_DWARF2_CFI_ASM=1 -o /tmp/rocsparse_check_matrix_gebsr_buffer_size-gfx1102-e3d0a6.o -x hip /home/aphid/src/rocm/14_sparse/rocSPARSE/library/src/util/rocsparse_check_matrix_gebsr_buffer_size.cpp 1. parser at end of file 2. Code generation 3. Running pass 'CallGraph Pass Manager' on module '/home/aphid/src/rocm/14_sparse/rocSPARSE/library/src/util/rocsparse_check_matrix_gebsr_buffer_size.cpp'. 4. Running pass 'AMDGPU DAG->DAG Pattern Instruction Selection' on function '@_ZN7rocprim6detail27segmented_sort_small_kernelINS0_35wrapped_segmented_radix_sort_configINS_14default_configEllEELb0EPlS5_S5_S5_NS_16reverse_iteratorIPjEEPKlEEvT1_PNSt15iterator_traitsISB_E10value_typeET2_T3_PNSC_ISH_E10value_typeET4_bjT5_T6_SN_jj' #0 0x000064969693456c llvm::sys::PrintStackTrace(llvm::raw_ostream&, int) /home/aphid/src/rocm/02_llvm/llvm-project/llvm/lib/Support/Unix/Signals.inc:723:22 #1 0x00006496969315fb llvm::sys::RunSignalHandlers() /home/aphid/src/rocm/02_llvm/llvm-project/llvm/lib/Support/Signals.cpp:105:20 #2 0x00006496969315fb SignalHandler(int) /home/aphid/src/rocm/02_llvm/llvm-project/llvm/lib/Support/Unix/Signals.inc:403:31 #3 0x0000741a48765ae0 (/usr/lib64/libc.so.6+0x3cae0) #4 0x0000741a487bde44 (/usr/lib64/libc.so.6+0x94e44) #5 0x0000741a48765a30 raise (/usr/lib64/libc.so.6+0x3ca30) #6 0x0000741a4874d4c3 abort (/usr/lib64/libc.so.6+0x244c3) #7 0x0000741a4874e354 (/usr/lib64/libc.so.6+0x25354) #8 0x0000741a487c8085 (/usr/lib64/libc.so.6+0x9f085) #9 0x0000741a487ca49c (/usr/lib64/libc.so.6+0xa149c) #10 0x0000741a487ccdae cfree (/usr/lib64/libc.so.6+0xa3dae) #11 0x0000649694d49994 llvm::SITargetLowering::requiresUniformRegister(llvm::MachineFunction&, llvm::Value const*) const /home/aphid/src/rocm/02_llvm/llvm-project/llvm/lib/Target/AMDGPU/SIISelLowering.cpp:16680:0 #12 0x0000649697b4e449 llvm::FunctionLoweringInfo::CreateRegs(llvm::Value const*) /home/aphid/src/rocm/02_llvm/llvm-project/llvm/lib/CodeGen/SelectionDAG/FunctionLoweringInfo.cpp:400:60 #13 0x0000649697b4e449 llvm::FunctionLoweringInfo::InitializeRegForValue(llvm::Value const*) /home/aphid/src/rocm/02_llvm/llvm-project/llvm/lib/CodeGen/SelectionDAG/FunctionLoweringInfo.cpp:411:24 #14 0x0000649697b5354b llvm::FunctionLoweringInfo::set(llvm::Function const&, llvm::MachineFunction&, llvm::SelectionDAG*) /home/aphid/src/rocm/02_llvm/llvm-project/llvm/lib/CodeGen/SelectionDAG/FunctionLoweringInfo.cpp:231:7 #15 0x0000649697c95bd0 llvm::SelectionDAGISel::runOnMachineFunction(llvm::MachineFunction&) /home/aphid/src/rocm/02_llvm/llvm-project/llvm/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp:598:3 #16 0x0000649697c7f333 llvm::OptLevelChanger::~OptLevelChanger() /home/aphid/src/rocm/02_llvm/llvm-project/llvm/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp:268:11 #17 0x0000649697c7f333 llvm::SelectionDAGISelLegacy::runOnMachineFunction(llvm::MachineFunction&) /home/aphid/src/rocm/02_llvm/llvm-project/llvm/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp:375:1 #18 0x0000649697c7f333 llvm::SelectionDAGISelLegacy::runOnMachineFunction(llvm::MachineFunction&) /home/aphid/src/rocm/02_llvm/llvm-project/llvm/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp:346:6 #19 0x0000649695b8b830 llvm::MachineFunctionPass::runOnFunction(llvm::Function&) (.part.0) /home/aphid/src/rocm/02_llvm/llvm-project/llvm/lib/CodeGen/MachineFunctionPass.cpp:94:33 #20 0x000064969622b818 llvm::FPPassManager::runOnFunction(llvm::Function&) /home/aphid/src/rocm/02_llvm/llvm-project/llvm/lib/IR/LegacyPassManager.cpp:1440:40 #21 0x000064969573d167 RunPassOnSCC /home/aphid/src/rocm/02_llvm/llvm-project/llvm/lib/Analysis/CallGraphSCCPass.cpp:180:17 #22 0x000064969573d167 RunAllPassesOnSCC /home/aphid/src/rocm/02_llvm/llvm-project/llvm/lib/Analysis/CallGraphSCCPass.cpp:470:21 #23 0x000064969573d167 (anonymous namespace)::CGPassManager::runOnModule(llvm::Module&) /home/aphid/src/rocm/02_llvm/llvm-project/llvm/lib/Analysis/CallGraphSCCPass.cpp:535:35 #24 0x000064969622c677 runOnModule /home/aphid/src/rocm/02_llvm/llvm-project/llvm/lib/IR/LegacyPassManager.cpp:1562:7 #25 0x000064969622c677 llvm::legacy::PassManagerImpl::run(llvm::Module&) /home/aphid/src/rocm/02_llvm/llvm-project/llvm/lib/IR/LegacyPassManager.cpp:541:55 #26 0x0000649696beb232 llvm::TimeTraceScope::~TimeTraceScope() /home/aphid/src/rocm/02_llvm/llvm-project/llvm/include/llvm/Support/TimeProfiler.h:168:37 #27 0x0000649696beb232 RunCodegenPipeline /home/aphid/src/rocm/02_llvm/llvm-project/clang/lib/CodeGen/BackendUtil.cpp:1158:3 #28 0x0000649696beb232 EmitAssembly /home/aphid/src/rocm/02_llvm/llvm-project/clang/lib/CodeGen/BackendUtil.cpp:1180:21 #29 0x0000649696beb232 clang::EmitBackendOutput(clang::DiagnosticsEngine&, clang::HeaderSearchOptions const&, clang::CodeGenOptions const&, clang::TargetOptions const&, clang::LangOptions const&, llvm::StringRef, llvm::Module*, clang::BackendAction, llvm::IntrusiveRefCntPtr, std::unique_ptr>, clang::BackendConsumer*) /home/aphid/src/rocm/02_llvm/llvm-project/clang/lib/CodeGen/BackendUtil.cpp:1341:25 #30 0x000064969728c43d llvm::IntrusiveRefCntPtr::release() /home/aphid/src/rocm/02_llvm/llvm-project/llvm/include/llvm/ADT/IntrusiveRefCntPtr.h:232:9 #31 0x000064969728c43d llvm::IntrusiveRefCntPtr::~IntrusiveRefCntPtr() /home/aphid/src/rocm/02_llvm/llvm-project/llvm/include/llvm/ADT/IntrusiveRefCntPtr.h:196:34 #32 0x000064969728c43d clang::BackendConsumer::HandleTranslationUnit(clang::ASTContext&) /home/aphid/src/rocm/02_llvm/llvm-project/clang/lib/CodeGen/CodeGenAction.cpp:355:20 #33 0x0000649698fd467c clang::ParseAST(clang::Sema&, bool, bool) /home/aphid/src/rocm/02_llvm/llvm-project/clang/lib/Parse/ParseAST.cpp:176:34 #34 0x000064969757c209 clang::FrontendAction::Execute() /home/aphid/src/rocm/02_llvm/llvm-project/clang/lib/Frontend/FrontendAction.cpp:1078:21 #35 0x00006496974fd63e llvm::Error::getPtr() const /home/aphid/src/rocm/02_llvm/llvm-project/llvm/include/llvm/Support/Error.h:279:51 #36 0x00006496974fd63e llvm::Error::operator bool() /home/aphid/src/rocm/02_llvm/llvm-project/llvm/include/llvm/Support/Error.h:242:22 #37 0x00006496974fd63e clang::CompilerInstance::ExecuteAction(clang::FrontendAction&) /home/aphid/src/rocm/02_llvm/llvm-project/clang/lib/Frontend/CompilerInstance.cpp:1061:42 #38 0x000064969765c81f std::__shared_ptr::get() const /usr/include/c++/14.1.1/bits/shared_ptr_base.h:1667:16 #39 0x000064969765c81f std::__shared_ptr_access::_M_get() const /usr/include/c++/14.1.1/bits/shared_ptr_base.h:1364:69 #40 0x000064969765c81f std::__shared_ptr_access::operator*() const /usr/include/c++/14.1.1/bits/shared_ptr_base.h:1350:2 #41 0x000064969765c81f clang::CompilerInvocation::getFrontendOpts() /home/aphid/src/rocm/02_llvm/llvm-project/clang/include/clang/Frontend/CompilerInvocation.h:259:48 #42 0x000064969765c81f clang::CompilerInstance::getFrontendOpts() /home/aphid/src/rocm/02_llvm/llvm-project/clang/include/clang/Frontend/CompilerInstance.h:312:39 #43 0x000064969765c81f clang::ExecuteCompilerInvocation(clang::CompilerInstance*) /home/aphid/src/rocm/02_llvm/llvm-project/clang/lib/FrontendTool/ExecuteCompilerInvocation.cpp:281:29 #44 0x0000649694b4b277 cc1_main(llvm::ArrayRef, char const*, void*) /home/aphid/src/rocm/02_llvm/llvm-project/clang/tools/driver/cc1_main.cpp:276:40 #45 0x0000649694b441c0 ExecuteCC1Tool(llvm::SmallVectorImpl&, llvm::ToolContext const&) /home/aphid/src/rocm/02_llvm/llvm-project/clang/tools/driver/driver.cpp:231:20 #46 0x0000649694b468ef clang_main(int, char**, llvm::ToolContext const&) /home/aphid/src/rocm/02_llvm/llvm-project/clang/tools/driver/driver.cpp:272:26 #47 0x0000649694a47814 main /home/aphid/src/rocm/02_llvm/llvm-project/tools/clang/tools/driver/clang-driver.cpp:18:1 #48 0x0000741a4874ec88 (/usr/lib64/libc.so.6+0x25c88) #49 0x0000741a4874ed4c __libc_start_main (/usr/lib64/libc.so.6+0x25d4c) #50 0x0000649694b437c5 _start (/opt/rocm/lib/llvm/bin/clang-19+0xe5a7c5) clang: error: unable to execute command: Aborted (core dumped) free(): invalid pointer PLEASE submit a bug report to https://github.com/llvm/llvm-project/issues/ and include the crash backtrace, preprocessed source, and associated run script. Stack dump: 0. Program arguments: /opt/rocm/lib/llvm/bin/clang-19 -cc1 -triple amdgcn-amd-amdhsa -aux-triple x86_64-unknown-linux-gnu -Werror=atomic-alignment -emit-obj -disable-free -clear-ast-before-backend -main-file-name rocsparse_check_matrix_gebsr_buffer_size.cpp -mrelocation-model pic -pic-level 2 -fhalf-no-semantic-interposition -mframe-pointer=none -fno-rounding-math -mconstructor-aliases -aux-target-cpu x86-64 -fcuda-is-device -mllvm -amdgpu-internalize-symbols -fcuda-allow-variadic-functions -mlink-builtin-bitcode /opt/rocm/amdgcn/bitcode/hip.bc -mlink-builtin-bitcode /opt/rocm/amdgcn/bitcode/ocml.bc -mlink-builtin-bitcode /opt/rocm/amdgcn/bitcode/ockl.bc -mlink-builtin-bitcode /opt/rocm/amdgcn/bitcode/oclc_daz_opt_off.bc -mlink-builtin-bitcode /opt/rocm/amdgcn/bitcode/oclc_unsafe_math_off.bc -mlink-builtin-bitcode /opt/rocm/amdgcn/bitcode/oclc_finite_only_off.bc -mlink-builtin-bitcode /opt/rocm/amdgcn/bitcode/oclc_correctly_rounded_sqrt_on.bc -mlink-builtin-bitcode /opt/rocm/amdgcn/bitcode/oclc_wavefrontsize64_off.bc -mlink-builtin-bitcode /opt/rocm/amdgcn/bitcode/oclc_isa_version_1030.bc -mlink-builtin-bitcode /opt/rocm/amdgcn/bitcode/oclc_abi_version_500.bc -target-cpu gfx1030 -debugger-tuning=gdb -fdebug-compilation-dir=/home/aphid/src/rocm/14_sparse/rocSPARSE -resource-dir /opt/rocm/lib/llvm/lib/clang/19 -dependency-file library/CMakeFiles/rocsparse.dir/src/util/rocsparse_check_matrix_gebsr_buffer_size.cpp.o.d -MT library/CMakeFiles/rocsparse.dir/src/util/rocsparse_check_matrix_gebsr_buffer_size.cpp.o -sys-header-deps -internal-isystem /opt/rocm/lib/llvm/lib/clang/19/include/cuda_wrappers -idirafter /opt/rocm/include -include __clang_hip_runtime_wrapper.h -isystem /opt/rocm/include -D USE_PROF_API=1 -D __HIP_PLATFORM_AMD__=1 -D rocsparse_EXPORTS -I /home/aphid/src/rocm/14_sparse/rocSPARSE/library/src/include -I /home/aphid/src/rocm/14_sparse/rocSPARSE/library/include -I /home/aphid/src/rocm/14_sparse/rocSPARSE/include/rocsparse -I /home/aphid/src/rocm/14_sparse/rocSPARSE/include -D NDEBUG -D ROCSPARSE_WITH_ROCBLAS -internal-isystem /usr/lib64/gcc/x86_64-pc-linux-gnu/14.1.1/../../../../include/c++/14.1.1 -internal-isystem /usr/lib64/gcc/x86_64-pc-linux-gnu/14.1.1/../../../../include/c++/14.1.1/x86_64-pc-linux-gnu -internal-isystem /usr/lib64/gcc/x86_64-pc-linux-gnu/14.1.1/../../../../include/c++/14.1.1/backward -internal-isystem /usr/lib64/gcc/x86_64-pc-linux-gnu/14.1.1/../../../../include/c++/14.1.1 -internal-isystem /usr/lib64/gcc/x86_64-pc-linux-gnu/14.1.1/../../../../include/c++/14.1.1/x86_64-pc-linux-gnu -internal-isystem /usr/lib64/gcc/x86_64-pc-linux-gnu/14.1.1/../../../../include/c++/14.1.1/backward -internal-isystem /opt/rocm/lib/llvm/lib/clang/19/include -internal-isystem /usr/local/include -internal-isystem /usr/lib64/gcc/x86_64-pc-linux-gnu/14.1.1/../../../../x86_64-pc-linux-gnu/include -internal-externc-isystem /include -internal-externc-isystem /usr/include -internal-isystem /opt/rocm/lib/llvm/lib/clang/19/include -internal-isystem /usr/local/include -internal-isystem /usr/lib64/gcc/x86_64-pc-linux-gnu/14.1.1/../../../../x86_64-pc-linux-gnu/include -internal-externc-isystem /include -internal-externc-isystem /usr/include -O3 -Wno-unused-command-line-argument -Wall -std=c++14 -fdeprecated-macro -fno-autolink -ferror-limit 19 -fvisibility=hidden -fvisibility-inlines-hidden -fhip-new-launch-api -fcf-protection=none -fgnuc-version=4.2.1 -fskip-odr-check-in-gmf -fcxx-exceptions -fexceptions -vectorize-loops -vectorize-slp -mllvm -amdgpu-early-inline-all=true -mllvm -amdgpu-function-calls=false -cuid=ed939aca60cbb1c8 -fcuda-allow-variadic-functions -faddrsig -D__GCC_HAVE_DWARF2_CFI_ASM=1 -o /tmp/rocsparse_check_matrix_gebsr_buffer_size-gfx1030-ed59d8.o -x hip /home/aphid/src/rocm/14_sparse/rocSPARSE/library/src/util/rocsparse_check_matrix_gebsr_buffer_size.cpp 1. parser at end of file 2. Code generation 3. Running pass 'CallGraph Pass Manager' on module '/home/aphid/src/rocm/14_sparse/rocSPARSE/library/src/util/rocsparse_check_matrix_gebsr_buffer_size.cpp'. 4. Running pass 'AMDGPU DAG->DAG Pattern Instruction Selection' on function '@_ZN7rocprim6detail21segmented_sort_kernelINS0_35wrapped_segmented_radix_sort_configINS_14default_configEllEELb0EPlS5_S5_S5_PKlEEvT1_PNSt15iterator_traitsIS8_E10value_typeET2_T3_PNS9_ISE_E10value_typeET4_bT5_SJ_jjjj' #0 0x000055f328b5056c llvm::sys::PrintStackTrace(llvm::raw_ostream&, int) /home/aphid/src/rocm/02_llvm/llvm-project/llvm/lib/Support/Unix/Signals.inc:723:22 #1 0x000055f328b4d5fb llvm::sys::RunSignalHandlers() /home/aphid/src/rocm/02_llvm/llvm-project/llvm/lib/Support/Signals.cpp:105:20 #2 0x000055f328b4d5fb SignalHandler(int) /home/aphid/src/rocm/02_llvm/llvm-project/llvm/lib/Support/Unix/Signals.inc:403:31 #3 0x0000706fbd050ae0 (/usr/lib64/libc.so.6+0x3cae0) #4 0x0000706fbd0a8e44 (/usr/lib64/libc.so.6+0x94e44) #5 0x0000706fbd050a30 raise (/usr/lib64/libc.so.6+0x3ca30) #6 0x0000706fbd0384c3 abort (/usr/lib64/libc.so.6+0x244c3) #7 0x0000706fbd039354 (/usr/lib64/libc.so.6+0x25354) #8 0x0000706fbd0b3085 (/usr/lib64/libc.so.6+0x9f085) #9 0x0000706fbd0b549c (/usr/lib64/libc.so.6+0xa149c) #10 0x0000706fbd0b7dae cfree (/usr/lib64/libc.so.6+0xa3dae) #11 0x000055f326f65994 llvm::SITargetLowering::requiresUniformRegister(llvm::MachineFunction&, llvm::Value const*) const /home/aphid/src/rocm/02_llvm/llvm-project/llvm/lib/Target/AMDGPU/SIISelLowering.cpp:16680:0 #12 0x000055f329d6a449 llvm::FunctionLoweringInfo::CreateRegs(llvm::Value const*) /home/aphid/src/rocm/02_llvm/llvm-project/llvm/lib/CodeGen/SelectionDAG/FunctionLoweringInfo.cpp:400:60 #13 0x000055f329d6a449 llvm::FunctionLoweringInfo::InitializeRegForValue(llvm::Value const*) /home/aphid/src/rocm/02_llvm/llvm-project/llvm/lib/CodeGen/SelectionDAG/FunctionLoweringInfo.cpp:411:24 #14 0x000055f329d6f54b llvm::FunctionLoweringInfo::set(llvm::Function const&, llvm::MachineFunction&, llvm::SelectionDAG*) /home/aphid/src/rocm/02_llvm/llvm-project/llvm/lib/CodeGen/SelectionDAG/FunctionLoweringInfo.cpp:231:7 #15 0x000055f329eb1bd0 llvm::SelectionDAGISel::runOnMachineFunction(llvm::MachineFunction&) /home/aphid/src/rocm/02_llvm/llvm-project/llvm/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp:598:3 #16 0x000055f329e9b333 llvm::OptLevelChanger::~OptLevelChanger() /home/aphid/src/rocm/02_llvm/llvm-project/llvm/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp:268:11 #17 0x000055f329e9b333 llvm::SelectionDAGISelLegacy::runOnMachineFunction(llvm::MachineFunction&) /home/aphid/src/rocm/02_llvm/llvm-project/llvm/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp:375:1 #18 0x000055f329e9b333 llvm::SelectionDAGISelLegacy::runOnMachineFunction(llvm::MachineFunction&) /home/aphid/src/rocm/02_llvm/llvm-project/llvm/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp:346:6 #19 0x000055f327da7830 llvm::MachineFunctionPass::runOnFunction(llvm::Function&) (.part.0) /home/aphid/src/rocm/02_llvm/llvm-project/llvm/lib/CodeGen/MachineFunctionPass.cpp:94:33 #20 0x000055f328447818 llvm::FPPassManager::runOnFunction(llvm::Function&) /home/aphid/src/rocm/02_llvm/llvm-project/llvm/lib/IR/LegacyPassManager.cpp:1440:40 #21 0x000055f327959167 RunPassOnSCC /home/aphid/src/rocm/02_llvm/llvm-project/llvm/lib/Analysis/CallGraphSCCPass.cpp:180:17 #22 0x000055f327959167 RunAllPassesOnSCC /home/aphid/src/rocm/02_llvm/llvm-project/llvm/lib/Analysis/CallGraphSCCPass.cpp:470:21 #23 0x000055f327959167 (anonymous namespace)::CGPassManager::runOnModule(llvm::Module&) /home/aphid/src/rocm/02_llvm/llvm-project/llvm/lib/Analysis/CallGraphSCCPass.cpp:535:35 #24 0x000055f328448677 runOnModule /home/aphid/src/rocm/02_llvm/llvm-project/llvm/lib/IR/LegacyPassManager.cpp:1562:7 #25 0x000055f328448677 llvm::legacy::PassManagerImpl::run(llvm::Module&) /home/aphid/src/rocm/02_llvm/llvm-project/llvm/lib/IR/LegacyPassManager.cpp:541:55 #26 0x000055f328e07232 llvm::TimeTraceScope::~TimeTraceScope() /home/aphid/src/rocm/02_llvm/llvm-project/llvm/include/llvm/Support/TimeProfiler.h:168:37 #27 0x000055f328e07232 RunCodegenPipeline /home/aphid/src/rocm/02_llvm/llvm-project/clang/lib/CodeGen/BackendUtil.cpp:1158:3 #28 0x000055f328e07232 EmitAssembly /home/aphid/src/rocm/02_llvm/llvm-project/clang/lib/CodeGen/BackendUtil.cpp:1180:21 #29 0x000055f328e07232 clang::EmitBackendOutput(clang::DiagnosticsEngine&, clang::HeaderSearchOptions const&, clang::CodeGenOptions const&, clang::TargetOptions const&, clang::LangOptions const&, llvm::StringRef, llvm::Module*, clang::BackendAction, llvm::IntrusiveRefCntPtr, std::unique_ptr>, clang::BackendConsumer*) /home/aphid/src/rocm/02_llvm/llvm-project/clang/lib/CodeGen/BackendUtil.cpp:1341:25 #30 0x000055f3294a843d llvm::IntrusiveRefCntPtr::release() /home/aphid/src/rocm/02_llvm/llvm-project/llvm/include/llvm/ADT/IntrusiveRefCntPtr.h:232:9 #31 0x000055f3294a843d llvm::IntrusiveRefCntPtr::~IntrusiveRefCntPtr() /home/aphid/src/rocm/02_llvm/llvm-project/llvm/include/llvm/ADT/IntrusiveRefCntPtr.h:196:34 #32 0x000055f3294a843d clang::BackendConsumer::HandleTranslationUnit(clang::ASTContext&) /home/aphid/src/rocm/02_llvm/llvm-project/clang/lib/CodeGen/CodeGenAction.cpp:355:20 #33 0x000055f32b1f067c clang::ParseAST(clang::Sema&, bool, bool) /home/aphid/src/rocm/02_llvm/llvm-project/clang/lib/Parse/ParseAST.cpp:176:34 #34 0x000055f329798209 clang::FrontendAction::Execute() /home/aphid/src/rocm/02_llvm/llvm-project/clang/lib/Frontend/FrontendAction.cpp:1078:21 #35 0x000055f32971963e llvm::Error::getPtr() const /home/aphid/src/rocm/02_llvm/llvm-project/llvm/include/llvm/Support/Error.h:279:51 #36 0x000055f32971963e llvm::Error::operator bool() /home/aphid/src/rocm/02_llvm/llvm-project/llvm/include/llvm/Support/Error.h:242:22 #37 0x000055f32971963e clang::CompilerInstance::ExecuteAction(clang::FrontendAction&) /home/aphid/src/rocm/02_llvm/llvm-project/clang/lib/Frontend/CompilerInstance.cpp:1061:42 #38 0x000055f32987881f std::__shared_ptr::get() const /usr/include/c++/14.1.1/bits/shared_ptr_base.h:1667:16 #39 0x000055f32987881f std::__shared_ptr_access::_M_get() const /usr/include/c++/14.1.1/bits/shared_ptr_base.h:1364:69 #40 0x000055f32987881f std::__shared_ptr_access::operator*() const /usr/include/c++/14.1.1/bits/shared_ptr_base.h:1350:2 #41 0x000055f32987881f clang::CompilerInvocation::getFrontendOpts() /home/aphid/src/rocm/02_llvm/llvm-project/clang/include/clang/Frontend/CompilerInvocation.h:259:48 #42 0x000055f32987881f clang::CompilerInstance::getFrontendOpts() /home/aphid/src/rocm/02_llvm/llvm-project/clang/include/clang/Frontend/CompilerInstance.h:312:39 #43 0x000055f32987881f clang::ExecuteCompilerInvocation(clang::CompilerInstance*) /home/aphid/src/rocm/02_llvm/llvm-project/clang/lib/FrontendTool/ExecuteCompilerInvocation.cpp:281:29 #44 0x000055f326d67277 cc1_main(llvm::ArrayRef, char const*, void*) /home/aphid/src/rocm/02_llvm/llvm-project/clang/tools/driver/cc1_main.cpp:276:40 #45 0x000055f326d601c0 ExecuteCC1Tool(llvm::SmallVectorImpl&, llvm::ToolContext const&) /home/aphid/src/rocm/02_llvm/llvm-project/clang/tools/driver/driver.cpp:231:20 #46 0x000055f326d628ef clang_main(int, char**, llvm::ToolContext const&) /home/aphid/src/rocm/02_llvm/llvm-project/clang/tools/driver/driver.cpp:272:26 #47 0x000055f326c63814 main /home/aphid/src/rocm/02_llvm/llvm-project/tools/clang/tools/driver/clang-driver.cpp:18:1 #48 0x0000706fbd039c88 (/usr/lib64/libc.so.6+0x25c88) #49 0x0000706fbd039d4c __libc_start_main (/usr/lib64/libc.so.6+0x25d4c) #50 0x000055f326d5f7c5 _start (/opt/rocm/lib/llvm/bin/clang-19+0xe5a7c5) clang: error: unable to execute command: Aborted (core dumped) clang: error: clang frontend command failed due to signal (use -v to see invocation) clang: error: clang frontend command failed due to signal (use -v to see invocation) clang version 19.0.0git (https://github.com/ROCm/llvm-project ccc83cb2ec5984de27102a8f0ce4f7f356105ed9) Target: x86_64-unknown-linux-gnu Thread model: posix InstalledDir: /opt/rocm/lib/llvm/bin Build config: +assertions clang: note: diagnostic msg: Error generating preprocessed source(s). [4/6] Building CXX object library/CMakeFiles/rocsparse.dir/src/conversion/rocsparse_coosort.cpp.o FAILED: library/CMakeFiles/rocsparse.dir/src/conversion/rocsparse_coosort.cpp.o /opt/rocm/bin/hipcc -DUSE_PROF_API=1 -D__HIP_PLATFORM_AMD__=1 -Drocsparse_EXPORTS -I/home/aphid/src/rocm/14_sparse/rocSPARSE/library/src/include -I/home/aphid/src/rocm/14_sparse/rocSPARSE/library/include -I/home/aphid/src/rocm/14_sparse/rocSPARSE/include/rocsparse -I/home/aphid/src/rocm/14_sparse/rocSPARSE/include -fcf-protection=none -O3 -DNDEBUG -std=c++14 -fPIC -fvisibility=hidden -fvisibility-inlines-hidden -DROCSPARSE_WITH_ROCBLAS -Wno-unused-command-line-argument -Wall -x hip --offload-arch=gfx803 --offload-arch=gfx900:xnack- --offload-arch=gfx906:xnack- --offload-arch=gfx908:xnack- --offload-arch=gfx90a:xnack- --offload-arch=gfx90a:xnack+ --offload-arch=gfx940 --offload-arch=gfx941 --offload-arch=gfx942 --offload-arch=gfx1030 --offload-arch=gfx1100 --offload-arch=gfx1101 --offload-arch=gfx1102 --offload-arch=gfx1200 --offload-arch=gfx1201 -MD -MT library/CMakeFiles/rocsparse.dir/src/conversion/rocsparse_coosort.cpp.o -MF library/CMakeFiles/rocsparse.dir/src/conversion/rocsparse_coosort.cpp.o.d -o library/CMakeFiles/rocsparse.dir/src/conversion/rocsparse_coosort.cpp.o -c /home/aphid/src/rocm/14_sparse/rocSPARSE/library/src/conversion/rocsparse_coosort.cpp PLEASE submit a bug report to https://github.com/llvm/llvm-project/issues/ and include the crash backtrace, preprocessed source, and associated run script. Stack dump: 0. Program arguments: /opt/rocm/lib/llvm/bin/clang-19 -cc1 -triple amdgcn-amd-amdhsa -aux-triple x86_64-unknown-linux-gnu -Werror=atomic-alignment -emit-obj -disable-free -clear-ast-before-backend -main-file-name rocsparse_coosort.cpp -mrelocation-model pic -pic-level 2 -fhalf-no-semantic-interposition -mframe-pointer=none -fno-rounding-math -mconstructor-aliases -aux-target-cpu x86-64 -fcuda-is-device -mllvm -amdgpu-internalize-symbols -fcuda-allow-variadic-functions -mlink-builtin-bitcode /opt/rocm/amdgcn/bitcode/hip.bc -mlink-builtin-bitcode /opt/rocm/amdgcn/bitcode/ocml.bc -mlink-builtin-bitcode /opt/rocm/amdgcn/bitcode/ockl.bc -mlink-builtin-bitcode /opt/rocm/amdgcn/bitcode/oclc_daz_opt_off.bc -mlink-builtin-bitcode /opt/rocm/amdgcn/bitcode/oclc_unsafe_math_off.bc -mlink-builtin-bitcode /opt/rocm/amdgcn/bitcode/oclc_finite_only_off.bc -mlink-builtin-bitcode /opt/rocm/amdgcn/bitcode/oclc_correctly_rounded_sqrt_on.bc -mlink-builtin-bitcode /opt/rocm/amdgcn/bitcode/oclc_wavefrontsize64_off.bc -mlink-builtin-bitcode /opt/rocm/amdgcn/bitcode/oclc_isa_version_1102.bc -mlink-builtin-bitcode /opt/rocm/amdgcn/bitcode/oclc_abi_version_500.bc -target-cpu gfx1102 -debugger-tuning=gdb -fdebug-compilation-dir=/home/aphid/src/rocm/14_sparse/rocSPARSE -resource-dir /opt/rocm/lib/llvm/lib/clang/19 -dependency-file library/CMakeFiles/rocsparse.dir/src/conversion/rocsparse_coosort.cpp.o.d -MT library/CMakeFiles/rocsparse.dir/src/conversion/rocsparse_coosort.cpp.o -sys-header-deps -internal-isystem /opt/rocm/lib/llvm/lib/clang/19/include/cuda_wrappers -idirafter /opt/rocm/include -include __clang_hip_runtime_wrapper.h -isystem /opt/rocm/include -D USE_PROF_API=1 -D __HIP_PLATFORM_AMD__=1 -D rocsparse_EXPORTS -I /home/aphid/src/rocm/14_sparse/rocSPARSE/library/src/include -I /home/aphid/src/rocm/14_sparse/rocSPARSE/library/include -I /home/aphid/src/rocm/14_sparse/rocSPARSE/include/rocsparse -I /home/aphid/src/rocm/14_sparse/rocSPARSE/include -D NDEBUG -D ROCSPARSE_WITH_ROCBLAS -internal-isystem /usr/lib64/gcc/x86_64-pc-linux-gnu/14.1.1/../../../../include/c++/14.1.1 -internal-isystem /usr/lib64/gcc/x86_64-pc-linux-gnu/14.1.1/../../../../include/c++/14.1.1/x86_64-pc-linux-gnu -internal-isystem /usr/lib64/gcc/x86_64-pc-linux-gnu/14.1.1/../../../../include/c++/14.1.1/backward -internal-isystem /usr/lib64/gcc/x86_64-pc-linux-gnu/14.1.1/../../../../include/c++/14.1.1 -internal-isystem /usr/lib64/gcc/x86_64-pc-linux-gnu/14.1.1/../../../../include/c++/14.1.1/x86_64-pc-linux-gnu -internal-isystem /usr/lib64/gcc/x86_64-pc-linux-gnu/14.1.1/../../../../include/c++/14.1.1/backward -internal-isystem /opt/rocm/lib/llvm/lib/clang/19/include -internal-isystem /usr/local/include -internal-isystem /usr/lib64/gcc/x86_64-pc-linux-gnu/14.1.1/../../../../x86_64-pc-linux-gnu/include -internal-externc-isystem /include -internal-externc-isystem /usr/include -internal-isystem /opt/rocm/lib/llvm/lib/clang/19/include -internal-isystem /usr/local/include -internal-isystem /usr/lib64/gcc/x86_64-pc-linux-gnu/14.1.1/../../../../x86_64-pc-linux-gnu/include -internal-externc-isystem /include -internal-externc-isystem /usr/include -O3 -Wno-unused-command-line-argument -Wall -std=c++14 -fdeprecated-macro -fno-autolink -ferror-limit 19 -fvisibility=hidden -fvisibility-inlines-hidden -fhip-new-launch-api -fcf-protection=none -fgnuc-version=4.2.1 -fskip-odr-check-in-gmf -fcxx-exceptions -fexceptions -vectorize-loops -vectorize-slp -mllvm -amdgpu-early-inline-all=true -mllvm -amdgpu-function-calls=false -cuid=8d95fecd3e8cb37 -fcuda-allow-variadic-functions -faddrsig -D__GCC_HAVE_DWARF2_CFI_ASM=1 -o /tmp/rocsparse_coosort-gfx1102-53521e.o -x hip /home/aphid/src/rocm/14_sparse/rocSPARSE/library/src/conversion/rocsparse_coosort.cpp 1. parser at end of file 2. Code generation 3. Running pass 'CallGraph Pass Manager' on module '/home/aphid/src/rocm/14_sparse/rocSPARSE/library/src/conversion/rocsparse_coosort.cpp'. 4. Running pass 'AMDGPU DAG->DAG Pattern Instruction Selection' on function '@_ZN7rocprim6detail28segmented_sort_medium_kernelINS0_35wrapped_segmented_radix_sort_configINS_27segmented_radix_sort_configILj7ELj4ENS_13kernel_configILj256ELj16ELj4294967295EEENS_14WarpSortConfigILj8ELj8ELj256ELj5ELj16ELj16ELj256EEELb1EEEllEELb0EPlSA_SA_SA_PjSA_EEvT1_PNSt15iterator_traitsISC_E10value_typeET2_T3_PNSD_ISI_E10value_typeET4_bjT5_T6_SO_jj' #0 0x00005de03ae8e56c llvm::sys::PrintStackTrace(llvm::raw_ostream&, int) /home/aphid/src/rocm/02_llvm/llvm-project/llvm/lib/Support/Unix/Signals.inc:723:22 #1 0x00005de03ae8b5fb llvm::sys::RunSignalHandlers() /home/aphid/src/rocm/02_llvm/llvm-project/llvm/lib/Support/Signals.cpp:105:20 #2 0x00005de03ae8b5fb SignalHandler(int) /home/aphid/src/rocm/02_llvm/llvm-project/llvm/lib/Support/Unix/Signals.inc:403:31 #3 0x00007feceb365ae0 (/usr/lib64/libc.so.6+0x3cae0) #4 0x00007feceb3ccd55 cfree (/usr/lib64/libc.so.6+0xa3d55) #5 0x00005de0392a3994 llvm::SITargetLowering::requiresUniformRegister(llvm::MachineFunction&, llvm::Value const*) const /home/aphid/src/rocm/02_llvm/llvm-project/llvm/lib/Target/AMDGPU/SIISelLowering.cpp:16680:0 #6 0x00005de03c0a8449 llvm::FunctionLoweringInfo::CreateRegs(llvm::Value const*) /home/aphid/src/rocm/02_llvm/llvm-project/llvm/lib/CodeGen/SelectionDAG/FunctionLoweringInfo.cpp:400:60 #7 0x00005de03c0a8449 llvm::FunctionLoweringInfo::InitializeRegForValue(llvm::Value const*) /home/aphid/src/rocm/02_llvm/llvm-project/llvm/lib/CodeGen/SelectionDAG/FunctionLoweringInfo.cpp:411:24 #8 0x00005de03c0ad54b llvm::FunctionLoweringInfo::set(llvm::Function const&, llvm::MachineFunction&, llvm::SelectionDAG*) /home/aphid/src/rocm/02_llvm/llvm-project/llvm/lib/CodeGen/SelectionDAG/FunctionLoweringInfo.cpp:231:7 #9 0x00005de03c1efbd0 llvm::SelectionDAGISel::runOnMachineFunction(llvm::MachineFunction&) /home/aphid/src/rocm/02_llvm/llvm-project/llvm/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp:598:3 #10 0x00005de03c1d9333 llvm::OptLevelChanger::~OptLevelChanger() /home/aphid/src/rocm/02_llvm/llvm-project/llvm/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp:268:11 #11 0x00005de03c1d9333 llvm::SelectionDAGISelLegacy::runOnMachineFunction(llvm::MachineFunction&) /home/aphid/src/rocm/02_llvm/llvm-project/llvm/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp:375:1 #12 0x00005de03c1d9333 llvm::SelectionDAGISelLegacy::runOnMachineFunction(llvm::MachineFunction&) /home/aphid/src/rocm/02_llvm/llvm-project/llvm/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp:346:6 #13 0x00005de03a0e5830 llvm::MachineFunctionPass::runOnFunction(llvm::Function&) (.part.0) /home/aphid/src/rocm/02_llvm/llvm-project/llvm/lib/CodeGen/MachineFunctionPass.cpp:94:33 #14 0x00005de03a785818 llvm::FPPassManager::runOnFunction(llvm::Function&) /home/aphid/src/rocm/02_llvm/llvm-project/llvm/lib/IR/LegacyPassManager.cpp:1440:40 #15 0x00005de039c97167 RunPassOnSCC /home/aphid/src/rocm/02_llvm/llvm-project/llvm/lib/Analysis/CallGraphSCCPass.cpp:180:17 #16 0x00005de039c97167 RunAllPassesOnSCC /home/aphid/src/rocm/02_llvm/llvm-project/llvm/lib/Analysis/CallGraphSCCPass.cpp:470:21 #17 0x00005de039c97167 (anonymous namespace)::CGPassManager::runOnModule(llvm::Module&) /home/aphid/src/rocm/02_llvm/llvm-project/llvm/lib/Analysis/CallGraphSCCPass.cpp:535:35 #18 0x00005de03a786677 runOnModule /home/aphid/src/rocm/02_llvm/llvm-project/llvm/lib/IR/LegacyPassManager.cpp:1562:7 #19 0x00005de03a786677 llvm::legacy::PassManagerImpl::run(llvm::Module&) /home/aphid/src/rocm/02_llvm/llvm-project/llvm/lib/IR/LegacyPassManager.cpp:541:55 #20 0x00005de03b145232 llvm::TimeTraceScope::~TimeTraceScope() /home/aphid/src/rocm/02_llvm/llvm-project/llvm/include/llvm/Support/TimeProfiler.h:168:37 #21 0x00005de03b145232 RunCodegenPipeline /home/aphid/src/rocm/02_llvm/llvm-project/clang/lib/CodeGen/BackendUtil.cpp:1158:3 #22 0x00005de03b145232 EmitAssembly /home/aphid/src/rocm/02_llvm/llvm-project/clang/lib/CodeGen/BackendUtil.cpp:1180:21 #23 0x00005de03b145232 clang::EmitBackendOutput(clang::DiagnosticsEngine&, clang::HeaderSearchOptions const&, clang::CodeGenOptions const&, clang::TargetOptions const&, clang::LangOptions const&, llvm::StringRef, llvm::Module*, clang::BackendAction, llvm::IntrusiveRefCntPtr, std::unique_ptr>, clang::BackendConsumer*) /home/aphid/src/rocm/02_llvm/llvm-project/clang/lib/CodeGen/BackendUtil.cpp:1341:25 #24 0x00005de03b7e643d llvm::IntrusiveRefCntPtr::release() /home/aphid/src/rocm/02_llvm/llvm-project/llvm/include/llvm/ADT/IntrusiveRefCntPtr.h:232:9 #25 0x00005de03b7e643d llvm::IntrusiveRefCntPtr::~IntrusiveRefCntPtr() /home/aphid/src/rocm/02_llvm/llvm-project/llvm/include/llvm/ADT/IntrusiveRefCntPtr.h:196:34 #26 0x00005de03b7e643d clang::BackendConsumer::HandleTranslationUnit(clang::ASTContext&) /home/aphid/src/rocm/02_llvm/llvm-project/clang/lib/CodeGen/CodeGenAction.cpp:355:20 #27 0x00005de03d52e67c clang::ParseAST(clang::Sema&, bool, bool) /home/aphid/src/rocm/02_llvm/llvm-project/clang/lib/Parse/ParseAST.cpp:176:34 #28 0x00005de03bad6209 clang::FrontendAction::Execute() /home/aphid/src/rocm/02_llvm/llvm-project/clang/lib/Frontend/FrontendAction.cpp:1078:21 #29 0x00005de03ba5763e llvm::Error::getPtr() const /home/aphid/src/rocm/02_llvm/llvm-project/llvm/include/llvm/Support/Error.h:279:51 #30 0x00005de03ba5763e llvm::Error::operator bool() /home/aphid/src/rocm/02_llvm/llvm-project/llvm/include/llvm/Support/Error.h:242:22 #31 0x00005de03ba5763e clang::CompilerInstance::ExecuteAction(clang::FrontendAction&) /home/aphid/src/rocm/02_llvm/llvm-project/clang/lib/Frontend/CompilerInstance.cpp:1061:42 #32 0x00005de03bbb681f std::__shared_ptr::get() const /usr/include/c++/14.1.1/bits/shared_ptr_base.h:1667:16 #33 0x00005de03bbb681f std::__shared_ptr_access::_M_get() const /usr/include/c++/14.1.1/bits/shared_ptr_base.h:1364:69 #34 0x00005de03bbb681f std::__shared_ptr_access::operator*() const /usr/include/c++/14.1.1/bits/shared_ptr_base.h:1350:2 #35 0x00005de03bbb681f clang::CompilerInvocation::getFrontendOpts() /home/aphid/src/rocm/02_llvm/llvm-project/clang/include/clang/Frontend/CompilerInvocation.h:259:48 #36 0x00005de03bbb681f clang::CompilerInstance::getFrontendOpts() /home/aphid/src/rocm/02_llvm/llvm-project/clang/include/clang/Frontend/CompilerInstance.h:312:39 #37 0x00005de03bbb681f clang::ExecuteCompilerInvocation(clang::CompilerInstance*) /home/aphid/src/rocm/02_llvm/llvm-project/clang/lib/FrontendTool/ExecuteCompilerInvocation.cpp:281:29 #38 0x00005de0390a5277 cc1_main(llvm::ArrayRef, char const*, void*) /home/aphid/src/rocm/02_llvm/llvm-project/clang/tools/driver/cc1_main.cpp:276:40 #39 0x00005de03909e1c0 ExecuteCC1Tool(llvm::SmallVectorImpl&, llvm::ToolContext const&) /home/aphid/src/rocm/02_llvm/llvm-project/clang/tools/driver/driver.cpp:231:20 #40 0x00005de0390a08ef clang_main(int, char**, llvm::ToolContext const&) /home/aphid/src/rocm/02_llvm/llvm-project/clang/tools/driver/driver.cpp:272:26 #41 0x00005de038fa1814 main /home/aphid/src/rocm/02_llvm/llvm-project/tools/clang/tools/driver/clang-driver.cpp:18:1 #42 0x00007feceb34ec88 (/usr/lib64/libc.so.6+0x25c88) #43 0x00007feceb34ed4c __libc_start_main (/usr/lib64/libc.so.6+0x25d4c) #44 0x00005de03909d7c5 _start (/opt/rocm/lib/llvm/bin/clang-19+0xe5a7c5) PLEASE submit a bug report to https://github.com/llvm/llvm-project/issues/ and include the crash backtrace, preprocessed source, and associated run script. Stack dump: 0. Program arguments: /opt/rocm/lib/llvm/bin/clang-19 -cc1 -triple amdgcn-amd-amdhsa -aux-triple x86_64-unknown-linux-gnu -Werror=atomic-alignment -emit-obj -disable-free -clear-ast-before-backend -main-file-name rocsparse_coosort.cpp -mrelocation-model pic -pic-level 2 -fhalf-no-semantic-interposition -mframe-pointer=none -fno-rounding-math -mconstructor-aliases -aux-target-cpu x86-64 -fcuda-is-device -mllvm -amdgpu-internalize-symbols -fcuda-allow-variadic-functions -mlink-builtin-bitcode /opt/rocm/amdgcn/bitcode/hip.bc -mlink-builtin-bitcode /opt/rocm/amdgcn/bitcode/ocml.bc -mlink-builtin-bitcode /opt/rocm/amdgcn/bitcode/ockl.bc -mlink-builtin-bitcode /opt/rocm/amdgcn/bitcode/oclc_daz_opt_off.bc -mlink-builtin-bitcode /opt/rocm/amdgcn/bitcode/oclc_unsafe_math_off.bc -mlink-builtin-bitcode /opt/rocm/amdgcn/bitcode/oclc_finite_only_off.bc -mlink-builtin-bitcode /opt/rocm/amdgcn/bitcode/oclc_correctly_rounded_sqrt_on.bc -mlink-builtin-bitcode /opt/rocm/amdgcn/bitcode/oclc_wavefrontsize64_off.bc -mlink-builtin-bitcode /opt/rocm/amdgcn/bitcode/oclc_isa_version_1101.bc -mlink-builtin-bitcode /opt/rocm/amdgcn/bitcode/oclc_abi_version_500.bc -target-cpu gfx1101 -debugger-tuning=gdb -fdebug-compilation-dir=/home/aphid/src/rocm/14_sparse/rocSPARSE -resource-dir /opt/rocm/lib/llvm/lib/clang/19 -dependency-file library/CMakeFiles/rocsparse.dir/src/conversion/rocsparse_coosort.cpp.o.d -MT library/CMakeFiles/rocsparse.dir/src/conversion/rocsparse_coosort.cpp.o -sys-header-deps -internal-isystem /opt/rocm/lib/llvm/lib/clang/19/include/cuda_wrappers -idirafter /opt/rocm/include -include __clang_hip_runtime_wrapper.h -isystem /opt/rocm/include -D USE_PROF_API=1 -D __HIP_PLATFORM_AMD__=1 -D rocsparse_EXPORTS -I /home/aphid/src/rocm/14_sparse/rocSPARSE/library/src/include -I /home/aphid/src/rocm/14_sparse/rocSPARSE/library/include -I /home/aphid/src/rocm/14_sparse/rocSPARSE/include/rocsparse -I /home/aphid/src/rocm/14_sparse/rocSPARSE/include -D NDEBUG -D ROCSPARSE_WITH_ROCBLAS -internal-isystem /usr/lib64/gcc/x86_64-pc-linux-gnu/14.1.1/../../../../include/c++/14.1.1 -internal-isystem /usr/lib64/gcc/x86_64-pc-linux-gnu/14.1.1/../../../../include/c++/14.1.1/x86_64-pc-linux-gnu -internal-isystem /usr/lib64/gcc/x86_64-pc-linux-gnu/14.1.1/../../../../include/c++/14.1.1/backward -internal-isystem /usr/lib64/gcc/x86_64-pc-linux-gnu/14.1.1/../../../../include/c++/14.1.1 -internal-isystem /usr/lib64/gcc/x86_64-pc-linux-gnu/14.1.1/../../../../include/c++/14.1.1/x86_64-pc-linux-gnu -internal-isystem /usr/lib64/gcc/x86_64-pc-linux-gnu/14.1.1/../../../../include/c++/14.1.1/backward -internal-isystem /opt/rocm/lib/llvm/lib/clang/19/include -internal-isystem /usr/local/include -internal-isystem /usr/lib64/gcc/x86_64-pc-linux-gnu/14.1.1/../../../../x86_64-pc-linux-gnu/include -internal-externc-isystem /include -internal-externc-isystem /usr/include -internal-isystem /opt/rocm/lib/llvm/lib/clang/19/include -internal-isystem /usr/local/include -internal-isystem /usr/lib64/gcc/x86_64-pc-linux-gnu/14.1.1/../../../../x86_64-pc-linux-gnu/include -internal-externc-isystem /include -internal-externc-isystem /usr/include -O3 -Wno-unused-command-line-argument -Wall -std=c++14 -fdeprecated-macro -fno-autolink -ferror-limit 19 -fvisibility=hidden -fvisibility-inlines-hidden -fhip-new-launch-api -fcf-protection=none -fgnuc-version=4.2.1 -fskip-odr-check-in-gmf -fcxx-exceptions -fexceptions -vectorize-loops -vectorize-slp -mllvm -amdgpu-early-inline-all=true -mllvm -amdgpu-function-calls=false -cuid=8d95fecd3e8cb37 -fcuda-allow-variadic-functions -faddrsig -D__GCC_HAVE_DWARF2_CFI_ASM=1 -o /tmp/rocsparse_coosort-gfx1101-8bd4ba.o -x hip /home/aphid/src/rocm/14_sparse/rocSPARSE/library/src/conversion/rocsparse_coosort.cpp 1. parser at end of file 2. Code generation 3. Running pass 'CallGraph Pass Manager' on module '/home/aphid/src/rocm/14_sparse/rocSPARSE/library/src/conversion/rocsparse_coosort.cpp'. 4. Running pass 'AMDGPU DAG->DAG Pattern Instruction Selection' on function '@_ZN7rocprim6detail28segmented_sort_medium_kernelINS0_35wrapped_segmented_radix_sort_configINS_27segmented_radix_sort_configILj7ELj4ENS_13kernel_configILj256ELj16ELj4294967295EEENS_14WarpSortConfigILj8ELj8ELj256ELj5ELj16ELj16ELj256EEELb1EEEllEELb0EPlSA_SA_SA_PjSA_EEvT1_PNSt15iterator_traitsISC_E10value_typeET2_T3_PNSD_ISI_E10value_typeET4_bjT5_T6_SO_jj' #0 0x0000633ec64d056c llvm::sys::PrintStackTrace(llvm::raw_ostream&, int) /home/aphid/src/rocm/02_llvm/llvm-project/llvm/lib/Support/Unix/Signals.inc:723:22 #1 0x0000633ec64cd5fb llvm::sys::RunSignalHandlers() /home/aphid/src/rocm/02_llvm/llvm-project/llvm/lib/Support/Signals.cpp:105:20 #2 0x0000633ec64cd5fb SignalHandler(int) /home/aphid/src/rocm/02_llvm/llvm-project/llvm/lib/Support/Unix/Signals.inc:403:31 #3 0x000074360a165ae0 (/usr/lib64/libc.so.6+0x3cae0) #4 0x000074360a1ccd55 cfree (/usr/lib64/libc.so.6+0xa3d55) #5 0x0000633ec48e5994 llvm::SITargetLowering::requiresUniformRegister(llvm::MachineFunction&, llvm::Value const*) const /home/aphid/src/rocm/02_llvm/llvm-project/llvm/lib/Target/AMDGPU/SIISelLowering.cpp:16680:0 #6 0x0000633ec76ea449 llvm::FunctionLoweringInfo::CreateRegs(llvm::Value const*) /home/aphid/src/rocm/02_llvm/llvm-project/llvm/lib/CodeGen/SelectionDAG/FunctionLoweringInfo.cpp:400:60 #7 0x0000633ec76ea449 llvm::FunctionLoweringInfo::InitializeRegForValue(llvm::Value const*) /home/aphid/src/rocm/02_llvm/llvm-project/llvm/lib/CodeGen/SelectionDAG/FunctionLoweringInfo.cpp:411:24 #8 0x0000633ec76ef54b llvm::FunctionLoweringInfo::set(llvm::Function const&, llvm::MachineFunction&, llvm::SelectionDAG*) /home/aphid/src/rocm/02_llvm/llvm-project/llvm/lib/CodeGen/SelectionDAG/FunctionLoweringInfo.cpp:231:7 #9 0x0000633ec7831bd0 llvm::SelectionDAGISel::runOnMachineFunction(llvm::MachineFunction&) /home/aphid/src/rocm/02_llvm/llvm-project/llvm/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp:598:3 #10 0x0000633ec781b333 llvm::OptLevelChanger::~OptLevelChanger() /home/aphid/src/rocm/02_llvm/llvm-project/llvm/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp:268:11 #11 0x0000633ec781b333 llvm::SelectionDAGISelLegacy::runOnMachineFunction(llvm::MachineFunction&) /home/aphid/src/rocm/02_llvm/llvm-project/llvm/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp:375:1 #12 0x0000633ec781b333 llvm::SelectionDAGISelLegacy::runOnMachineFunction(llvm::MachineFunction&) /home/aphid/src/rocm/02_llvm/llvm-project/llvm/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp:346:6 #13 0x0000633ec5727830 llvm::MachineFunctionPass::runOnFunction(llvm::Function&) (.part.0) /home/aphid/src/rocm/02_llvm/llvm-project/llvm/lib/CodeGen/MachineFunctionPass.cpp:94:33 #14 0x0000633ec5dc7818 llvm::FPPassManager::runOnFunction(llvm::Function&) /home/aphid/src/rocm/02_llvm/llvm-project/llvm/lib/IR/LegacyPassManager.cpp:1440:40 #15 0x0000633ec52d9167 RunPassOnSCC /home/aphid/src/rocm/02_llvm/llvm-project/llvm/lib/Analysis/CallGraphSCCPass.cpp:180:17 #16 0x0000633ec52d9167 RunAllPassesOnSCC /home/aphid/src/rocm/02_llvm/llvm-project/llvm/lib/Analysis/CallGraphSCCPass.cpp:470:21 #17 0x0000633ec52d9167 (anonymous namespace)::CGPassManager::runOnModule(llvm::Module&) /home/aphid/src/rocm/02_llvm/llvm-project/llvm/lib/Analysis/CallGraphSCCPass.cpp:535:35 #18 0x0000633ec5dc8677 runOnModule /home/aphid/src/rocm/02_llvm/llvm-project/llvm/lib/IR/LegacyPassManager.cpp:1562:7 #19 0x0000633ec5dc8677 llvm::legacy::PassManagerImpl::run(llvm::Module&) /home/aphid/src/rocm/02_llvm/llvm-project/llvm/lib/IR/LegacyPassManager.cpp:541:55 #20 0x0000633ec6787232 llvm::TimeTraceScope::~TimeTraceScope() /home/aphid/src/rocm/02_llvm/llvm-project/llvm/include/llvm/Support/TimeProfiler.h:168:37 #21 0x0000633ec6787232 RunCodegenPipeline /home/aphid/src/rocm/02_llvm/llvm-project/clang/lib/CodeGen/BackendUtil.cpp:1158:3 #22 0x0000633ec6787232 EmitAssembly /home/aphid/src/rocm/02_llvm/llvm-project/clang/lib/CodeGen/BackendUtil.cpp:1180:21 #23 0x0000633ec6787232 clang::EmitBackendOutput(clang::DiagnosticsEngine&, clang::HeaderSearchOptions const&, clang::CodeGenOptions const&, clang::TargetOptions const&, clang::LangOptions const&, llvm::StringRef, llvm::Module*, clang::BackendAction, llvm::IntrusiveRefCntPtr, std::unique_ptr>, clang::BackendConsumer*) /home/aphid/src/rocm/02_llvm/llvm-project/clang/lib/CodeGen/BackendUtil.cpp:1341:25 #24 0x0000633ec6e2843d llvm::IntrusiveRefCntPtr::release() /home/aphid/src/rocm/02_llvm/llvm-project/llvm/include/llvm/ADT/IntrusiveRefCntPtr.h:232:9 #25 0x0000633ec6e2843d llvm::IntrusiveRefCntPtr::~IntrusiveRefCntPtr() /home/aphid/src/rocm/02_llvm/llvm-project/llvm/include/llvm/ADT/IntrusiveRefCntPtr.h:196:34 #26 0x0000633ec6e2843d clang::BackendConsumer::HandleTranslationUnit(clang::ASTContext&) /home/aphid/src/rocm/02_llvm/llvm-project/clang/lib/CodeGen/CodeGenAction.cpp:355:20 #27 0x0000633ec8b7067c clang::ParseAST(clang::Sema&, bool, bool) /home/aphid/src/rocm/02_llvm/llvm-project/clang/lib/Parse/ParseAST.cpp:176:34 #28 0x0000633ec7118209 clang::FrontendAction::Execute() /home/aphid/src/rocm/02_llvm/llvm-project/clang/lib/Frontend/FrontendAction.cpp:1078:21 #29 0x0000633ec709963e llvm::Error::getPtr() const /home/aphid/src/rocm/02_llvm/llvm-project/llvm/include/llvm/Support/Error.h:279:51 #30 0x0000633ec709963e llvm::Error::operator bool() /home/aphid/src/rocm/02_llvm/llvm-project/llvm/include/llvm/Support/Error.h:242:22 #31 0x0000633ec709963e clang::CompilerInstance::ExecuteAction(clang::FrontendAction&) /home/aphid/src/rocm/02_llvm/llvm-project/clang/lib/Frontend/CompilerInstance.cpp:1061:42 #32 0x0000633ec71f881f std::__shared_ptr::get() const /usr/include/c++/14.1.1/bits/shared_ptr_base.h:1667:16 #33 0x0000633ec71f881f std::__shared_ptr_access::_M_get() const /usr/include/c++/14.1.1/bits/shared_ptr_base.h:1364:69 #34 0x0000633ec71f881f std::__shared_ptr_access::operator*() const /usr/include/c++/14.1.1/bits/shared_ptr_base.h:1350:2 #35 0x0000633ec71f881f clang::CompilerInvocation::getFrontendOpts() /home/aphid/src/rocm/02_llvm/llvm-project/clang/include/clang/Frontend/CompilerInvocation.h:259:48 #36 0x0000633ec71f881f clang::CompilerInstance::getFrontendOpts() /home/aphid/src/rocm/02_llvm/llvm-project/clang/include/clang/Frontend/CompilerInstance.h:312:39 #37 0x0000633ec71f881f clang::ExecuteCompilerInvocation(clang::CompilerInstance*) /home/aphid/src/rocm/02_llvm/llvm-project/clang/lib/FrontendTool/ExecuteCompilerInvocation.cpp:281:29 #38 0x0000633ec46e7277 cc1_main(llvm::ArrayRef, char const*, void*) /home/aphid/src/rocm/02_llvm/llvm-project/clang/tools/driver/cc1_main.cpp:276:40 #39 0x0000633ec46e01c0 ExecuteCC1Tool(llvm::SmallVectorImpl&, llvm::ToolContext const&) /home/aphid/src/rocm/02_llvm/llvm-project/clang/tools/driver/driver.cpp:231:20 #40 0x0000633ec46e28ef clang_main(int, char**, llvm::ToolContext const&) /home/aphid/src/rocm/02_llvm/llvm-project/clang/tools/driver/driver.cpp:272:26 #41 0x0000633ec45e3814 main /home/aphid/src/rocm/02_llvm/llvm-project/tools/clang/tools/driver/clang-driver.cpp:18:1 #42 0x000074360a14ec88 (/usr/lib64/libc.so.6+0x25c88) #43 0x000074360a14ed4c __libc_start_main (/usr/lib64/libc.so.6+0x25d4c) #44 0x0000633ec46df7c5 _start (/opt/rocm/lib/llvm/bin/clang-19+0xe5a7c5) clang: error: unable to execute command: Segmentation fault (core dumped) PLEASE submit a bug report to https://github.com/llvm/llvm-project/issues/ and include the crash backtrace, preprocessed source, and associated run script. Stack dump: 0. Program arguments: /opt/rocm/lib/llvm/bin/clang-19 -cc1 -triple amdgcn-amd-amdhsa -aux-triple x86_64-unknown-linux-gnu -Werror=atomic-alignment -emit-obj -disable-free -clear-ast-before-backend -main-file-name rocsparse_coosort.cpp -mrelocation-model pic -pic-level 2 -fhalf-no-semantic-interposition -mframe-pointer=none -fno-rounding-math -mconstructor-aliases -aux-target-cpu x86-64 -fcuda-is-device -mllvm -amdgpu-internalize-symbols -fcuda-allow-variadic-functions -mlink-builtin-bitcode /opt/rocm/amdgcn/bitcode/hip.bc -mlink-builtin-bitcode /opt/rocm/amdgcn/bitcode/ocml.bc -mlink-builtin-bitcode /opt/rocm/amdgcn/bitcode/ockl.bc -mlink-builtin-bitcode /opt/rocm/amdgcn/bitcode/oclc_daz_opt_off.bc -mlink-builtin-bitcode /opt/rocm/amdgcn/bitcode/oclc_unsafe_math_off.bc -mlink-builtin-bitcode /opt/rocm/amdgcn/bitcode/oclc_finite_only_off.bc -mlink-builtin-bitcode /opt/rocm/amdgcn/bitcode/oclc_correctly_rounded_sqrt_on.bc -mlink-builtin-bitcode /opt/rocm/amdgcn/bitcode/oclc_wavefrontsize64_off.bc -mlink-builtin-bitcode /opt/rocm/amdgcn/bitcode/oclc_isa_version_1030.bc -mlink-builtin-bitcode /opt/rocm/amdgcn/bitcode/oclc_abi_version_500.bc -target-cpu gfx1030 -debugger-tuning=gdb -fdebug-compilation-dir=/home/aphid/src/rocm/14_sparse/rocSPARSE -resource-dir /opt/rocm/lib/llvm/lib/clang/19 -dependency-file library/CMakeFiles/rocsparse.dir/src/conversion/rocsparse_coosort.cpp.o.d -MT library/CMakeFiles/rocsparse.dir/src/conversion/rocsparse_coosort.cpp.o -sys-header-deps -internal-isystem /opt/rocm/lib/llvm/lib/clang/19/include/cuda_wrappers -idirafter /opt/rocm/include -include __clang_hip_runtime_wrapper.h -isystem /opt/rocm/include -D USE_PROF_API=1 -D __HIP_PLATFORM_AMD__=1 -D rocsparse_EXPORTS -I /home/aphid/src/rocm/14_sparse/rocSPARSE/library/src/include -I /home/aphid/src/rocm/14_sparse/rocSPARSE/library/include -I /home/aphid/src/rocm/14_sparse/rocSPARSE/include/rocsparse -I /home/aphid/src/rocm/14_sparse/rocSPARSE/include -D NDEBUG -D ROCSPARSE_WITH_ROCBLAS -internal-isystem /usr/lib64/gcc/x86_64-pc-linux-gnu/14.1.1/../../../../include/c++/14.1.1 -internal-isystem /usr/lib64/gcc/x86_64-pc-linux-gnu/14.1.1/../../../../include/c++/14.1.1/x86_64-pc-linux-gnu -internal-isystem /usr/lib64/gcc/x86_64-pc-linux-gnu/14.1.1/../../../../include/c++/14.1.1/backward -internal-isystem /usr/lib64/gcc/x86_64-pc-linux-gnu/14.1.1/../../../../include/c++/14.1.1 -internal-isystem /usr/lib64/gcc/x86_64-pc-linux-gnu/14.1.1/../../../../include/c++/14.1.1/x86_64-pc-linux-gnu -internal-isystem /usr/lib64/gcc/x86_64-pc-linux-gnu/14.1.1/../../../../include/c++/14.1.1/backward -internal-isystem /opt/rocm/lib/llvm/lib/clang/19/include -internal-isystem /usr/local/include -internal-isystem /usr/lib64/gcc/x86_64-pc-linux-gnu/14.1.1/../../../../x86_64-pc-linux-gnu/include -internal-externc-isystem /include -internal-externc-isystem /usr/include -internal-isystem /opt/rocm/lib/llvm/lib/clang/19/include -internal-isystem /usr/local/include -internal-isystem /usr/lib64/gcc/x86_64-pc-linux-gnu/14.1.1/../../../../x86_64-pc-linux-gnu/include -internal-externc-isystem /include -internal-externc-isystem /usr/include -O3 -Wno-unused-command-line-argument -Wall -std=c++14 -fdeprecated-macro -fno-autolink -ferror-limit 19 -fvisibility=hidden -fvisibility-inlines-hidden -fhip-new-launch-api -fcf-protection=none -fgnuc-version=4.2.1 -fskip-odr-check-in-gmf -fcxx-exceptions -fexceptions -vectorize-loops -vectorize-slp -mllvm -amdgpu-early-inline-all=true -mllvm -amdgpu-function-calls=false -cuid=8d95fecd3e8cb37 -fcuda-allow-variadic-functions -faddrsig -D__GCC_HAVE_DWARF2_CFI_ASM=1 -o /tmp/rocsparse_coosort-gfx1030-93a33c.o -x hip /home/aphid/src/rocm/14_sparse/rocSPARSE/library/src/conversion/rocsparse_coosort.cpp 1. parser at end of file 2. Code generation 3. Running pass 'CallGraph Pass Manager' on module '/home/aphid/src/rocm/14_sparse/rocSPARSE/library/src/conversion/rocsparse_coosort.cpp'. 4. Running pass 'AMDGPU DAG->DAG Pattern Instruction Selection' on function '@_ZN7rocprim6detail28segmented_sort_medium_kernelINS0_35wrapped_segmented_radix_sort_configINS_27segmented_radix_sort_configILj7ELj4ENS_13kernel_configILj256ELj16ELj4294967295EEENS_14WarpSortConfigILj8ELj8ELj256ELj5ELj16ELj16ELj256EEELb1EEEllEELb0EPlSA_SA_SA_PjSA_EEvT1_PNSt15iterator_traitsISC_E10value_typeET2_T3_PNSD_ISI_E10value_typeET4_bjT5_T6_SO_jj' PLEASE submit a bug report to https://github.com/llvm/llvm-project/issues/ and include the crash backtrace, preprocessed source, and associated run script. Stack dump: 0. Program arguments: /opt/rocm/lib/llvm/bin/clang-19 -cc1 -triple amdgcn-amd-amdhsa -aux-triple x86_64-unknown-linux-gnu -Werror=atomic-alignment -emit-obj -disable-free -clear-ast-before-backend -main-file-name rocsparse_coosort.cpp -mrelocation-model pic -pic-level 2 -fhalf-no-semantic-interposition -mframe-pointer=none -fno-rounding-math -mconstructor-aliases -aux-target-cpu x86-64 -fcuda-is-device -mllvm -amdgpu-internalize-symbols -fcuda-allow-variadic-functions -mlink-builtin-bitcode /opt/rocm/amdgcn/bitcode/hip.bc -mlink-builtin-bitcode /opt/rocm/amdgcn/bitcode/ocml.bc -mlink-builtin-bitcode /opt/rocm/amdgcn/bitcode/ockl.bc -mlink-builtin-bitcode /opt/rocm/amdgcn/bitcode/oclc_daz_opt_off.bc -mlink-builtin-bitcode /opt/rocm/amdgcn/bitcode/oclc_unsafe_math_off.bc -mlink-builtin-bitcode /opt/rocm/amdgcn/bitcode/oclc_finite_only_off.bc -mlink-builtin-bitcode /opt/rocm/amdgcn/bitcode/oclc_correctly_rounded_sqrt_on.bc -mlink-builtin-bitcode /opt/rocm/amdgcn/bitcode/oclc_wavefrontsize64_off.bc -mlink-builtin-bitcode /opt/rocm/amdgcn/bitcode/oclc_isa_version_1200.bc -mlink-builtin-bitcode /opt/rocm/amdgcn/bitcode/oclc_abi_version_500.bc -target-cpu gfx1200 -debugger-tuning=gdb -fdebug-compilation-dir=/home/aphid/src/rocm/14_sparse/rocSPARSE -resource-dir /opt/rocm/lib/llvm/lib/clang/19 -dependency-file library/CMakeFiles/rocsparse.dir/src/conversion/rocsparse_coosort.cpp.o.d -MT library/CMakeFiles/rocsparse.dir/src/conversion/rocsparse_coosort.cpp.o -sys-header-deps -internal-isystem /opt/rocm/lib/llvm/lib/clang/19/include/cuda_wrappers -idirafter /opt/rocm/include -include __clang_hip_runtime_wrapper.h -isystem /opt/rocm/include -D USE_PROF_API=1 -D __HIP_PLATFORM_AMD__=1 -D rocsparse_EXPORTS -I /home/aphid/src/rocm/14_sparse/rocSPARSE/library/src/include -I /home/aphid/src/rocm/14_sparse/rocSPARSE/library/include -I /home/aphid/src/rocm/14_sparse/rocSPARSE/include/rocsparse -I /home/aphid/src/rocm/14_sparse/rocSPARSE/include -D NDEBUG -D ROCSPARSE_WITH_ROCBLAS -internal-isystem /usr/lib64/gcc/x86_64-pc-linux-gnu/14.1.1/../../../../include/c++/14.1.1 -internal-isystem /usr/lib64/gcc/x86_64-pc-linux-gnu/14.1.1/../../../../include/c++/14.1.1/x86_64-pc-linux-gnu -internal-isystem /usr/lib64/gcc/x86_64-pc-linux-gnu/14.1.1/../../../../include/c++/14.1.1/backward -internal-isystem /usr/lib64/gcc/x86_64-pc-linux-gnu/14.1.1/../../../../include/c++/14.1.1 -internal-isystem /usr/lib64/gcc/x86_64-pc-linux-gnu/14.1.1/../../../../include/c++/14.1.1/x86_64-pc-linux-gnu -internal-isystem /usr/lib64/gcc/x86_64-pc-linux-gnu/14.1.1/../../../../include/c++/14.1.1/backward -internal-isystem /opt/rocm/lib/llvm/lib/clang/19/include -internal-isystem /usr/local/include -internal-isystem /usr/lib64/gcc/x86_64-pc-linux-gnu/14.1.1/../../../../x86_64-pc-linux-gnu/include -internal-externc-isystem /include -internal-externc-isystem /usr/include -internal-isystem /opt/rocm/lib/llvm/lib/clang/19/include -internal-isystem /usr/local/include -internal-isystem /usr/lib64/gcc/x86_64-pc-linux-gnu/14.1.1/../../../../x86_64-pc-linux-gnu/include -internal-externc-isystem /include -internal-externc-isystem /usr/include -O3 -Wno-unused-command-line-argument -Wall -std=c++14 -fdeprecated-macro -fno-autolink -ferror-limit 19 -fvisibility=hidden -fvisibility-inlines-hidden -fhip-new-launch-api -fcf-protection=none -fgnuc-version=4.2.1 -fskip-odr-check-in-gmf -fcxx-exceptions -fexceptions -vectorize-loops -vectorize-slp -mllvm -amdgpu-early-inline-all=true -mllvm -amdgpu-function-calls=false -cuid=8d95fecd3e8cb37 -fcuda-allow-variadic-functions -faddrsig -D__GCC_HAVE_DWARF2_CFI_ASM=1 -o /tmp/rocsparse_coosort-gfx1200-c6825f.o -x hip /home/aphid/src/rocm/14_sparse/rocSPARSE/library/src/conversion/rocsparse_coosort.cpp 1. parser at end of file 2. Code generation 3. Running pass 'CallGraph Pass Manager' on module '/home/aphid/src/rocm/14_sparse/rocSPARSE/library/src/conversion/rocsparse_coosort.cpp'. 4. Running pass 'AMDGPU DAG->DAG Pattern Instruction Selection' on function '@_ZN7rocprim6detail28segmented_sort_medium_kernelINS0_35wrapped_segmented_radix_sort_configINS_27segmented_radix_sort_configILj7ELj4ENS_13kernel_configILj256ELj16ELj4294967295EEENS_14WarpSortConfigILj8ELj8ELj256ELj5ELj16ELj16ELj256EEELb1EEEllEELb0EPlSA_SA_SA_PjSA_EEvT1_PNSt15iterator_traitsISC_E10value_typeET2_T3_PNSD_ISI_E10value_typeET4_bjT5_T6_SO_jj' #0 0x00005dc4b51e556c llvm::sys::PrintStackTrace(llvm::raw_ostream&, int) /home/aphid/src/rocm/02_llvm/llvm-project/llvm/lib/Support/Unix/Signals.inc:723:22 #1 0x00005dc4b51e25fb llvm::sys::RunSignalHandlers() /home/aphid/src/rocm/02_llvm/llvm-project/llvm/lib/Support/Signals.cpp:105:20 #2 0x00005dc4b51e25fb SignalHandler(int) /home/aphid/src/rocm/02_llvm/llvm-project/llvm/lib/Support/Unix/Signals.inc:403:31 #3 0x000073582bc50ae0 (/usr/lib64/libc.so.6+0x3cae0) #4 0x000073582bcb7d55 cfree (/usr/lib64/libc.so.6+0xa3d55) #5 0x00005dc4b35fa994 llvm::SITargetLowering::requiresUniformRegister(llvm::MachineFunction&, llvm::Value const*) const /home/aphid/src/rocm/02_llvm/llvm-project/llvm/lib/Target/AMDGPU/SIISelLowering.cpp:16680:0 #6 0x00005dc4b63ff449 llvm::FunctionLoweringInfo::CreateRegs(llvm::Value const*) /home/aphid/src/rocm/02_llvm/llvm-project/llvm/lib/CodeGen/SelectionDAG/FunctionLoweringInfo.cpp:400:60 #7 0x00005dc4b63ff449 llvm::FunctionLoweringInfo::InitializeRegForValue(llvm::Value const*) /home/aphid/src/rocm/02_llvm/llvm-project/llvm/lib/CodeGen/SelectionDAG/FunctionLoweringInfo.cpp:411:24 #8 0x00005dc4b640454b llvm::FunctionLoweringInfo::set(llvm::Function const&, llvm::MachineFunction&, llvm::SelectionDAG*) /home/aphid/src/rocm/02_llvm/llvm-project/llvm/lib/CodeGen/SelectionDAG/FunctionLoweringInfo.cpp:231:7 #9 0x00005dc4b6546bd0 llvm::SelectionDAGISel::runOnMachineFunction(llvm::MachineFunction&) /home/aphid/src/rocm/02_llvm/llvm-project/llvm/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp:598:3 #10 0x00005dc4b6530333 llvm::OptLevelChanger::~OptLevelChanger() /home/aphid/src/rocm/02_llvm/llvm-project/llvm/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp:268:11 #11 0x00005dc4b6530333 llvm::SelectionDAGISelLegacy::runOnMachineFunction(llvm::MachineFunction&) /home/aphid/src/rocm/02_llvm/llvm-project/llvm/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp:375:1 #12 0x00005dc4b6530333 llvm::SelectionDAGISelLegacy::runOnMachineFunction(llvm::MachineFunction&) /home/aphid/src/rocm/02_llvm/llvm-project/llvm/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp:346:6 #13 0x00005dc4b443c830 llvm::MachineFunctionPass::runOnFunction(llvm::Function&) (.part.0) /home/aphid/src/rocm/02_llvm/llvm-project/llvm/lib/CodeGen/MachineFunctionPass.cpp:94:33 #14 0x00005dc4b4adc818 llvm::FPPassManager::runOnFunction(llvm::Function&) /home/aphid/src/rocm/02_llvm/llvm-project/llvm/lib/IR/LegacyPassManager.cpp:1440:40 #15 0x00005dc4b3fee167 RunPassOnSCC /home/aphid/src/rocm/02_llvm/llvm-project/llvm/lib/Analysis/CallGraphSCCPass.cpp:180:17 #16 0x00005dc4b3fee167 RunAllPassesOnSCC /home/aphid/src/rocm/02_llvm/llvm-project/llvm/lib/Analysis/CallGraphSCCPass.cpp:470:21 #17 0x00005dc4b3fee167 (anonymous namespace)::CGPassManager::runOnModule(llvm::Module&) /home/aphid/src/rocm/02_llvm/llvm-project/llvm/lib/Analysis/CallGraphSCCPass.cpp:535:35 #18 0x00005dc4b4add677 runOnModule /home/aphid/src/rocm/02_llvm/llvm-project/llvm/lib/IR/LegacyPassManager.cpp:1562:7 #19 0x00005dc4b4add677 llvm::legacy::PassManagerImpl::run(llvm::Module&) /home/aphid/src/rocm/02_llvm/llvm-project/llvm/lib/IR/LegacyPassManager.cpp:541:55 #20 0x00005dc4b549c232 llvm::TimeTraceScope::~TimeTraceScope() /home/aphid/src/rocm/02_llvm/llvm-project/llvm/include/llvm/Support/TimeProfiler.h:168:37 #21 0x00005dc4b549c232 RunCodegenPipeline /home/aphid/src/rocm/02_llvm/llvm-project/clang/lib/CodeGen/BackendUtil.cpp:1158:3 #22 0x00005dc4b549c232 EmitAssembly /home/aphid/src/rocm/02_llvm/llvm-project/clang/lib/CodeGen/BackendUtil.cpp:1180:21 #23 0x00005dc4b549c232 clang::EmitBackendOutput(clang::DiagnosticsEngine&, clang::HeaderSearchOptions const&, clang::CodeGenOptions const&, clang::TargetOptions const&, clang::LangOptions const&, llvm::StringRef, llvm::Module*, clang::BackendAction, llvm::IntrusiveRefCntPtr, std::unique_ptr>, clang::BackendConsumer*) /home/aphid/src/rocm/02_llvm/llvm-project/clang/lib/CodeGen/BackendUtil.cpp:1341:25 #24 0x00005dc4b5b3d43d llvm::IntrusiveRefCntPtr::release() /home/aphid/src/rocm/02_llvm/llvm-project/llvm/include/llvm/ADT/IntrusiveRefCntPtr.h:232:9 #25 0x00005dc4b5b3d43d llvm::IntrusiveRefCntPtr::~IntrusiveRefCntPtr() /home/aphid/src/rocm/02_llvm/llvm-project/llvm/include/llvm/ADT/IntrusiveRefCntPtr.h:196:34 #26 0x00005dc4b5b3d43d clang::BackendConsumer::HandleTranslationUnit(clang::ASTContext&) /home/aphid/src/rocm/02_llvm/llvm-project/clang/lib/CodeGen/CodeGenAction.cpp:355:20 #27 0x00005dc4b788567c clang::ParseAST(clang::Sema&, bool, bool) /home/aphid/src/rocm/02_llvm/llvm-project/clang/lib/Parse/ParseAST.cpp:176:34 #28 0x00005dc4b5e2d209 clang::FrontendAction::Execute() /home/aphid/src/rocm/02_llvm/llvm-project/clang/lib/Frontend/FrontendAction.cpp:1078:21 #29 0x00005dc4b5dae63e llvm::Error::getPtr() const /home/aphid/src/rocm/02_llvm/llvm-project/llvm/include/llvm/Support/Error.h:279:51 #30 0x00005dc4b5dae63e llvm::Error::operator bool() /home/aphid/src/rocm/02_llvm/llvm-project/llvm/include/llvm/Support/Error.h:242:22 #31 0x00005dc4b5dae63e clang::CompilerInstance::ExecuteAction(clang::FrontendAction&) /home/aphid/src/rocm/02_llvm/llvm-project/clang/lib/Frontend/CompilerInstance.cpp:1061:42 #32 0x00005dc4b5f0d81f std::__shared_ptr::get() const /usr/include/c++/14.1.1/bits/shared_ptr_base.h:1667:16 #33 0x00005dc4b5f0d81f std::__shared_ptr_access::_M_get() const /usr/include/c++/14.1.1/bits/shared_ptr_base.h:1364:69 #34 0x00005dc4b5f0d81f std::__shared_ptr_access::operator*() const /usr/include/c++/14.1.1/bits/shared_ptr_base.h:1350:2 #35 0x00005dc4b5f0d81f clang::CompilerInvocation::getFrontendOpts() /home/aphid/src/rocm/02_llvm/llvm-project/clang/include/clang/Frontend/CompilerInvocation.h:259:48 #36 0x00005dc4b5f0d81f clang::CompilerInstance::getFrontendOpts() /home/aphid/src/rocm/02_llvm/llvm-project/clang/include/clang/Frontend/CompilerInstance.h:312:39 #37 0x00005dc4b5f0d81f clang::ExecuteCompilerInvocation(clang::CompilerInstance*) /home/aphid/src/rocm/02_llvm/llvm-project/clang/lib/FrontendTool/ExecuteCompilerInvocation.cpp:281:29 #38 0x00005dc4b33fc277 cc1_main(llvm::ArrayRef, char const*, void*) /home/aphid/src/rocm/02_llvm/llvm-project/clang/tools/driver/cc1_main.cpp:276:40 #39 0x00005dc4b33f51c0 ExecuteCC1Tool(llvm::SmallVectorImpl&, llvm::ToolContext const&) /home/aphid/src/rocm/02_llvm/llvm-project/clang/tools/driver/driver.cpp:231:20 #40 0x00005dc4b33f78ef clang_main(int, char**, llvm::ToolContext const&) /home/aphid/src/rocm/02_llvm/llvm-project/clang/tools/driver/driver.cpp:272:26 #41 0x00005dc4b32f8814 main /home/aphid/src/rocm/02_llvm/llvm-project/tools/clang/tools/driver/clang-driver.cpp:18:1 #42 0x000073582bc39c88 (/usr/lib64/libc.so.6+0x25c88) #43 0x000073582bc39d4c __libc_start_main (/usr/lib64/libc.so.6+0x25d4c) #44 0x00005dc4b33f47c5 _start (/opt/rocm/lib/llvm/bin/clang-19+0xe5a7c5) #0 0x00005b789c46356c llvm::sys::PrintStackTrace(llvm::raw_ostream&, int) /home/aphid/src/rocm/02_llvm/llvm-project/llvm/lib/Support/Unix/Signals.inc:723:22 #1 0x00005b789c4605fb llvm::sys::RunSignalHandlers() /home/aphid/src/rocm/02_llvm/llvm-project/llvm/lib/Support/Signals.cpp:105:20 #2 0x00005b789c4605fb SignalHandler(int) /home/aphid/src/rocm/02_llvm/llvm-project/llvm/lib/Support/Unix/Signals.inc:403:31 #3 0x00007a0c9b365ae0 (/usr/lib64/libc.so.6+0x3cae0) #4 0x00007a0c9b3ccd55 cfree (/usr/lib64/libc.so.6+0xa3d55) #5 0x00005b789a878994 llvm::SITargetLowering::requiresUniformRegister(llvm::MachineFunction&, llvm::Value const*) const /home/aphid/src/rocm/02_llvm/llvm-project/llvm/lib/Target/AMDGPU/SIISelLowering.cpp:16680:0 #6 0x00005b789d67d449 llvm::FunctionLoweringInfo::CreateRegs(llvm::Value const*) /home/aphid/src/rocm/02_llvm/llvm-project/llvm/lib/CodeGen/SelectionDAG/FunctionLoweringInfo.cpp:400:60 #7 0x00005b789d67d449 llvm::FunctionLoweringInfo::InitializeRegForValue(llvm::Value const*) /home/aphid/src/rocm/02_llvm/llvm-project/llvm/lib/CodeGen/SelectionDAG/FunctionLoweringInfo.cpp:411:24 #8 0x00005b789d68254b llvm::FunctionLoweringInfo::set(llvm::Function const&, llvm::MachineFunction&, llvm::SelectionDAG*) /home/aphid/src/rocm/02_llvm/llvm-project/llvm/lib/CodeGen/SelectionDAG/FunctionLoweringInfo.cpp:231:7 #9 0x00005b789d7c4bd0 llvm::SelectionDAGISel::runOnMachineFunction(llvm::MachineFunction&) /home/aphid/src/rocm/02_llvm/llvm-project/llvm/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp:598:3 #10 0x00005b789d7ae333 llvm::OptLevelChanger::~OptLevelChanger() /home/aphid/src/rocm/02_llvm/llvm-project/llvm/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp:268:11 #11 0x00005b789d7ae333 llvm::SelectionDAGISelLegacy::runOnMachineFunction(llvm::MachineFunction&) /home/aphid/src/rocm/02_llvm/llvm-project/llvm/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp:375:1 #12 0x00005b789d7ae333 llvm::SelectionDAGISelLegacy::runOnMachineFunction(llvm::MachineFunction&) /home/aphid/src/rocm/02_llvm/llvm-project/llvm/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp:346:6 #13 0x00005b789b6ba830 llvm::MachineFunctionPass::runOnFunction(llvm::Function&) (.part.0) /home/aphid/src/rocm/02_llvm/llvm-project/llvm/lib/CodeGen/MachineFunctionPass.cpp:94:33 #14 0x00005b789bd5a818 llvm::FPPassManager::runOnFunction(llvm::Function&) /home/aphid/src/rocm/02_llvm/llvm-project/llvm/lib/IR/LegacyPassManager.cpp:1440:40 #15 0x00005b789b26c167 RunPassOnSCC /home/aphid/src/rocm/02_llvm/llvm-project/llvm/lib/Analysis/CallGraphSCCPass.cpp:180:17 #16 0x00005b789b26c167 RunAllPassesOnSCC /home/aphid/src/rocm/02_llvm/llvm-project/llvm/lib/Analysis/CallGraphSCCPass.cpp:470:21 #17 0x00005b789b26c167 (anonymous namespace)::CGPassManager::runOnModule(llvm::Module&) /home/aphid/src/rocm/02_llvm/llvm-project/llvm/lib/Analysis/CallGraphSCCPass.cpp:535:35 #18 0x00005b789bd5b677 runOnModule /home/aphid/src/rocm/02_llvm/llvm-project/llvm/lib/IR/LegacyPassManager.cpp:1562:7 #19 0x00005b789bd5b677 llvm::legacy::PassManagerImpl::run(llvm::Module&) /home/aphid/src/rocm/02_llvm/llvm-project/llvm/lib/IR/LegacyPassManager.cpp:541:55 #20 0x00005b789c71a232 llvm::TimeTraceScope::~TimeTraceScope() /home/aphid/src/rocm/02_llvm/llvm-project/llvm/include/llvm/Support/TimeProfiler.h:168:37 #21 0x00005b789c71a232 RunCodegenPipeline /home/aphid/src/rocm/02_llvm/llvm-project/clang/lib/CodeGen/BackendUtil.cpp:1158:3 #22 0x00005b789c71a232 EmitAssembly /home/aphid/src/rocm/02_llvm/llvm-project/clang/lib/CodeGen/BackendUtil.cpp:1180:21 #23 0x00005b789c71a232 clang::EmitBackendOutput(clang::DiagnosticsEngine&, clang::HeaderSearchOptions const&, clang::CodeGenOptions const&, clang::TargetOptions const&, clang::LangOptions const&, llvm::StringRef, llvm::Module*, clang::BackendAction, llvm::IntrusiveRefCntPtr, std::unique_ptr>, clang::BackendConsumer*) /home/aphid/src/rocm/02_llvm/llvm-project/clang/lib/CodeGen/BackendUtil.cpp:1341:25 #24 0x00005b789cdbb43d llvm::IntrusiveRefCntPtr::release() /home/aphid/src/rocm/02_llvm/llvm-project/llvm/include/llvm/ADT/IntrusiveRefCntPtr.h:232:9 #25 0x00005b789cdbb43d llvm::IntrusiveRefCntPtr::~IntrusiveRefCntPtr() /home/aphid/src/rocm/02_llvm/llvm-project/llvm/include/llvm/ADT/IntrusiveRefCntPtr.h:196:34 #26 0x00005b789cdbb43d clang::BackendConsumer::HandleTranslationUnit(clang::ASTContext&) /home/aphid/src/rocm/02_llvm/llvm-project/clang/lib/CodeGen/CodeGenAction.cpp:355:20 #27 0x00005b789eb0367c clang::ParseAST(clang::Sema&, bool, bool) /home/aphid/src/rocm/02_llvm/llvm-project/clang/lib/Parse/ParseAST.cpp:176:34 #28 0x00005b789d0ab209 clang::FrontendAction::Execute() /home/aphid/src/rocm/02_llvm/llvm-project/clang/lib/Frontend/FrontendAction.cpp:1078:21 #29 0x00005b789d02c63e llvm::Error::getPtr() const /home/aphid/src/rocm/02_llvm/llvm-project/llvm/include/llvm/Support/Error.h:279:51 #30 0x00005b789d02c63e llvm::Error::operator bool() /home/aphid/src/rocm/02_llvm/llvm-project/llvm/include/llvm/Support/Error.h:242:22 #31 0x00005b789d02c63e clang::CompilerInstance::ExecuteAction(clang::FrontendAction&) /home/aphid/src/rocm/02_llvm/llvm-project/clang/lib/Frontend/CompilerInstance.cpp:1061:42 #32 0x00005b789d18b81f std::__shared_ptr::get() const /usr/include/c++/14.1.1/bits/shared_ptr_base.h:1667:16 #33 0x00005b789d18b81f std::__shared_ptr_access::_M_get() const /usr/include/c++/14.1.1/bits/shared_ptr_base.h:1364:69 #34 0x00005b789d18b81f std::__shared_ptr_access::operator*() const /usr/include/c++/14.1.1/bits/shared_ptr_base.h:1350:2 #35 0x00005b789d18b81f clang::CompilerInvocation::getFrontendOpts() /home/aphid/src/rocm/02_llvm/llvm-project/clang/include/clang/Frontend/CompilerInvocation.h:259:48 #36 0x00005b789d18b81f clang::CompilerInstance::getFrontendOpts() /home/aphid/src/rocm/02_llvm/llvm-project/clang/include/clang/Frontend/CompilerInstance.h:312:39 #37 0x00005b789d18b81f clang::ExecuteCompilerInvocation(clang::CompilerInstance*) /home/aphid/src/rocm/02_llvm/llvm-project/clang/lib/FrontendTool/ExecuteCompilerInvocation.cpp:281:29 #38 0x00005b789a67a277 cc1_main(llvm::ArrayRef, char const*, void*) /home/aphid/src/rocm/02_llvm/llvm-project/clang/tools/driver/cc1_main.cpp:276:40 #39 0x00005b789a6731c0 ExecuteCC1Tool(llvm::SmallVectorImpl&, llvm::ToolContext const&) /home/aphid/src/rocm/02_llvm/llvm-project/clang/tools/driver/driver.cpp:231:20 #40 0x00005b789a6758ef clang_main(int, char**, llvm::ToolContext const&) /home/aphid/src/rocm/02_llvm/llvm-project/clang/tools/driver/driver.cpp:272:26 #41 0x00005b789a576814 main /home/aphid/src/rocm/02_llvm/llvm-project/tools/clang/tools/driver/clang-driver.cpp:18:1 #42 0x00007a0c9b34ec88 (/usr/lib64/libc.so.6+0x25c88) #43 0x00007a0c9b34ed4c __libc_start_main (/usr/lib64/libc.so.6+0x25d4c) #44 0x00005b789a6727c5 _start (/opt/rocm/lib/llvm/bin/clang-19+0xe5a7c5) clang: error: unable to execute command: Segmentation fault (core dumped) clang: error: unable to execute command: Segmentation fault (core dumped) clang: error: unable to execute command: Segmentation fault (core dumped) munmap_chunk(): invalid pointer PLEASE submit a bug report to https://github.com/llvm/llvm-project/issues/ and include the crash backtrace, preprocessed source, and associated run script. Stack dump: 0. Program arguments: /opt/rocm/lib/llvm/bin/clang-19 -cc1 -triple amdgcn-amd-amdhsa -aux-triple x86_64-unknown-linux-gnu -Werror=atomic-alignment -emit-obj -disable-free -clear-ast-before-backend -main-file-name rocsparse_coosort.cpp -mrelocation-model pic -pic-level 2 -fhalf-no-semantic-interposition -mframe-pointer=none -fno-rounding-math -mconstructor-aliases -aux-target-cpu x86-64 -fcuda-is-device -mllvm -amdgpu-internalize-symbols -fcuda-allow-variadic-functions -mlink-builtin-bitcode /opt/rocm/amdgcn/bitcode/hip.bc -mlink-builtin-bitcode /opt/rocm/amdgcn/bitcode/ocml.bc -mlink-builtin-bitcode /opt/rocm/amdgcn/bitcode/ockl.bc -mlink-builtin-bitcode /opt/rocm/amdgcn/bitcode/oclc_daz_opt_off.bc -mlink-builtin-bitcode /opt/rocm/amdgcn/bitcode/oclc_unsafe_math_off.bc -mlink-builtin-bitcode /opt/rocm/amdgcn/bitcode/oclc_finite_only_off.bc -mlink-builtin-bitcode /opt/rocm/amdgcn/bitcode/oclc_correctly_rounded_sqrt_on.bc -mlink-builtin-bitcode /opt/rocm/amdgcn/bitcode/oclc_wavefrontsize64_off.bc -mlink-builtin-bitcode /opt/rocm/amdgcn/bitcode/oclc_isa_version_1100.bc -mlink-builtin-bitcode /opt/rocm/amdgcn/bitcode/oclc_abi_version_500.bc -target-cpu gfx1100 -debugger-tuning=gdb -fdebug-compilation-dir=/home/aphid/src/rocm/14_sparse/rocSPARSE -resource-dir /opt/rocm/lib/llvm/lib/clang/19 -dependency-file library/CMakeFiles/rocsparse.dir/src/conversion/rocsparse_coosort.cpp.o.d -MT library/CMakeFiles/rocsparse.dir/src/conversion/rocsparse_coosort.cpp.o -sys-header-deps -internal-isystem /opt/rocm/lib/llvm/lib/clang/19/include/cuda_wrappers -idirafter /opt/rocm/include -include __clang_hip_runtime_wrapper.h -isystem /opt/rocm/include -D USE_PROF_API=1 -D __HIP_PLATFORM_AMD__=1 -D rocsparse_EXPORTS -I /home/aphid/src/rocm/14_sparse/rocSPARSE/library/src/include -I /home/aphid/src/rocm/14_sparse/rocSPARSE/library/include -I /home/aphid/src/rocm/14_sparse/rocSPARSE/include/rocsparse -I /home/aphid/src/rocm/14_sparse/rocSPARSE/include -D NDEBUG -D ROCSPARSE_WITH_ROCBLAS -internal-isystem /usr/lib64/gcc/x86_64-pc-linux-gnu/14.1.1/../../../../include/c++/14.1.1 -internal-isystem /usr/lib64/gcc/x86_64-pc-linux-gnu/14.1.1/../../../../include/c++/14.1.1/x86_64-pc-linux-gnu -internal-isystem /usr/lib64/gcc/x86_64-pc-linux-gnu/14.1.1/../../../../include/c++/14.1.1/backward -internal-isystem /usr/lib64/gcc/x86_64-pc-linux-gnu/14.1.1/../../../../include/c++/14.1.1 -internal-isystem /usr/lib64/gcc/x86_64-pc-linux-gnu/14.1.1/../../../../include/c++/14.1.1/x86_64-pc-linux-gnu -internal-isystem /usr/lib64/gcc/x86_64-pc-linux-gnu/14.1.1/../../../../include/c++/14.1.1/backward -internal-isystem /opt/rocm/lib/llvm/lib/clang/19/include -internal-isystem /usr/local/include -internal-isystem /usr/lib64/gcc/x86_64-pc-linux-gnu/14.1.1/../../../../x86_64-pc-linux-gnu/include -internal-externc-isystem /include -internal-externc-isystem /usr/include -internal-isystem /opt/rocm/lib/llvm/lib/clang/19/include -internal-isystem /usr/local/include -internal-isystem /usr/lib64/gcc/x86_64-pc-linux-gnu/14.1.1/../../../../x86_64-pc-linux-gnu/include -internal-externc-isystem /include -internal-externc-isystem /usr/include -O3 -Wno-unused-command-line-argument -Wall -std=c++14 -fdeprecated-macro -fno-autolink -ferror-limit 19 -fvisibility=hidden -fvisibility-inlines-hidden -fhip-new-launch-api -fcf-protection=none -fgnuc-version=4.2.1 -fskip-odr-check-in-gmf -fcxx-exceptions -fexceptions -vectorize-loops -vectorize-slp -mllvm -amdgpu-early-inline-all=true -mllvm -amdgpu-function-calls=false -cuid=8d95fecd3e8cb37 -fcuda-allow-variadic-functions -faddrsig -D__GCC_HAVE_DWARF2_CFI_ASM=1 -o /tmp/rocsparse_coosort-gfx1100-554750.o -x hip /home/aphid/src/rocm/14_sparse/rocSPARSE/library/src/conversion/rocsparse_coosort.cpp 1. parser at end of file 2. Code generation 3. Running pass 'CallGraph Pass Manager' on module '/home/aphid/src/rocm/14_sparse/rocSPARSE/library/src/conversion/rocsparse_coosort.cpp'. 4. Running pass 'AMDGPU DAG->DAG Pattern Instruction Selection' on function '@_ZN7rocprim6detail28segmented_sort_medium_kernelINS0_35wrapped_segmented_radix_sort_configINS_27segmented_radix_sort_configILj7ELj4ENS_13kernel_configILj256ELj16ELj4294967295EEENS_14WarpSortConfigILj8ELj8ELj256ELj5ELj16ELj16ELj256EEELb1EEElNS_10empty_typeEEELb0EPlSB_PS9_SC_PjSB_EEvT1_PNSt15iterator_traitsISE_E10value_typeET2_T3_PNSF_ISK_E10value_typeET4_bjT5_T6_SQ_jj' #0 0x0000588c0988f56c llvm::sys::PrintStackTrace(llvm::raw_ostream&, int) /home/aphid/src/rocm/02_llvm/llvm-project/llvm/lib/Support/Unix/Signals.inc:723:22 #1 0x0000588c0988c5fb llvm::sys::RunSignalHandlers() /home/aphid/src/rocm/02_llvm/llvm-project/llvm/lib/Support/Signals.cpp:105:20 #2 0x0000588c0988c5fb SignalHandler(int) /home/aphid/src/rocm/02_llvm/llvm-project/llvm/lib/Support/Unix/Signals.inc:403:31 #3 0x00007511b9023ae0 (/usr/lib64/libc.so.6+0x3cae0) #4 0x00007511b907be44 (/usr/lib64/libc.so.6+0x94e44) #5 0x00007511b9023a30 raise (/usr/lib64/libc.so.6+0x3ca30) #6 0x00007511b900b4c3 abort (/usr/lib64/libc.so.6+0x244c3) #7 0x00007511b900c354 (/usr/lib64/libc.so.6+0x25354) #8 0x00007511b9086085 (/usr/lib64/libc.so.6+0x9f085) #9 0x00007511b908631c (/usr/lib64/libc.so.6+0x9f31c) #10 0x00007511b908adfa cfree (/usr/lib64/libc.so.6+0xa3dfa) #11 0x0000588c07ca4994 llvm::SITargetLowering::requiresUniformRegister(llvm::MachineFunction&, llvm::Value const*) const /home/aphid/src/rocm/02_llvm/llvm-project/llvm/lib/Target/AMDGPU/SIISelLowering.cpp:16680:0 #12 0x0000588c0aaa9449 llvm::FunctionLoweringInfo::CreateRegs(llvm::Value const*) /home/aphid/src/rocm/02_llvm/llvm-project/llvm/lib/CodeGen/SelectionDAG/FunctionLoweringInfo.cpp:400:60 #13 0x0000588c0aaa9449 llvm::FunctionLoweringInfo::InitializeRegForValue(llvm::Value const*) /home/aphid/src/rocm/02_llvm/llvm-project/llvm/lib/CodeGen/SelectionDAG/FunctionLoweringInfo.cpp:411:24 #14 0x0000588c0aaae54b llvm::FunctionLoweringInfo::set(llvm::Function const&, llvm::MachineFunction&, llvm::SelectionDAG*) /home/aphid/src/rocm/02_llvm/llvm-project/llvm/lib/CodeGen/SelectionDAG/FunctionLoweringInfo.cpp:231:7 #15 0x0000588c0abf0bd0 llvm::SelectionDAGISel::runOnMachineFunction(llvm::MachineFunction&) /home/aphid/src/rocm/02_llvm/llvm-project/llvm/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp:598:3 #16 0x0000588c0abda333 llvm::OptLevelChanger::~OptLevelChanger() /home/aphid/src/rocm/02_llvm/llvm-project/llvm/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp:268:11 #17 0x0000588c0abda333 llvm::SelectionDAGISelLegacy::runOnMachineFunction(llvm::MachineFunction&) /home/aphid/src/rocm/02_llvm/llvm-project/llvm/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp:375:1 #18 0x0000588c0abda333 llvm::SelectionDAGISelLegacy::runOnMachineFunction(llvm::MachineFunction&) /home/aphid/src/rocm/02_llvm/llvm-project/llvm/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp:346:6 #19 0x0000588c08ae6830 llvm::MachineFunctionPass::runOnFunction(llvm::Function&) (.part.0) /home/aphid/src/rocm/02_llvm/llvm-project/llvm/lib/CodeGen/MachineFunctionPass.cpp:94:33 #20 0x0000588c09186818 llvm::FPPassManager::runOnFunction(llvm::Function&) /home/aphid/src/rocm/02_llvm/llvm-project/llvm/lib/IR/LegacyPassManager.cpp:1440:40 #21 0x0000588c08698167 RunPassOnSCC /home/aphid/src/rocm/02_llvm/llvm-project/llvm/lib/Analysis/CallGraphSCCPass.cpp:180:17 #22 0x0000588c08698167 RunAllPassesOnSCC /home/aphid/src/rocm/02_llvm/llvm-project/llvm/lib/Analysis/CallGraphSCCPass.cpp:470:21 #23 0x0000588c08698167 (anonymous namespace)::CGPassManager::runOnModule(llvm::Module&) /home/aphid/src/rocm/02_llvm/llvm-project/llvm/lib/Analysis/CallGraphSCCPass.cpp:535:35 #24 0x0000588c09187677 runOnModule /home/aphid/src/rocm/02_llvm/llvm-project/llvm/lib/IR/LegacyPassManager.cpp:1562:7 #25 0x0000588c09187677 llvm::legacy::PassManagerImpl::run(llvm::Module&) /home/aphid/src/rocm/02_llvm/llvm-project/llvm/lib/IR/LegacyPassManager.cpp:541:55 #26 0x0000588c09b46232 llvm::TimeTraceScope::~TimeTraceScope() /home/aphid/src/rocm/02_llvm/llvm-project/llvm/include/llvm/Support/TimeProfiler.h:168:37 #27 0x0000588c09b46232 RunCodegenPipeline /home/aphid/src/rocm/02_llvm/llvm-project/clang/lib/CodeGen/BackendUtil.cpp:1158:3 #28 0x0000588c09b46232 EmitAssembly /home/aphid/src/rocm/02_llvm/llvm-project/clang/lib/CodeGen/BackendUtil.cpp:1180:21 #29 0x0000588c09b46232 clang::EmitBackendOutput(clang::DiagnosticsEngine&, clang::HeaderSearchOptions const&, clang::CodeGenOptions const&, clang::TargetOptions const&, clang::LangOptions const&, llvm::StringRef, llvm::Module*, clang::BackendAction, llvm::IntrusiveRefCntPtr, std::unique_ptr>, clang::BackendConsumer*) /home/aphid/src/rocm/02_llvm/llvm-project/clang/lib/CodeGen/BackendUtil.cpp:1341:25 #30 0x0000588c0a1e743d llvm::IntrusiveRefCntPtr::release() /home/aphid/src/rocm/02_llvm/llvm-project/llvm/include/llvm/ADT/IntrusiveRefCntPtr.h:232:9 #31 0x0000588c0a1e743d llvm::IntrusiveRefCntPtr::~IntrusiveRefCntPtr() /home/aphid/src/rocm/02_llvm/llvm-project/llvm/include/llvm/ADT/IntrusiveRefCntPtr.h:196:34 #32 0x0000588c0a1e743d clang::BackendConsumer::HandleTranslationUnit(clang::ASTContext&) /home/aphid/src/rocm/02_llvm/llvm-project/clang/lib/CodeGen/CodeGenAction.cpp:355:20 #33 0x0000588c0bf2f67c clang::ParseAST(clang::Sema&, bool, bool) /home/aphid/src/rocm/02_llvm/llvm-project/clang/lib/Parse/ParseAST.cpp:176:34 #34 0x0000588c0a4d7209 clang::FrontendAction::Execute() /home/aphid/src/rocm/02_llvm/llvm-project/clang/lib/Frontend/FrontendAction.cpp:1078:21 #35 0x0000588c0a45863e llvm::Error::getPtr() const /home/aphid/src/rocm/02_llvm/llvm-project/llvm/include/llvm/Support/Error.h:279:51 #36 0x0000588c0a45863e llvm::Error::operator bool() /home/aphid/src/rocm/02_llvm/llvm-project/llvm/include/llvm/Support/Error.h:242:22 #37 0x0000588c0a45863e clang::CompilerInstance::ExecuteAction(clang::FrontendAction&) /home/aphid/src/rocm/02_llvm/llvm-project/clang/lib/Frontend/CompilerInstance.cpp:1061:42 #38 0x0000588c0a5b781f std::__shared_ptr::get() const /usr/include/c++/14.1.1/bits/shared_ptr_base.h:1667:16 #39 0x0000588c0a5b781f std::__shared_ptr_access::_M_get() const /usr/include/c++/14.1.1/bits/shared_ptr_base.h:1364:69 #40 0x0000588c0a5b781f std::__shared_ptr_access::operator*() const /usr/include/c++/14.1.1/bits/shared_ptr_base.h:1350:2 #41 0x0000588c0a5b781f clang::CompilerInvocation::getFrontendOpts() /home/aphid/src/rocm/02_llvm/llvm-project/clang/include/clang/Frontend/CompilerInvocation.h:259:48 #42 0x0000588c0a5b781f clang::CompilerInstance::getFrontendOpts() /home/aphid/src/rocm/02_llvm/llvm-project/clang/include/clang/Frontend/CompilerInstance.h:312:39 #43 0x0000588c0a5b781f clang::ExecuteCompilerInvocation(clang::CompilerInstance*) /home/aphid/src/rocm/02_llvm/llvm-project/clang/lib/FrontendTool/ExecuteCompilerInvocation.cpp:281:29 #44 0x0000588c07aa6277 cc1_main(llvm::ArrayRef, char const*, void*) /home/aphid/src/rocm/02_llvm/llvm-project/clang/tools/driver/cc1_main.cpp:276:40 #45 0x0000588c07a9f1c0 ExecuteCC1Tool(llvm::SmallVectorImpl&, llvm::ToolContext const&) /home/aphid/src/rocm/02_llvm/llvm-project/clang/tools/driver/driver.cpp:231:20 #46 0x0000588c07aa18ef clang_main(int, char**, llvm::ToolContext const&) /home/aphid/src/rocm/02_llvm/llvm-project/clang/tools/driver/driver.cpp:272:26 #47 0x0000588c079a2814 main /home/aphid/src/rocm/02_llvm/llvm-project/tools/clang/tools/driver/clang-driver.cpp:18:1 #48 0x00007511b900cc88 (/usr/lib64/libc.so.6+0x25c88) #49 0x00007511b900cd4c __libc_start_main (/usr/lib64/libc.so.6+0x25d4c) #50 0x0000588c07a9e7c5 _start (/opt/rocm/lib/llvm/bin/clang-19+0xe5a7c5) munmap_chunk(): invalid pointer PLEASE submit a bug report to https://github.com/llvm/llvm-project/issues/ and include the crash backtrace, preprocessed source, and associated run script. Stack dump: 0. Program arguments: /opt/rocm/lib/llvm/bin/clang-19 -cc1 -triple amdgcn-amd-amdhsa -aux-triple x86_64-unknown-linux-gnu -Werror=atomic-alignment -emit-obj -disable-free -clear-ast-before-backend -main-file-name rocsparse_coosort.cpp -mrelocation-model pic -pic-level 2 -fhalf-no-semantic-interposition -mframe-pointer=none -fno-rounding-math -mconstructor-aliases -aux-target-cpu x86-64 -fcuda-is-device -mllvm -amdgpu-internalize-symbols -fcuda-allow-variadic-functions -mlink-builtin-bitcode /opt/rocm/amdgcn/bitcode/hip.bc -mlink-builtin-bitcode /opt/rocm/amdgcn/bitcode/ocml.bc -mlink-builtin-bitcode /opt/rocm/amdgcn/bitcode/ockl.bc -mlink-builtin-bitcode /opt/rocm/amdgcn/bitcode/oclc_daz_opt_off.bc -mlink-builtin-bitcode /opt/rocm/amdgcn/bitcode/oclc_unsafe_math_off.bc -mlink-builtin-bitcode /opt/rocm/amdgcn/bitcode/oclc_finite_only_off.bc -mlink-builtin-bitcode /opt/rocm/amdgcn/bitcode/oclc_correctly_rounded_sqrt_on.bc -mlink-builtin-bitcode /opt/rocm/amdgcn/bitcode/oclc_wavefrontsize64_off.bc -mlink-builtin-bitcode /opt/rocm/amdgcn/bitcode/oclc_isa_version_1201.bc -mlink-builtin-bitcode /opt/rocm/amdgcn/bitcode/oclc_abi_version_500.bc -target-cpu gfx1201 -debugger-tuning=gdb -fdebug-compilation-dir=/home/aphid/src/rocm/14_sparse/rocSPARSE -resource-dir /opt/rocm/lib/llvm/lib/clang/19 -dependency-file library/CMakeFiles/rocsparse.dir/src/conversion/rocsparse_coosort.cpp.o.d -MT library/CMakeFiles/rocsparse.dir/src/conversion/rocsparse_coosort.cpp.o -sys-header-deps -internal-isystem /opt/rocm/lib/llvm/lib/clang/19/include/cuda_wrappers -idirafter /opt/rocm/include -include __clang_hip_runtime_wrapper.h -isystem /opt/rocm/include -D USE_PROF_API=1 -D __HIP_PLATFORM_AMD__=1 -D rocsparse_EXPORTS -I /home/aphid/src/rocm/14_sparse/rocSPARSE/library/src/include -I /home/aphid/src/rocm/14_sparse/rocSPARSE/library/include -I /home/aphid/src/rocm/14_sparse/rocSPARSE/include/rocsparse -I /home/aphid/src/rocm/14_sparse/rocSPARSE/include -D NDEBUG -D ROCSPARSE_WITH_ROCBLAS -internal-isystem /usr/lib64/gcc/x86_64-pc-linux-gnu/14.1.1/../../../../include/c++/14.1.1 -internal-isystem /usr/lib64/gcc/x86_64-pc-linux-gnu/14.1.1/../../../../include/c++/14.1.1/x86_64-pc-linux-gnu -internal-isystem /usr/lib64/gcc/x86_64-pc-linux-gnu/14.1.1/../../../../include/c++/14.1.1/backward -internal-isystem /usr/lib64/gcc/x86_64-pc-linux-gnu/14.1.1/../../../../include/c++/14.1.1 -internal-isystem /usr/lib64/gcc/x86_64-pc-linux-gnu/14.1.1/../../../../include/c++/14.1.1/x86_64-pc-linux-gnu -internal-isystem /usr/lib64/gcc/x86_64-pc-linux-gnu/14.1.1/../../../../include/c++/14.1.1/backward -internal-isystem /opt/rocm/lib/llvm/lib/clang/19/include -internal-isystem /usr/local/include -internal-isystem /usr/lib64/gcc/x86_64-pc-linux-gnu/14.1.1/../../../../x86_64-pc-linux-gnu/include -internal-externc-isystem /include -internal-externc-isystem /usr/include -internal-isystem /opt/rocm/lib/llvm/lib/clang/19/include -internal-isystem /usr/local/include -internal-isystem /usr/lib64/gcc/x86_64-pc-linux-gnu/14.1.1/../../../../x86_64-pc-linux-gnu/include -internal-externc-isystem /include -internal-externc-isystem /usr/include -O3 -Wno-unused-command-line-argument -Wall -std=c++14 -fdeprecated-macro -fno-autolink -ferror-limit 19 -fvisibility=hidden -fvisibility-inlines-hidden -fhip-new-launch-api -fcf-protection=none -fgnuc-version=4.2.1 -fskip-odr-check-in-gmf -fcxx-exceptions -fexceptions -vectorize-loops -vectorize-slp -mllvm -amdgpu-early-inline-all=true -mllvm -amdgpu-function-calls=false -cuid=8d95fecd3e8cb37 -fcuda-allow-variadic-functions -faddrsig -D__GCC_HAVE_DWARF2_CFI_ASM=1 -o /tmp/rocsparse_coosort-gfx1201-f68f28.o -x hip /home/aphid/src/rocm/14_sparse/rocSPARSE/library/src/conversion/rocsparse_coosort.cpp 1. parser at end of file 2. Code generation 3. Running pass 'CallGraph Pass Manager' on module '/home/aphid/src/rocm/14_sparse/rocSPARSE/library/src/conversion/rocsparse_coosort.cpp'. 4. Running pass 'AMDGPU DAG->DAG Pattern Instruction Selection' on function '@_ZN7rocprim6detail28segmented_sort_medium_kernelINS0_35wrapped_segmented_radix_sort_configINS_27segmented_radix_sort_configILj7ELj4ENS_13kernel_configILj256ELj16ELj4294967295EEENS_14WarpSortConfigILj8ELj8ELj256ELj5ELj16ELj16ELj256EEELb1EEElNS_10empty_typeEEELb0EPlSB_PS9_SC_PjSB_EEvT1_PNSt15iterator_traitsISE_E10value_typeET2_T3_PNSF_ISK_E10value_typeET4_bjT5_T6_SQ_jj' #0 0x00005783c68e256c llvm::sys::PrintStackTrace(llvm::raw_ostream&, int) /home/aphid/src/rocm/02_llvm/llvm-project/llvm/lib/Support/Unix/Signals.inc:723:22 #1 0x00005783c68df5fb llvm::sys::RunSignalHandlers() /home/aphid/src/rocm/02_llvm/llvm-project/llvm/lib/Support/Signals.cpp:105:20 #2 0x00005783c68df5fb SignalHandler(int) /home/aphid/src/rocm/02_llvm/llvm-project/llvm/lib/Support/Unix/Signals.inc:403:31 #3 0x0000705708a50ae0 (/usr/lib64/libc.so.6+0x3cae0) #4 0x0000705708aa8e44 (/usr/lib64/libc.so.6+0x94e44) #5 0x0000705708a50a30 raise (/usr/lib64/libc.so.6+0x3ca30) #6 0x0000705708a384c3 abort (/usr/lib64/libc.so.6+0x244c3) #7 0x0000705708a39354 (/usr/lib64/libc.so.6+0x25354) #8 0x0000705708ab3085 (/usr/lib64/libc.so.6+0x9f085) #9 0x0000705708ab331c (/usr/lib64/libc.so.6+0x9f31c) #10 0x0000705708ab7dfa cfree (/usr/lib64/libc.so.6+0xa3dfa) #11 0x00005783c4cf7994 llvm::SITargetLowering::requiresUniformRegister(llvm::MachineFunction&, llvm::Value const*) const /home/aphid/src/rocm/02_llvm/llvm-project/llvm/lib/Target/AMDGPU/SIISelLowering.cpp:16680:0 #12 0x00005783c7afc449 llvm::FunctionLoweringInfo::CreateRegs(llvm::Value const*) /home/aphid/src/rocm/02_llvm/llvm-project/llvm/lib/CodeGen/SelectionDAG/FunctionLoweringInfo.cpp:400:60 #13 0x00005783c7afc449 llvm::FunctionLoweringInfo::InitializeRegForValue(llvm::Value const*) /home/aphid/src/rocm/02_llvm/llvm-project/llvm/lib/CodeGen/SelectionDAG/FunctionLoweringInfo.cpp:411:24 #14 0x00005783c7b0154b llvm::FunctionLoweringInfo::set(llvm::Function const&, llvm::MachineFunction&, llvm::SelectionDAG*) /home/aphid/src/rocm/02_llvm/llvm-project/llvm/lib/CodeGen/SelectionDAG/FunctionLoweringInfo.cpp:231:7 #15 0x00005783c7c43bd0 llvm::SelectionDAGISel::runOnMachineFunction(llvm::MachineFunction&) /home/aphid/src/rocm/02_llvm/llvm-project/llvm/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp:598:3 #16 0x00005783c7c2d333 llvm::OptLevelChanger::~OptLevelChanger() /home/aphid/src/rocm/02_llvm/llvm-project/llvm/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp:268:11 #17 0x00005783c7c2d333 llvm::SelectionDAGISelLegacy::runOnMachineFunction(llvm::MachineFunction&) /home/aphid/src/rocm/02_llvm/llvm-project/llvm/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp:375:1 #18 0x00005783c7c2d333 llvm::SelectionDAGISelLegacy::runOnMachineFunction(llvm::MachineFunction&) /home/aphid/src/rocm/02_llvm/llvm-project/llvm/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp:346:6 #19 0x00005783c5b39830 llvm::MachineFunctionPass::runOnFunction(llvm::Function&) (.part.0) /home/aphid/src/rocm/02_llvm/llvm-project/llvm/lib/CodeGen/MachineFunctionPass.cpp:94:33 #20 0x00005783c61d9818 llvm::FPPassManager::runOnFunction(llvm::Function&) /home/aphid/src/rocm/02_llvm/llvm-project/llvm/lib/IR/LegacyPassManager.cpp:1440:40 #21 0x00005783c56eb167 RunPassOnSCC /home/aphid/src/rocm/02_llvm/llvm-project/llvm/lib/Analysis/CallGraphSCCPass.cpp:180:17 #22 0x00005783c56eb167 RunAllPassesOnSCC /home/aphid/src/rocm/02_llvm/llvm-project/llvm/lib/Analysis/CallGraphSCCPass.cpp:470:21 #23 0x00005783c56eb167 (anonymous namespace)::CGPassManager::runOnModule(llvm::Module&) /home/aphid/src/rocm/02_llvm/llvm-project/llvm/lib/Analysis/CallGraphSCCPass.cpp:535:35 #24 0x00005783c61da677 runOnModule /home/aphid/src/rocm/02_llvm/llvm-project/llvm/lib/IR/LegacyPassManager.cpp:1562:7 #25 0x00005783c61da677 llvm::legacy::PassManagerImpl::run(llvm::Module&) /home/aphid/src/rocm/02_llvm/llvm-project/llvm/lib/IR/LegacyPassManager.cpp:541:55 #26 0x00005783c6b99232 llvm::TimeTraceScope::~TimeTraceScope() /home/aphid/src/rocm/02_llvm/llvm-project/llvm/include/llvm/Support/TimeProfiler.h:168:37 #27 0x00005783c6b99232 RunCodegenPipeline /home/aphid/src/rocm/02_llvm/llvm-project/clang/lib/CodeGen/BackendUtil.cpp:1158:3 #28 0x00005783c6b99232 EmitAssembly /home/aphid/src/rocm/02_llvm/llvm-project/clang/lib/CodeGen/BackendUtil.cpp:1180:21 #29 0x00005783c6b99232 clang::EmitBackendOutput(clang::DiagnosticsEngine&, clang::HeaderSearchOptions const&, clang::CodeGenOptions const&, clang::TargetOptions const&, clang::LangOptions const&, llvm::StringRef, llvm::Module*, clang::BackendAction, llvm::IntrusiveRefCntPtr, std::unique_ptr>, clang::BackendConsumer*) /home/aphid/src/rocm/02_llvm/llvm-project/clang/lib/CodeGen/BackendUtil.cpp:1341:25 #30 0x00005783c723a43d llvm::IntrusiveRefCntPtr::release() /home/aphid/src/rocm/02_llvm/llvm-project/llvm/include/llvm/ADT/IntrusiveRefCntPtr.h:232:9 #31 0x00005783c723a43d llvm::IntrusiveRefCntPtr::~IntrusiveRefCntPtr() /home/aphid/src/rocm/02_llvm/llvm-project/llvm/include/llvm/ADT/IntrusiveRefCntPtr.h:196:34 #32 0x00005783c723a43d clang::BackendConsumer::HandleTranslationUnit(clang::ASTContext&) /home/aphid/src/rocm/02_llvm/llvm-project/clang/lib/CodeGen/CodeGenAction.cpp:355:20 #33 0x00005783c8f8267c clang::ParseAST(clang::Sema&, bool, bool) /home/aphid/src/rocm/02_llvm/llvm-project/clang/lib/Parse/ParseAST.cpp:176:34 #34 0x00005783c752a209 clang::FrontendAction::Execute() /home/aphid/src/rocm/02_llvm/llvm-project/clang/lib/Frontend/FrontendAction.cpp:1078:21 #35 0x00005783c74ab63e llvm::Error::getPtr() const /home/aphid/src/rocm/02_llvm/llvm-project/llvm/include/llvm/Support/Error.h:279:51 #36 0x00005783c74ab63e llvm::Error::operator bool() /home/aphid/src/rocm/02_llvm/llvm-project/llvm/include/llvm/Support/Error.h:242:22 #37 0x00005783c74ab63e clang::CompilerInstance::ExecuteAction(clang::FrontendAction&) /home/aphid/src/rocm/02_llvm/llvm-project/clang/lib/Frontend/CompilerInstance.cpp:1061:42 #38 0x00005783c760a81f std::__shared_ptr::get() const /usr/include/c++/14.1.1/bits/shared_ptr_base.h:1667:16 #39 0x00005783c760a81f std::__shared_ptr_access::_M_get() const /usr/include/c++/14.1.1/bits/shared_ptr_base.h:1364:69 #40 0x00005783c760a81f std::__shared_ptr_access::operator*() const /usr/include/c++/14.1.1/bits/shared_ptr_base.h:1350:2 #41 0x00005783c760a81f clang::CompilerInvocation::getFrontendOpts() /home/aphid/src/rocm/02_llvm/llvm-project/clang/include/clang/Frontend/CompilerInvocation.h:259:48 #42 0x00005783c760a81f clang::CompilerInstance::getFrontendOpts() /home/aphid/src/rocm/02_llvm/llvm-project/clang/include/clang/Frontend/CompilerInstance.h:312:39 #43 0x00005783c760a81f clang::ExecuteCompilerInvocation(clang::CompilerInstance*) /home/aphid/src/rocm/02_llvm/llvm-project/clang/lib/FrontendTool/ExecuteCompilerInvocation.cpp:281:29 #44 0x00005783c4af9277 cc1_main(llvm::ArrayRef, char const*, void*) /home/aphid/src/rocm/02_llvm/llvm-project/clang/tools/driver/cc1_main.cpp:276:40 #45 0x00005783c4af21c0 ExecuteCC1Tool(llvm::SmallVectorImpl&, llvm::ToolContext const&) /home/aphid/src/rocm/02_llvm/llvm-project/clang/tools/driver/driver.cpp:231:20 #46 0x00005783c4af48ef clang_main(int, char**, llvm::ToolContext const&) /home/aphid/src/rocm/02_llvm/llvm-project/clang/tools/driver/driver.cpp:272:26 #47 0x00005783c49f5814 main /home/aphid/src/rocm/02_llvm/llvm-project/tools/clang/tools/driver/clang-driver.cpp:18:1 #48 0x0000705708a39c88 (/usr/lib64/libc.so.6+0x25c88) #49 0x0000705708a39d4c __libc_start_main (/usr/lib64/libc.so.6+0x25d4c) #50 0x00005783c4af17c5 _start (/opt/rocm/lib/llvm/bin/clang-19+0xe5a7c5) clang: error: unable to execute command: Aborted (core dumped) clang: error: unable to execute command: Aborted (core dumped) clang: error: clang frontend command failed due to signal (use -v to see invocation) clang: error: clang frontend command failed due to signal (use -v to see invocation) clang: error: clang frontend command failed due to signal (use -v to see invocation) clang: error: clang frontend command failed due to signal (use -v to see invocation) clang: error: clang frontend command failed due to signal (use -v to see invocation) clang: error: clang frontend command failed due to signal (use -v to see invocation) clang version 19.0.0git (https://github.com/ROCm/llvm-project ccc83cb2ec5984de27102a8f0ce4f7f356105ed9) Target: x86_64-unknown-linux-gnu Thread model: posix InstalledDir: /opt/rocm/lib/llvm/bin Build config: +assertions clang: note: diagnostic msg: Error generating preprocessed source(s). ninja: build stopped: subcommand failed.