[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: lua_getlocal crashes after yield from a debug hook
- From: Roberto Ierusalimschy <roberto@...>
- Date: Wed, 11 Feb 2015 10:44:18 -0200
> If I call lua_yield(L,0) from a lua_Hook function , and then call
> lua_getlocal on this yielded thread, it crashes. (Both on lua 5.2 and lua
> 5.3)
>
> [...]
>
> I guess the reason is : when yield from a hook, the top function in the
> yielded thread is a lua function, but the L->ci->func is not a valid lua
> function object. so lua_getlocal (and other debug api) can't work.
Many thanks for the report. We will have a look at it.
-- Roberto