<html>
<head>
<base href="https://bugs.llvm.org/">
</head>
<body><table border="1" cellspacing="0" cellpadding="8">
<tr>
<th>Bug ID</th>
<td><a class="bz_bug_link
bz_status_NEW "
title="NEW - [CRASH REPORT] lli.exe craches on i686 while it runs fine on x86_64 ll code"
href="https://bugs.llvm.org/show_bug.cgi?id=49272">49272</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>[CRASH REPORT] lli.exe craches on i686 while it runs fine on x86_64 ll code
</td>
</tr>
<tr>
<th>Product</th>
<td>tools
</td>
</tr>
<tr>
<th>Version</th>
<td>11.0
</td>
</tr>
<tr>
<th>Hardware</th>
<td>PC
</td>
</tr>
<tr>
<th>OS</th>
<td>Windows NT
</td>
</tr>
<tr>
<th>Status</th>
<td>NEW
</td>
</tr>
<tr>
<th>Severity</th>
<td>normal
</td>
</tr>
<tr>
<th>Priority</th>
<td>P
</td>
</tr>
<tr>
<th>Component</th>
<td>lli
</td>
</tr>
<tr>
<th>Assignee</th>
<td>unassignedbugs@nondot.org
</td>
</tr>
<tr>
<th>Reporter</th>
<td>francis.andre.kampbell@orange.fr
</td>
</tr>
<tr>
<th>CC</th>
<td>llvm-bugs@lists.llvm.org
</td>
</tr></table>
<p>
<div>
<pre>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 <a href="https://bugs.llvm.org/">https://bugs.llvm.org/</a> 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
}</pre>
</div>
</p>
<hr>
<span>You are receiving this mail because:</span>
<ul>
<li>You are on the CC list for the bug.</li>
</ul>
</body>
</html>