Issue |
125512
|
Summary |
lli crashed on simple code
|
Labels |
new issue
|
Assignees |
|
Reporter |
KoVadim
|
I just played with IR and created such simple example. Save it to file with name "crash_hello.ll" and run `lli crash_hello.ll` (in linux console).
```
; ModuleID = 'main'
source_filename = "main"
declare i32 @puts(ptr)
define i32 @main() {
entrypoint:
%0 = call i32 @puts([12 x i8] c"Hello World\00")
ret i32 0
}
```
What I expected: it shows me "Hello World" or says something about an invalid syntax.
What I have:
```
PLEASE submit a bug report to https://github.com/llvm/llvm-project/issues/ and include the crash backtrace.
Stack dump:
0. Program arguments: lli bag/crash_hello.ll
#0 0x00007f03f58bd4e3 llvm::sys::PrintStackTrace(llvm::raw_ostream&, int) /usr/src/debug/llvm-core/llvm-19.1.7/llvm/lib/Support/Unix/Signals.inc:727:3
#1 0x00007f03f58bab14 llvm::sys::RunSignalHandlers() /usr/src/debug/llvm-core/llvm-19.1.7/llvm/lib/Support/Signals.cpp:105:20
#2 0x00007f03f58baf26 SignalHandler /usr/src/debug/llvm-core/llvm-19.1.7/llvm/lib/Support/Unix/Signals.inc:413:1
#3 0x00007f03f487c5a0 __restore_rt libc_sigaction.c:0:0
```
llvm version - 18, 19 and maybe 14-17 too.
_______________________________________________
llvm-bugs mailing list
llvm-bugs@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs