Looks like a bug in the OS X Java VM. 

	http://stackoverflow.com/questions/1297051/what-is-causing-the-java-vm-on-os-x-to-crash-with-invalid-memory-access-of-loca
	http://code.google.com/p/google-web-toolkit/issues/detail?id=3491

I think that 32 bits maxes out at 3GB, so you might try running something like

	java -server -d32 -Xmx3GB -Xms3GB ...

Sean

On Nov 10, 2011, at 1:03 PM, Rodrigo Barros wrote:

> Dear all,
> 
> I'm running ECJ on a macbook with OSX Lion (10.7.2), 8GB ram and Java 1.6.0_29.
> I have noticed that my app (a GA for evolving decision-tree parameters/components) crashes when running in large datasets (I get a "Invalid memory access of location" error). This is a bit strange because when I set the JVM to run in 32-bit mode (-d32) or in interpretable mode (-Xint) the GA works fine (though MUCH slower than 64bits normal mode).
> 
> Do you have any idea of what seems to be the problem? I don't think it's a hardware problem since I tested it on other computer and got the same error message (though it was also a computer running OSX). Perhaps there's a bug in memory management of OSX and 64bits JVM in applications running several threads??
> 
> Thank you in advance!
> 
> -- 
> Rodrigo Coelho Barros, MSc.
> PhD Student
> Bioinspired Computation Laboratory (BioCom)
> Department of Computer Science
> University of São Paulo at São Carlos (ICMC-USP)
> 
> www.icmc.usp.br/~rcbarros
> e-mail (1): [log in to unmask]
> e-mail (2): [log in to unmask]
> 
> mobile: +55 16 8138-3627