Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[hipCUB] test_hipcub_iterators.cpp crashes at build time in HipTextureLoweringPass #399

Open
pjaaskel opened this issue Apr 14, 2023 · 0 comments
Labels
bug Something isn't working

Comments

@pjaaskel
Copy link
Collaborator

pjaaskel commented Apr 14, 2023

See #397 for repro steps (except for the test case to build).

0.	Program arguments: /home/pjaaskel/local/stow/llvm-15-cspv-patched-relwdebuginfo/bin/opt /tmp/test_hipcub_iterators-generic-link-740a57.bc -load-pass-plugin /home/pjaaskel/local/stow/chip-spv/lib/llvm/libLLVMHipSpvPasses.so -passes=hip-post-link-passes -o /tmp/test_hipcub_iterators-generic-lower-9860f9.bc
 #0 0x00007f92f9c99d76 llvm::sys::PrintStackTrace(llvm::raw_ostream&, int) /home/pjaaskel/src/llvm-project/llvm/lib/Support/Unix/Signals.inc:569:3
 #1 0x00007f92f9c97df4 llvm::sys::RunSignalHandlers() /home/pjaaskel/src/llvm-project/llvm/lib/Support/Signals.cpp:103:20
 #2 0x00007f92f9c97f96 SignalHandler(int) /home/pjaaskel/src/llvm-project/llvm/lib/Support/Unix/Signals.inc:407:1
 #3 0x00007f92f8c42520 (/lib/x86_64-linux-gnu/libc.so.6+0x42520)
 #4 0x00007f92f8c96a7c __pthread_kill_implementation ./nptl/pthread_kill.c:44:76
 #5 0x00007f92f8c96a7c __pthread_kill_internal ./nptl/pthread_kill.c:78:10
 #6 0x00007f92f8c96a7c pthread_kill ./nptl/pthread_kill.c:89:10
 #7 0x00007f92f8c42476 gsignal ./signal/../sysdeps/posix/raise.c:27:6
 #8 0x00007f92f8c287f3 abort ./stdlib/abort.c:81:7
 #9 0x00007f92f8c2871b _nl_load_domain ./intl/loadmsgcat.c:1177:9
