Search code examples
luasegmentation-faultluajit

Luajit segfault on module loading


I currently have a problem where Lua5.1/Lua5.2 can load & use a module, but LuaJIT can't. This is strange, since LuaJIT should be ABI-compatible to Lua, right?

How could I fix this?

The module: https://github.com/gabrield/v4l-lua


Solution

  • I solved it by simply removing the settable line in v4l_lua.c (line). Thanks to @Youka, @siffiejoe and @Etan-Reisner for the suggestion!

    I wonder though why Lua loaded the module without even a warning(And have it working to!)