lua-users home
lua-l archive

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]


Compiling lua 5.0.2 with mingw 3.4.4.

If I compile lua with -fomit-frame-pointer then lua's error handler crashes:

ettv.exe caused an Access Violation at location 7800bd65 in module MSVCRT.DLL Reading from location 0000000e.

Registers:
eax=20098f27 ebx=7803dc64 ecx=0022ffe0 edx=0022e6c0 esi=0022ffe0 edi=0022dc60
eip=7800bd65 esp=0022db6c ebp=00000006 iopl=0         nv up ei pl nz na pe nc
cs=001b  ss=0023  ds=0023  es=0023  fs=003b  gs=0000             efl=00000202

Call stack:
7800BD65  MSVCRT.DLL:7800BD65  void (__cdecl*__cdecl _set_se_translator(void (__cdecl*)(unsigned int,struct _EXCEPTION_POINTERS *)))(unsigned int,struct _EXCEPTION_POINTERS *)

If I compile with frame pointers enabled (the _only_ change!) then lua's error handler works perfectly:

[string "ETProStuffPlug.lua"]:23: error loading package `DebugLib' (D:\Wolfenstein - Enemy Territory\etpro\DebugLib.lua:64: `}' expected (to close `{' at line 34) near `[')

However -- linux works perfectly fine with -fomit-frame-pointer !

Is this a lua bug, a mingw bug, or what?

-Dan