[LLVMbugs] [Bug 23368] New: __chkstk call in function prologue is too far away

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Tue Apr 28 15:15:34 PDT 2015


https://llvm.org/bugs/show_bug.cgi?id=23368

            Bug ID: 23368
           Summary: __chkstk call in function prologue is too far away
           Product: new-bugs
           Version: 3.6
          Hardware: PC
                OS: Windows NT
            Status: NEW
          Severity: normal
          Priority: P
         Component: new bugs
          Assignee: unassignedbugs at nondot.org
          Reporter: nick at indigorenderer.com
                CC: llvmbugs at cs.uiuc.edu
    Classification: Unclassified

Created attachment 14267
  --> https://llvm.org/bugs/attachment.cgi?id=14267&action=edit
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.

-- 
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/20150428/aa70bbaa/attachment.html>


More information about the llvm-bugs mailing list