[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: bug: crash while calling function from yielded state with line hook set
- From: Roberto Ierusalimschy <roberto@...>
- Date: Fri, 30 Jul 2010 11:54:37 -0300
> >The code in question calls lua_pcall on a suspended thread. Although
> >this was not documented, such call is illegal. You can only resume a
> >suspended thread (one with status LUA_YIELD). By chance it works
> >when there are no line hooks, but it is invalid nonetheless.
> IMHO, it's not obvious.
> It'll be great if there will be some notice in documentation
> and error message in code.
It is being corrected.
-- Roberto