Re: Stack corruption on repetitive C to Lua calls, while thread is suspended (yield)

  • From: Mike Pall <mike-1309@xxxxxxxxxx>
  • To: luajit@xxxxxxxxxxxxx
  • Date: Wed, 25 Sep 2013 00:43:08 +0200

Alexandros Stergiakis wrote:
> My assessment so far is that using lua_call() to execute
> callbacks in Lua-space for a suspended (yielded) thread, ends up
> in a stack corruption after several callback invocations.

A suspended thread can only be resumed. If you turn on assertions
(see src/Makefile), it'll complain immediately about a misuse of
the Lua/C API.

--Mike

Other related posts: