lua-users home
lua-l archive

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]


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