lua-users home
lua-l archive

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


On 07/22/2011 03:48 PM, Shmuel Zeigerman wrote:
Even with no other libraries, ffi.dll (built from GIT head) segfaults
when running test.lua. What's odd, when I rename test.lua to
test_modif.lua, it runs OK. The reason (I think) - my lua5.1.dll and
lua.exe are built with MinGW.


You may need this patch. (I sent James a mail, but it may have gotten nulled.)

diff --git a/ffi.c b/ffi.c
index 4e9f1df..98e326a 100644
--- a/ffi.c
+++ b/ffi.c
@@ -1699,6 +1699,7 @@ static const luaL_Reg cmodule_mt[] = {

 static const luaL_Reg jit_mt[] = {
     {"__gc", &jit_gc},
+    {NULL, NULL}
 };


--
- tom
telliamed@whoopdedo.org