(In reply to Richard Biener from comment #8) > > Well, the compiler doesn't know that lua_touserdata doesn't properly align > the type. Whatever that function does. > > Dropping the aligned attribute is a valid fix (the extra NULL check seems > unrelated to the issue). Is the aligned attribute new compared to the old > sources? > The tree below texk/web2c/luatexdir/luaffi/ is new and therefor ffi.h ... the author(s) seems to work for facebook -> https://github.com/facebook/luaffifb and is based on orignal luaffi from James R. McKaskill and both are licensed with a BSD type of license