llvm / llvm-project

The LLVM Project is a collection of modular and reusable compiler and toolchain technologies.
http://llvm.org
Other
27.86k stars 11.48k forks source link

Corrupted double-linked list #95824

Open amukh1 opened 2 months ago

amukh1 commented 2 months ago

image

I was running some code and uh I got this error and it said to submit a bug report - idk what went wrong with it or anything but this is my bug report Also this is llvm-14

I attatched the file I ran with lli and the crash backtrace graphs.ll.txt bt.txt

Stack dump from a second run:

0.      Program arguments: lli graphs.ll
 #0 0x00007f0f5a7ffd01 llvm::sys::PrintStackTrace(llvm::raw_ostream&, int) (/lib/x86_64-linux-gnu/libLLVM-14.so.1+0xe3fd01)
 #1 0x00007f0f5a7fda3e llvm::sys::RunSignalHandlers() (/lib/x86_64-linux-gnu/libLLVM-14.so.1+0xe3da3e)
 #2 0x00007f0f5a800236 (/lib/x86_64-linux-gnu/libLLVM-14.so.1+0xe40236)
 #3 0x00007f0f594a6520 (/lib/x86_64-linux-gnu/libc.so.6+0x42520)
 #4 0x00007f0f594fa9fc pthread_kill (/lib/x86_64-linux-gnu/libc.so.6+0x969fc)
 #5 0x00007f0f594a6476 gsignal (/lib/x86_64-linux-gnu/libc.so.6+0x42476)
 #6 0x00007f0f5948c7f3 abort (/lib/x86_64-linux-gnu/libc.so.6+0x287f3)
 #7 0x00007f0f594ed676 (/lib/x86_64-linux-gnu/libc.so.6+0x89676)
 #8 0x00007f0f59504cfc (/lib/x86_64-linux-gnu/libc.so.6+0xa0cfc)
 #9 0x00007f0f595059a8 (/lib/x86_64-linux-gnu/libc.so.6+0xa19a8)
#10 0x00007f0f59507bdb (/lib/x86_64-linux-gnu/libc.so.6+0xa3bdb)
#11 0x00007f0f59509262 __libc_malloc (/lib/x86_64-linux-gnu/libc.so.6+0xa5262)
#12 0x00007f0f5984298c operator new(unsigned long) (/lib/x86_64-linux-gnu/libstdc++.so.6+0xae98c)
#13 0x00007f0f5c1fca00 (/lib/x86_64-linux-gnu/libLLVM-14.so.1+0x283ca00)
#14 0x00007f0f5c1fc8f9 (/lib/x86_64-linux-gnu/libLLVM-14.so.1+0x283c8f9)
#15 0x00007f0f5c1fb925 (/lib/x86_64-linux-gnu/libLLVM-14.so.1+0x283b925)
#16 0x0000000000418144 runOrcJIT(char const*) (/usr/lib/llvm-14/bin/lli+0x418144)
#17 0x0000000000412cc8 main (/usr/lib/llvm-14/bin/lli+0x412cc8)
#18 0x00007f0f5948dd90 (/lib/x86_64-linux-gnu/libc.so.6+0x29d90)
#19 0x00007f0f5948de40 __libc_start_main (/lib/x86_64-linux-gnu/libc.so.6+0x29e40)
#20 0x000000000040fe15 _start (/usr/lib/llvm-14/bin/lli+0x40fe15)
Aborted
asl commented 2 months ago

Does the issue reproduce with a bit more recent version of LLVM? E.g. LLVM 18?

llvmbot commented 2 months ago

@llvm/issue-subscribers-orcjit

Author: Amukh1 (amukh1)

![image](https://github.com/llvm/llvm-project/assets/85003861/9c811a1f-105f-4b73-826a-436ed0b3650b) I was running some code and uh I got this error and it said to submit a bug report - idk what went wrong with it or anything but this is my bug report Also this is llvm-14 I attatched the file I ran with lli and the crash backtrace [graphs.ll.txt](https://github.com/user-attachments/files/15875314/graphs.ll.txt) [bt.txt](https://github.com/user-attachments/files/15875391/bt.txt) Stack dump from a second run: ``` 0. Program arguments: lli graphs.ll #0 0x00007f0f5a7ffd01 llvm::sys::PrintStackTrace(llvm::raw_ostream&, int) (/lib/x86_64-linux-gnu/libLLVM-14.so.1+0xe3fd01) #1 0x00007f0f5a7fda3e llvm::sys::RunSignalHandlers() (/lib/x86_64-linux-gnu/libLLVM-14.so.1+0xe3da3e) #2 0x00007f0f5a800236 (/lib/x86_64-linux-gnu/libLLVM-14.so.1+0xe40236) #3 0x00007f0f594a6520 (/lib/x86_64-linux-gnu/libc.so.6+0x42520) #4 0x00007f0f594fa9fc pthread_kill (/lib/x86_64-linux-gnu/libc.so.6+0x969fc) #5 0x00007f0f594a6476 gsignal (/lib/x86_64-linux-gnu/libc.so.6+0x42476) #6 0x00007f0f5948c7f3 abort (/lib/x86_64-linux-gnu/libc.so.6+0x287f3) #7 0x00007f0f594ed676 (/lib/x86_64-linux-gnu/libc.so.6+0x89676) #8 0x00007f0f59504cfc (/lib/x86_64-linux-gnu/libc.so.6+0xa0cfc) #9 0x00007f0f595059a8 (/lib/x86_64-linux-gnu/libc.so.6+0xa19a8) #10 0x00007f0f59507bdb (/lib/x86_64-linux-gnu/libc.so.6+0xa3bdb) #11 0x00007f0f59509262 __libc_malloc (/lib/x86_64-linux-gnu/libc.so.6+0xa5262) #12 0x00007f0f5984298c operator new(unsigned long) (/lib/x86_64-linux-gnu/libstdc++.so.6+0xae98c) #13 0x00007f0f5c1fca00 (/lib/x86_64-linux-gnu/libLLVM-14.so.1+0x283ca00) #14 0x00007f0f5c1fc8f9 (/lib/x86_64-linux-gnu/libLLVM-14.so.1+0x283c8f9) #15 0x00007f0f5c1fb925 (/lib/x86_64-linux-gnu/libLLVM-14.so.1+0x283b925) #16 0x0000000000418144 runOrcJIT(char const*) (/usr/lib/llvm-14/bin/lli+0x418144) #17 0x0000000000412cc8 main (/usr/lib/llvm-14/bin/lli+0x412cc8) #18 0x00007f0f5948dd90 (/lib/x86_64-linux-gnu/libc.so.6+0x29d90) #19 0x00007f0f5948de40 __libc_start_main (/lib/x86_64-linux-gnu/libc.so.6+0x29e40) #20 0x000000000040fe15 _start (/usr/lib/llvm-14/bin/lli+0x40fe15) Aborted ```
amukh1 commented 2 months ago

Does the issue reproduce with a bit more recent version of LLVM? E.g. LLVM 18?

uhhh well my project doesn't compile on many of the more recent versions because I wrote it for older ones ;-; sorry