[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: Crash: Recursive coroutine with pcall leads to stackoverflow of interpreter
- From: Roberto Ierusalimschy <roberto@...>
- Date: Tue, 2 Nov 2021 13:25:37 -0300
> Hi, I found some interesting stack overflow crash from my project.
>
> [...]
> ---------------------------------------------------------------------------------------------------
> [crash.lua] -- case crash
> local function func()
> pcall(1)
> coroutine.wrap(func)()
> end
> func()
>
> [result of crash.lua]
> Segmentation fault(core dumped)
>
> [...]
Many thanks for the report and detailed analysis.
-- Roberto