Re: SEGV in in lua_resume after lua_yield from hook.

  • From: Theo Schlossnagle <jesus@xxxxxxxxxx>
  • To: luajit@xxxxxxxxxxxxx
  • Date: Sun, 3 Apr 2022 01:19:31 -0400

On Wed, Mar 30, 2022 at 4:59 PM Mike Pall <mikelj-2203@xxxxxxx> wrote:

Theo Schlossnagle wrote:
*(cframe_pc(cframe_raw(L->cframe))-1) == 1369;

The bc_op() of that is BC_FUNCF, i.e. the start of a regular Lua
function.

It would help to find out where and why lua_resume() gets a SEGV.

Other things to check for would be whether lj_dispatch_ins() sets
everything up correctly before calling the hook function.


In my testing, I see lj_dispatch_ins setup right before my yield in all
cases except in the event of BC_FUNCF.  For that operation, I never enter
lj_dispatch_ins at all.  Is that expected?

-- 

Theo Schlossnagle

Other related posts: