[Date Prev][Date Next][Thread Prev][Thread Next]
- Subject: Re: Crash: Recursive coroutine with pcall leads to stackoverflow of interpreter
- From: 김지회 <pascal4847@...>
- Date: Fri, 29 Oct 2021 21:51:22 +0900
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
Please use this environment if you cannot reproduce the error.
Docker github URL:
-- Regards, JIHOI.