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: [email protected]
Reporter: [email protected]
CC: [email protected]
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.
_______________________________________________
LLVMbugs mailing list
[email protected]
http://lists.cs.uiuc.edu/mailman/listinfo/llvmbugs