[Gc] Segmentation fault when embedding GC in Matlab (fwd)
goffioul at imec.be
Thu Aug 30 23:21:07 PDT 2007
> > This call returns a correct address when matlab is started
> without the
> > JVM, and -1 (0xFFFFFFFF) when matlab is started with the JVM.
> That explains the problem. The collector can't get any
> memory from the OS, even during startup. This might happen
> because in your environment the JVM grabs the address space
> right above the sbrk heap, though I'm not sure.
> Things might work better if you build the collector with
> USE_MMAP defined. GC7 should largely avoid this problem by
> trying both under the covers.
Compiling GC with USE_MMAP defined seems to solve that problem.
More information about the Gc