lua-users home
lua-l archive

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


> 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