[llvm-bugs] [Bug 49272] New: [CRASH REPORT] lli.exe craches on i686 while it runs fine on x86_64 ll code
via llvm-bugs
llvm-bugs at lists.llvm.org
Fri Feb 19 12:59:11 PST 2021
https://bugs.llvm.org/show_bug.cgi?id=49272
Bug ID: 49272
Summary: [CRASH REPORT] lli.exe craches on i686 while it runs
fine on x86_64 ll code
Product: tools
Version: 11.0
Hardware: PC
OS: Windows NT
Status: NEW
Severity: normal
Priority: P
Component: lli
Assignee: unassignedbugs at nondot.org
Reporter: francis.andre.kampbell at orange.fr
CC: llvm-bugs at lists.llvm.org
Hello
While running lli.exe on test.ll is working fine, I got this stack on the
Win32/x86 lli.exe. test.ll is after the stack dump.
D:\projects\as400\rpg\ll>..\llvm-project\build32\Debug\bin\lli.exe test.ll
PLEASE submit a bug report to https://bugs.llvm.org/ and include the crash
backtrace.
Stack dump:
0. Program arguments: ..\\llvm-project\\build32\\Debug\\bin\\lli.exe
test.ll
#0 0x00000000
#1 0x0105c833 llvm::MCJIT::runFunction(class llvm::Function *, class
llvm::ArrayRef<struct llvm::GenericValue>)
D:\projects\as400\rpg\llvm-project\llvm\lib\ExecutionEngine\MCJIT\MCJIT.cpp:564:0
#2 0x00f79673 llvm::ExecutionEngine::runFunctionAsMain(class llvm::Function *,
class std::vector<class std::basic_string<char, struct std::char_traits<char>,
class std::allocator<char>>, class std::allocator<class std::basic_string<char,
struct std::char_traits<char>, class std::allocator<char>>>> const &, char
const *const *)
D:\projects\as400\rpg\llvm-project\llvm\lib\ExecutionEngine\ExecutionEngine.cpp:467:0
#3 0x003008c5 main
D:\projects\as400\rpg\llvm-project\llvm\tools\lli\lli.cpp:643:0
#4 0x02932013 invoke_main
d:\agent\_work\57\s\src\vctools\crt\vcstartup\src\startup\exe_common.inl:78:0
#5 0x02931e97 _scrt_common_main_seh
d:\agent\_work\57\s\src\vctools\crt\vcstartup\src\startup\exe_common.inl:288:0
#6 0x02931d2d _scrt_common_main
d:\agent\_work\57\s\src\vctools\crt\vcstartup\src\startup\exe_common.inl:331:0
#7 0x02932098 mainCRTStartup
d:\agent\_work\57\s\src\vctools\crt\vcstartup\src\startup\exe_main.cpp:17:0
#8 0x76966359 (C:\WINDOWS\System32\KERNEL32.DLL+0x16359)
#9 0x776e8944 (C:\WINDOWS\SYSTEM32\ntdll.dll+0x68944)
#10 0x776e8914 (C:\WINDOWS\SYSTEM32\ntdll.dll+0x68914)
Below the test.ll code
; ModuleID = 'test.rpgle'
source_filename = "test.rpgle"
target triple = "i686-pc-windows-msvc"
@NBR = common global i64 0
@RESULT = common global i64 0
@pstr = private unnamed_addr constant [5 x i8] c"%lld\0A"
define i32 @main(i32 %0) {
entry:
call void @INZ()
store i64 55, i64* @NBR, align 4
%1 = load i64, i64* @NBR, align 4
%2 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([5 x i8], [5 x
i8]* @pstr, i32 0, i32 0), i64 %1)
ret i32 0
}
declare i32 @printf(i8*, ...)
define void @INZ() {
store i64 8, i64* @NBR, align 4
store i64 0, i64* @RESULT, align 4
ret void
}
--
You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20210219/a4cc487d/attachment.html>
More information about the llvm-bugs
mailing list