lua-users home
lua-l archive

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


It seems like a bug of luaV_settable of version 5.1.4, and works fine under 5.1.5

Thanks for help.




在 2015年9月17日,下午6:32,Luiz Henrique de Figueiredo <lhf@tecgraf.puc-rio.br> 写道:

The luaL_register will crash when the number of registered libs is bigger than a threshold, 43 for my test.

Each luaL_register is probably leaving a value on the Lua-C stack and so
what you're seeing is a stack overflow.

If you need to do this, you need to reserve enough space for the stack
by calling lua_checkstack or luaL_checkstack.