Subject: ibm java and linux emulation
To: None <port-macppc@NetBSD.org>
From: Antoine Reilles <Antoine.Reilles@loria.fr>
List: port-macppc
Date: 03/19/2006 00:49:24
--W/nzBZO5zC0uMSeA
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline

Hi,

After getting the suse100_* linux libs installed under macppc, i'm
trying to get java working under macppc.
I installed the suse package for the IBM java virtual machine, but i
can't get this working, all i get is:

[ Unable to allocate an initial java heap of 4194304 bytes. ]
[ **Out of memory, aborting** ]
[  ]
[ *** panic: JVMST016: Cannot allocate memory for initial java heap ]
[1]   Abort trap (core dumped) /usr/pkg/emul/li...

even after playing with unlimit, i still get this problem.

It looks like the program is doing some mmap call that always do fail.
In the result of ktrace -di -tA , i get a list of:

6379      1 java     CALL mmap(0x10000000,0x20000000,7,0x22,0xffffffff,0)
6379      1 java     RET  mmap -1 errno 12 Cannot allocate memory
6379      1 java     CALL mmap(0x10000000,0x1fae2000,7,0x22,0xffffffff,0)
6379      1 java     RET  mmap -1 errno 12 Cannot allocate memory
6379      1 java     CALL mmap(0x10000000,0x1f5d0000,7,0x22,0xffffffff,0)
6379      1 java     RET  mmap -1 errno 12 Cannot allocate memory
6379      1 java     CALL mmap(0x10000000,0x1f0cc000,7,0x22,0xffffffff,0)
6379      1 java     RET  mmap -1 errno 12 Cannot allocate memory

The full kdump output for this run is at:
http://www.loria.fr/~reilles/divers/kdump.java

Ideas ? I don't know if the problem is in the app, or in the linux
emulation code. However, this code runns under linux powerpc

Best regards,
antoine

--W/nzBZO5zC0uMSeA
Content-Type: application/pgp-signature
Content-Disposition: inline

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.2.2 (NetBSD)

iD8DBQFEHJyE4VqmoGDE/mwRAr8JAJ4l2X+aNkkAwyuWiO0lfxD+Jl784ACdGEZb
Z5fzHEm+WY8V0h/fh3tijOM=
=m/Nn
-----END PGP SIGNATURE-----

--W/nzBZO5zC0uMSeA--