[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: LuaLanes on Ubuntu 11.10, kernel 3.0
- From: Benoit Germain <bnt.germain@...>
- Date: Mon, 14 Nov 2011 08:16:06 +0100
2011/11/10 Philipp Janda <siffiejoe@gmx.net>:
> On 09.11.2011 17:31, Benoit Germain wrote:
>>> The glibc memory corruption is gone, but now I get an assertion failure
>>> on
>>> 'make test' (not always on the first test, but I don't get far):
>>> lua5.1: lanes.c:1018: selfdestruct_remove: Assertion `found' failed.
>>> Aborted (core dumped)
>
> A proper solution would probably involve using pthread_cleanup_push to free
> the Lane's memory on actual cancellation.
>
> Now I get a SIGSEGV in tests/atexit.lua :-)
>
Just wondering. I changed the desinit sequence a bit. Before,
selfdestruct_atexit was an atexit() handler. Now it is called when the
main application's Lua state is closed, causing garbage collection of
a full userdata that triggers its __gc metamethod.
I changed to the new behavior because I observed when debugging the
win32 build that the threads were no longer registered in the debugger
when tracing inside the atexit sequence.
I haven't had reports of this crash with the old method. So maybe the
threads no longer run when atexit handlers are called with the pthread
build too?
In that case, maybe moving again the s_lane structures liberation
still present in the selfdestruct chain in an atexit handler would fix
the crash?
--
Benoit.
- References:
- LuaLanes on Ubuntu 11.10, kernel 3.0, Thijs Koerselman
- Re: LuaLanes on Ubuntu 11.10, kernel 3.0, Benoit Germain
- Re: LuaLanes on Ubuntu 11.10, kernel 3.0, Hisham
- Re: LuaLanes on Ubuntu 11.10, kernel 3.0, Thijs Koerselman
- Re: LuaLanes on Ubuntu 11.10, kernel 3.0, Benoit Germain
- Re: LuaLanes on Ubuntu 11.10, kernel 3.0, Thijs Koerselman
- Re: LuaLanes on Ubuntu 11.10, kernel 3.0, Taj Khattra
- Re: LuaLanes on Ubuntu 11.10, kernel 3.0, Benoit Germain
- Re: LuaLanes on Ubuntu 11.10, kernel 3.0, Philipp Janda
- Re: LuaLanes on Ubuntu 11.10, kernel 3.0, Benoit Germain
- Re: LuaLanes on Ubuntu 11.10, kernel 3.0, Philipp Janda