[Date Prev][Date Next][Thread Prev][Thread Next]
- Subject: Re: Random crashed with threaded application
- From: David Demelier <demelier.david@...>
- Date: Fri, 21 Jun 2013 15:06:02 +0200
2013/6/21 steve donovan <email@example.com>:
> On Fri, Jun 21, 2013 at 12:56 AM, Javier Guerra Giraldez
> <firstname.lastname@example.org> wrote:
>> in conclusion: all Lua API calls must be protected by a mutex tied to
>> the Lua State. (that's what the global locks mentioned by Luiz do
>> when compiled with the appropriate preprocessor flags)
> How about 'daughter threads' launched in different OS threads? So there may
> be some mutexed communication between these in the same 'global' Lua state?
> I do something like this in winapi, but it's finicky and I'm wondering under
> what conditions it can be guaranteed to be stable.
> steve d.
In fact, thanks to LUA_USE_APICHECK, I realized that I did some
lua_getglobal() but never lua_pop() so I blown out the stack and the
segfaults came from there.