Re: SEGV in in lua_resume after lua_yield from hook.

  • From: Mike Pall <mikelj-2204@xxxxxxx>
  • To: luajit@xxxxxxxxxxxxx
  • Date: Wed, 13 Apr 2022 21:07:45 +0200

Theo Schlossnagle wrote:

Any thoughts on this? If this fix makes sense, I'd love to have this part
of the v2.1 tree (and more specifically to not have to maintain a patch).

Umm, I've just realized there's a flaw in the whole reasoning: if
you're only setting LUA_HOOKCOUNT, you should never end up at a
BC_FUNCF or in lj_dispatch_call() at all.

Neither LuaJIT nor plain Lua allow yielding from a call hook.

--Mike

Other related posts: