lua-users home
lua-l archive

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


Thanks for your comment.

As your explanation, pcall should check wheter the first argument is function or not. That's good point for precise type check. However such fix cannot solve the stack overflow problem I show, because luaL_checktype is also use LUAI_THROW macro internally, to handle error. It means that the value of nCcalls will be reset during error handling as I analyze in main post.

I don't know why the crash code not works in your environment, by the way.
Instead, for convenience, I create a docker file for someone to test this crash.
Please use this environment if you cannot reproduce the error.

Docker github URL:
https://github.com/Lua-Project/lua5.4.4-stackoverflow

-- Regards, JIHOI.