lua-users home
lua-l archive

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


On Fri, May 22, 2009 at 2:04 PM, steve donovan
<steve.j.donovan@gmail.com> wrote:
> Although there remain some odd little glitches. Consider this (Debian
> Etch, i386)

It was a problem occuring during GC, as expected. The culprit is in
core.c, alien_function_types

The if statement at line 651

  if(af->nparams > 0) {
   ...
 }

needs an else to zero out these fields, if there's no extra parameters

  } else {
      af->ffi_params = NULL;
      af->params = NULL;
  }

They were uninitialized garbage, which free() took exception to.

steve d.