[llvm] [llvm] Fix assertion error where we didn't check fixed point types. (PR #80757)

Vladimir Vereschaka via llvm-commits llvm-commits at lists.llvm.org
Fri Feb 16 13:49:22 PST 2024


vvereschaka wrote:

@PiJoules,

it breaks at least four builders
* https://lab.llvm.org/buildbot/#/builders/235/builds/5465
* https://lab.llvm.org/buildbot/#/builders/233/builds/7028
* https://lab.llvm.org/buildbot/#/builders/232/builds/19519
* https://lab.llvm.org/buildbot/#/builders/234/builds/19532

```
Program aborted due to an unhandled Error:
createMCCodeEmitter failed
PLEASE submit a bug report to https://github.com/llvm/llvm-project/issues/ and include the crash backtrace.
Stack dump:
0.	Program arguments: /home/buildbot/worker/as-builder-7/ramdisk/llvm-nvptx64-nvidia-ubuntu/build/bin/llc /home/buildbot/worker/as-builder-7/ramdisk/llvm-nvptx64-nvidia-ubuntu/llvm-project/llvm/test/DebugInfo/fixed-point.ll -filetype=obj -o -
 #0 0x00007ff0f75fefb0 llvm::sys::PrintStackTrace(llvm::raw_ostream&, int) (/home/buildbot/worker/as-builder-7/ramdisk/llvm-nvptx64-nvidia-ubuntu/build/lib/libLLVMSupport.so.19git+0x1dafb0)
 #1 0x00007ff0f75fc3bf llvm::sys::RunSignalHandlers() (/home/buildbot/worker/as-builder-7/ramdisk/llvm-nvptx64-nvidia-ubuntu/build/lib/libLLVMSupport.so.19git+0x1d83bf)
 #2 0x00007ff0f75fc515 SignalHandler(int) Signals.cpp:0:0
 #3 0x00007ff0f6c42520 (/lib/x86_64-linux-gnu/libc.so.6+0x42520)
 #4 0x00007ff0f6c969fc __pthread_kill_implementation ./nptl/pthread_kill.c:44:76
 #5 0x00007ff0f6c969fc __pthread_kill_internal ./nptl/pthread_kill.c:78:10
 #6 0x00007ff0f6c969fc pthread_kill ./nptl/pthread_kill.c:89:10
 #7 0x00007ff0f6c42476 gsignal ./signal/../sysdeps/posix/raise.c:27:6
 #8 0x00007ff0f6c287f3 abort ./stdlib/abort.c:81:7
 #9 0x00007ff0f751727b llvm::Error::fatalUncheckedError() const (/home/buildbot/worker/as-builder-7/ramdisk/llvm-nvptx64-nvidia-ubuntu/build/lib/libLLVMSupport.so.19git+0xf327b)
#10 0x00007ff0f93866d8 llvm::LLVMTargetMachine::addAsmPrinter(llvm::legacy::PassManagerBase&, llvm::raw_pwrite_stream&, llvm::raw_pwrite_stream*, llvm::CodeGenFileType, llvm::MCContext&) (/home/buildbot/worker/as-builder-7/ramdisk/llvm-nvptx64-nvidia-ubuntu/build/lib/libLLVMCodeGen.so.19git+0x30d6d8)
#11 0x00007ff0f9386825 llvm::LLVMTargetMachine::addPassesToEmitFile(llvm::legacy::PassManagerBase&, llvm::raw_pwrite_stream&, llvm::raw_pwrite_stream*, llvm::CodeGenFileType, bool, llvm::MachineModuleInfoWrapperPass*) (/home/buildbot/worker/as-builder-7/ramdisk/llvm-nvptx64-nvidia-ubuntu/build/lib/libLLVMCodeGen.so.19git+0x30d825)
#12 0x00005654e6bd07a0 compileModule(char**, llvm::LLVMContext&) llc.cpp:0:0
#13 0x00005654e6bc6336 main (/home/buildbot/worker/as-builder-7/ramdisk/llvm-nvptx64-nvidia-ubuntu/build/bin/llc+0xf336)
#14 0x00007ff0f6c29d90 __libc_start_call_main ./csu/../sysdeps/nptl/libc_start_call_main.h:58:16
#15 0x00007ff0f6c29e40 call_init ./csu/../csu/libc-start.c:128:20
#16 0x00007ff0f6c29e40 __libc_start_main ./csu/../csu/libc-start.c:379:5
#17 0x00005654e6bc6e95 _start (/home/buildbot/worker/as-builder-7/ramdisk/llvm-nvptx64-nvidia-ubuntu/build/bin/llc+0xfe95)
error: -: The file was not recognized as a valid object file
FileCheck error: '<stdin>' is empty.
FileCheck command line:  /home/buildbot/worker/as-builder-7/ramdisk/llvm-nvptx64-nvidia-ubuntu/build/bin/FileCheck /home/buildbot/worker/as-builder-7/ramdisk/llvm-nvptx64-nvidia-ubuntu/llvm-project/llvm/test/DebugInfo/fixed-point.ll
```
there is the same for win builds too.


https://github.com/llvm/llvm-project/pull/80757


More information about the llvm-commits mailing list