> In the second case when I compile LuaLaTeX file called > LuaBasic_test.tex, it crashes ... Here it worked if I add a redundant one byte in LuaBasic.c: typedef struct { LUA_NUMBER val[4]; } matrix; Best, Akira