Nicolas Cannasse wrote:
Charles McGarvey a écrit :
Hey,

I'm trying to track down the reason I'm getting a segfault, but I'm a
little perplexed because my own C code is rather trivial (i.e load a
module, call a neko function in a loop).  Here's the backtrace in case
somebody more experienced than myself might be able to glean something
from it.  In this case, neko was built with -g and no optimizations and
is running on amd64.  At a glance, looks like alloc is returning null...

Yes, seems like the GC fails to allocate memory when the VM stack needs to grow. Are you doing some kind of allocation in C ? it's possible that some C code corrupts GC memory.

You can also enable GC traces in vm/alloc.c by defining GC_LOG and recompiling NekoVM.

Nicolas


Okay, I upgraded to libgc 7.1 and it's fine now.  Thanks.

--Chaz

--
Neko : One VM to run them all
(http://nekovm.org)

Reply via email to