Issue 208711
Summary [clang][driver] clang crash in spirv64v1.3
Labels clang
Assignees
Reporter hongtaihu
    This input is generated by a fuzzer.

https://godbolt.org/z/cETrWGdqW

It is not related to the source code 
```
 --target=spirv64v1.3-unknown-chipstar 
```
stacktrace:
```
clang++: /root/llvm-project/llvm/tools/clang/lib/Driver/ToolChains/HIPSPV.h:55: virtual const llvm::Triple* clang::driver::toolchains::HIPSPVToolChain::getAuxTriple() const: Assertion `HostTC' failed.
PLEASE submit a bug report to https://github.com/llvm/llvm-project/issues/ and include the crash backtrace and dumped files.
Stack dump:
0.	Program arguments: /opt/compiler-explorer/clang-assertions-trunk/bin/clang++ -g -o /app/output.s -mllvm --x86-asm-syntax=intel -fno-verbose-asm -S --gcc-toolchain=/opt/compiler-explorer/gcc-snapshot -fcolor-diagnostics -fno-crash-diagnostics --target=spirv64v1.3-unknown-chipstar -std=c++26 <source>
1.	Compilation construction
2.	Building compilation jobs
3.	Building compilation jobs
 #0 0x00000000043a5108 llvm::sys::PrintStackTrace(llvm::raw_ostream&, int) (/opt/compiler-explorer/clang-assertions-trunk/bin/clang+++0x43a5108)
 #1 0x00000000043a1fc4 llvm::sys::RunSignalHandlers() (/opt/compiler-explorer/clang-assertions-trunk/bin/clang+++0x43a1fc4)
 #2 0x00000000043a213a SignalHandler(int, siginfo_t*, void*) Signals.cpp:0:0
 #3 0x00000000043a21d8 SignalHandlerTerminate(int, siginfo_t*, void*) Signals.cpp:0:0
 #4 0x00007da78d045330 (/lib/x86_64-linux-gnu/libc.so.6+0x45330)
 #5 0x00007da78d09eb2c pthread_kill (/lib/x86_64-linux-gnu/libc.so.6+0x9eb2c)
 #6 0x00007da78d04527e raise (/lib/x86_64-linux-gnu/libc.so.6+0x4527e)
 #7 0x00007da78d0288ff abort (/lib/x86_64-linux-gnu/libc.so.6+0x288ff)
 #8 0x00007da78d02881b (/lib/x86_64-linux-gnu/libc.so.6+0x2881b)
 #9 0x00007da78d03b517 (/lib/x86_64-linux-gnu/libc.so.6+0x3b517)
#10 0x0000000005065131 (/opt/compiler-explorer/clang-assertions-trunk/bin/clang+++0x5065131)
#11 0x0000000004fb9eae clang::driver::tools::Clang::ConstructJob(clang::driver::Compilation&, clang::driver::JobAction const&, clang::driver::InputInfo const&, llvm::SmallVector<clang::driver::InputInfo, 4u> const&, llvm::opt::ArgList const&, char const*) const (/opt/compiler-explorer/clang-assertions-trunk/bin/clang+++0x4fb9eae)
#12 0x0000000004ef6a8c clang::driver::Driver::BuildJobsForActionNoCache(clang::driver::Compilation&, clang::driver::Action const*, clang::driver::ToolChain const*, clang::BoundArch, bool, bool, char const*, std::map<std::pair<clang::driver::Action const*, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>>, llvm::SmallVector<clang::driver::InputInfo, 4u>, std::less<std::pair<clang::driver::Action const*, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>>>, std::allocator<std::pair<std::pair<clang::driver::Action const*, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>> const, llvm::SmallVector<clang::driver::InputInfo, 4u>>>>&, clang::driver::Action::OffloadKind) const (/opt/compiler-explorer/clang-assertions-trunk/bin/clang+++0x4ef6a8c)
#13 0x0000000004ef7bc0 clang::driver::Driver::BuildJobsForAction(clang::driver::Compilation&, clang::driver::Action const*, clang::driver::ToolChain const*, clang::BoundArch, bool, bool, char const*, std::map<std::pair<clang::driver::Action const*, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>>, llvm::SmallVector<clang::driver::InputInfo, 4u>, std::less<std::pair<clang::driver::Action const*, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>>>, std::allocator<std::pair<std::pair<clang::driver::Action const*, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>> const, llvm::SmallVector<clang::driver::InputInfo, 4u>>>>&, clang::driver::Action::OffloadKind) const (/opt/compiler-explorer/clang-assertions-trunk/bin/clang+++0x4ef7bc0)
#14 0x0000000004ef864e clang::driver::Driver::BuildJobs(clang::driver::Compilation&) const (/opt/compiler-explorer/clang-assertions-trunk/bin/clang+++0x4ef864e)
#15 0x0000000004f0b5c6 clang::driver::Driver::BuildCompilation(llvm::ArrayRef<char const*>) (/opt/compiler-explorer/clang-assertions-trunk/bin/clang+++0x4f0b5c6)
#16 0x0000000000dadbc4 clang_main(int, char**, llvm::ToolContext const&) (/opt/compiler-explorer/clang-assertions-trunk/bin/clang+++0xdadbc4)
#17 0x0000000000ccafea main (/opt/compiler-explorer/clang-assertions-trunk/bin/clang+++0xccafea)
#18 0x00007da78d02a1ca (/lib/x86_64-linux-gnu/libc.so.6+0x2a1ca)
#19 0x00007da78d02a28b __libc_start_main (/lib/x86_64-linux-gnu/libc.so.6+0x2a28b)
#20 0x0000000000da8b05 _start (/opt/compiler-explorer/clang-assertions-trunk/bin/clang+++0xda8b05)
Program terminated with signal: SIGSEGV
Compiler returned: 139
```
_______________________________________________
llvm-bugs mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs

Reply via email to