[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: LuaJIT + Pluto coroutine issue
- From: Mike Pall <mikelu-0512@...>
- Date: Thu, 8 Dec 2005 18:07:04 +0100
Hi,
joe rossi wrote:
> This crash occurs on the call to
> SwitchToFiber(coco->fib);
> in the luaCOCO_resume function of lcoco.c, coming from
> the macro COCO_JUMPIN(coco).
Change the following line in lcoco.c:
OLD:
if (GetCurrentFiber() == NULL) ConvertThreadToFiber(NULL); \
NEW:
{ void *cur = GetCurrentFiber(); \
if (cur == NULL || cur == (void *)0x1e00) ConvertThreadToFiber(NULL); } \
(Don't forget the trailing backslashes.)
Also recompile everything _without_ -fomit-frame-pointer.
Bye,
Mike