[Date Prev][Date Next][Thread Prev][Thread Next]
- Subject: Re: scripts launching other scripts (coroutines)
- From: Vyacheslav Egorov <mraleph@...>
- Date: Thu, 14 Sep 2006 12:45:05 +0700
Thomas Blom wrote:
Below is the simplest test I could concoct to repro. There are a few
lua_State * pThread = lua_newthread( master );
From Reference Manual:
Creates a new thread, pushes it on the stack, and returns a pointer
to a lua_State that
represents this new thread.
3.2 - Stack Size
When you interact with Lua API, you are responsible for ensuring
consistency. In particular,
you are responsible for controlling stack overflow. You can use the
to grow the stack size.
So you just overflow master's stack.