#10 0x00007f92f8c39e96 (/lib/x86_64-linux-gnu/libc.so.6+0x39e96)
#11 0x00007f92f8fa3fc8 (anonymous namespace)::analyze(llvm::Value*, (anonymous namespace)::TextureUseGroup&, std::map<llvm::Value*, (anonymous namespace)::TextureUseGroup*, std::less<llvm::Value*>, std::allocator<std::pair<llvm::Value* const, (anonymous namespace)::TextureUseGroup*>>>&, llvm::Use*) /home/pjaaskel/src/chip-spv/llvm_passes/HipTextureLowering.cpp:203:5
#12 0x00007f92f8fa66f6 (anonymous namespace)::analyze(llvm::Value*, (anonymous namespace)::TextureUseGroup&, std::map<llvm::Value*, (anonymous namespace)::TextureUseGroup*, std::less<llvm::Value*>, std::allocator<std::pair<llvm::Value* const, (anonymous namespace)::TextureUseGroup*>>>&, llvm::Use*)::$_4::operator()(llvm::Value*, bool, bool, llvm::ArrayRef<unsigned int>) const /home/pjaaskel/src/chip-spv/llvm_passes/HipTextureLowering.cpp:179:29
#13 0x00007f92f8fa54af (anonymous namespace)::analyze(llvm::Value*, (anonymous namespace)::TextureUseGroup&, std::map<llvm::Value*, (anonymous namespace)::TextureUseGroup*, std::less<llvm::Value*>, std::allocator<std::pair<llvm::Value* const, (anonymous namespace)::TextureUseGroup*>>>&, llvm::Use*)::$_2::operator()(llvm::Value*, unsigned int) const /home/pjaaskel/src/chip-spv/llvm_passes/HipTextureLowering.cpp:192:3
#14 0x00007f92f8fa41d0 (anonymous namespace)::analyze(llvm::Value*, (anonymous namespace)::TextureUseGroup&, std::map<llvm::Value*, (anonymous namespace)::TextureUseGroup*, std::less<llvm::Value*>, std::allocator<std::pair<llvm::Value* const, (anonymous namespace)::TextureUseGroup*>>>&, llvm::Use*) /home/pjaaskel/src/chip-spv/llvm_passes/HipTextureLowering.cpp:228:5
#15 0x00007f92f8fa2a98 (anonymous namespace)::analyzeTextureObjectUses(llvm::Function&) /home/pjaaskel/src/chip-spv/llvm_passes/HipTextureLowering.cpp:273:24
#16 0x00007f92f8fa24b9 (anonymous namespace)::lowerTextureFunctions(llvm::Module&) /home/pjaaskel/src/chip-spv/llvm_passes/HipTextureLowering.cpp:467:22
#17 0x00007f92f8fa220c HipTextureLoweringPass::run(llvm::Module&, llvm::AnalysisManager<llvm::Module>&) /home/pjaaskel/src/chip-spv/llvm_passes/HipTextureLowering.cpp:492:10
#18 0x00007f92f8f6b544 llvm::detail::PassModel<llvm::Module, HipTextureLoweringPass, llvm::PreservedAnalyses, llvm::AnalysisManager<llvm::Module>>::run(llvm::Module&, llvm::AnalysisManager<llvm::Module>&) /home/pjaaskel/local/stow/llvm-15-cspv-patched-relwdebuginfo/include/llvm/IR/PassManagerInternal.h:88:17
#19 0x00007f92f9e6c181 llvm::SmallPtrSet<void*, 2u>::operator=(llvm::SmallPtrSet<void*, 2u>&&) /home/pjaaskel/src/llvm-project/llvm/include/llvm/ADT/SmallPtrSet.h:489:21
#20 0x00007f92f9e6c181 llvm::PreservedAnalyses::operator=(llvm::PreservedAnalyses&&) /home/pjaaskel/src/llvm-project/llvm/include/llvm/IR/PassManager.h:152:7
#21 0x00007f92f9e6c181 llvm::PassManager<llvm::Module, llvm::AnalysisManager<llvm::Module>>::run(llvm::Module&, llvm::AnalysisManager<llvm::Module>&) /home/pjaaskel/src/llvm-project/llvm/include/llvm/IR/PassManager.h:522:16
#22 0x0000557a71b1e830 llvm::SmallPtrSetImplBase::isSmall() const /home/pjaaskel/src/llvm-project/llvm/include/llvm/ADT/SmallPtrSet.h:195:33
#23 0x0000557a71b1e830 llvm::SmallPtrSetImplBase::~SmallPtrSetImplBase() /home/pjaaskel/src/llvm-project/llvm/include/llvm/ADT/SmallPtrSet.h:83:17
#24 0x0000557a71b1e830 llvm::SmallPtrSetImpl<llvm::AnalysisKey*>::~SmallPtrSetImpl() /home/pjaaskel/src/llvm-project/llvm/include/llvm/ADT/SmallPtrSet.h:344:7
#25 0x0000557a71b1e830 llvm::SmallPtrSet<llvm::AnalysisKey*, 2u>::~SmallPtrSet() /home/pjaaskel/src/llvm-project/llvm/include/llvm/ADT/SmallPtrSet.h:450:7
#26 0x0000557a71b1e830 llvm::PreservedAnalyses::~PreservedAnalyses() /home/pjaaskel/src/llvm-project/llvm/include/llvm/IR/PassManager.h:152:7
#27 0x0000557a71b1e830 llvm::runPassPipeline(llvm::StringRef, llvm::Module&, llvm::TargetMachine*, llvm::TargetLibraryInfoImpl*, llvm::ToolOutputFile*, llvm::ToolOutputFile*, llvm::ToolOutputFile*, llvm::StringRef, llvm::ArrayRef<llvm::StringRef>, llvm::ArrayRef<llvm::PassPlugin>, llvm::opt_tool::OutputKind, llvm::opt_tool::VerifierKind, bool, bool, bool, bool, bool, bool) /home/pjaaskel/src/llvm-project/llvm/tools/opt/NewPMDriver.cpp:525:10
#28 0x0000557a71b116fb llvm::SmallVectorTemplateCommon<llvm::StringRef, void>::begin() /home/pjaaskel/src/llvm-project/llvm/include/llvm/ADT/SmallVector.h:249:45
#29 0x0000557a71b116fb llvm::SmallVectorTemplateCommon<llvm::StringRef, void>::end() /home/pjaaskel/src/llvm-project/llvm/include/llvm/ADT/SmallVector.h:251:32
#30 0x0000557a71b116fb llvm::SmallVector<llvm::StringRef, 4u>::~SmallVector() /home/pjaaskel/src/llvm-project/llvm/include/llvm/ADT/SmallVector.h:1192:24
#31 0x0000557a71b116fb main /home/pjaaskel/src/llvm-project/llvm/tools/opt/opt.cpp:790:3
#32 0x00007f92f8c29d90 __libc_start_call_main ./csu/../sysdeps/nptl/libc_start_call_main.h:58:16
#33 0x00007f92f8c29e40 call_init ./csu/../csu/libc-start.c:128:20
#34 0x00007f92f8c29e40 __libc_start_main ./csu/../csu/libc-start.c:379:5
#35 0x0000557a71b11db5 _start (/home/pjaaskel/local/stow/llvm-15-cspv-patched-relwdebuginfo/bin/opt+0x1ddb5)

rocPRIM test_texture_cache_iterator build fails also due to this.

@pvelesko pvelesko added the bug Something isn't working label May 4, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants