<html>
<head>
<base href="https://llvm.org/bugs/" />
</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 --- - __chkstk call in function prologue is too far away"
href="https://llvm.org/bugs/show_bug.cgi?id=23368">23368</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>__chkstk call in function prologue is too far away
</td>
</tr>
<tr>
<th>Product</th>
<td>new-bugs
</td>
</tr>
<tr>
<th>Version</th>
<td>3.6
</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>new bugs
</td>
</tr>
<tr>
<th>Assignee</th>
<td>unassignedbugs@nondot.org
</td>
</tr>
<tr>
<th>Reporter</th>
<td>nick@indigorenderer.com
</td>
</tr>
<tr>
<th>CC</th>
<td>llvmbugs@cs.uiuc.edu
</td>
</tr>
<tr>
<th>Classification</th>
<td>Unclassified
</td>
</tr></table>
<p>
<div>
<pre>Created <span class=""><a href="attachment.cgi?id=14267" name="attach_14267" title="IR">attachment 14267</a> <a href="attachment.cgi?id=14267&action=edit" title="IR">[details]</a></span>
IR
On Windows x64, while JITing some code, there is a problem if more than 4K is
allocated on the stack. In this case X86FrameLowering::getStackProbeFunction()
is called, and a call to __chkstk is emitted.
However, the memory address of __chkstk is very high in the memory space, e.g.
0x000007f8bc432590.
As a result the assertion
assert(RealOffset <= INT32_MAX && RealOffset >= INT32_MIN);
fails in RuntimeDyldELF.cpp, line 271.
I have attached some IR and also assembly.</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>