| Issue |
178211
|
| Summary |
mlir-opt --convert-to-llvm crashes on memref.generic_atomic_rmw
|
| Labels |
|
| Assignees |
|
| Reporter |
mlirBug
|
mlir-opt version: 22.1.0-rc1
The crash is triggered while processing a `memref.generic_atomic_rmw` operation. During lowering to LLVM IR, the pass accesses an internal SmallVector out of bounds, causing a hard assertion failure.
```
mlir-opt --convert-to-llvm test.mlir
```
```
mlir-opt: llvm-project-llvmorg-22.1.0-rc1/llvm/include/llvm/ADT/SmallVector.h:297: T& llvm::SmallVectorTemplateCommon<T, <template-parameter-1-2> >::operator[](size_type) [with T = long int; <template-parameter-1-2> = void; reference = long int&; size_type = long unsigned int]: Assertion `idx < size()' failed.
PLEASE submit a bug report to https://github.com/llvm/llvm-project/issues/ and include the crash backtrace and instructions to reproduce the bug.
Stack dump:
0. Program arguments: llvmorg-22.1.0-install/bin/mlir-opt --convert-to-llvm test.mlir
#0 0x00005e39c7710e32 llvm::sys::PrintStackTrace(llvm::raw_ostream&, int) (llvmorg-22.1.0-install/bin/mlir-opt+0x252fe32)
#1 0x00005e39c770d5af llvm::sys::RunSignalHandlers() (llvmorg-22.1.0-install/bin/mlir-opt+0x252c5af)
#2 0x00005e39c770d6fc SignalHandler(int, siginfo_t*, void*) Signals.cpp:0:0
#3 0x00007e1ef6445330 (/lib/x86_64-linux-gnu/libc.so.6+0x45330)
#4 0x00007e1ef649eb2c __pthread_kill_implementation ./nptl/pthread_kill.c:44:76
#5 0x00007e1ef649eb2c __pthread_kill_internal ./nptl/pthread_kill.c:78:10
#6 0x00007e1ef649eb2c pthread_kill ./nptl/pthread_kill.c:89:10
#7 0x00007e1ef644527e raise ./signal/../sysdeps/posix/raise.c:27:6
#8 0x00007e1ef64288ff abort ./stdlib/abort.c:81:7
#9 0x00007e1ef642881b _nl_load_domain ./intl/loadmsgcat.c:1177:9
#10 0x00007e1ef643b517 (/lib/x86_64-linux-gnu/libc.so.6+0x3b517)
```
_______________________________________________
llvm-bugs mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs