[LLVMdev] Invalid or unaligned stack exception on Windows

Dibyendu Majumdar mobile at majumdar.org.uk
Sat Apr 25 15:07:33 PDT 2015


I have an example test program (smallest I could construct) that
triggers the problem. The relevant line is commented in the code.

https://github.com/dibyendumajumdar/ravi/tree/master/ravi-tests/longjmp_issue

I have also dumped the IR for the three functions that are compiled.

The C code that does the longjmp and setjmp is at:

https://github.com/dibyendumajumdar/ravi/blob/master/src/ldo.c

See functions luaD_throw() and luaD_rawrunprotected()



More information about the llvm-dev mailing list