On Sat, Nov 12, 2005 at 02:45:21PM -0600, Greg Orlowski wrote: > Package: jamvm > Version: 1.3.3-2 > > Actually, a couple bugs: > > (easy) > 1) jamvm needs cdbs and zip to build, but they are not listed in the > build-depends
I wonder where you have looke but cdbs and zip ARE in the Build-Depends. > (not as easy) > 2) when I try to run jamvm on a simple hello world .class file (or > anything else that DOES work in kaffe, gij, and sablevm), I get: > > Aborting the VM -- couldn't allocate the heap: Cannot allocate memory > > I looked through the source, and this is in alloc.c toward the bottom. > There's a section where it tries to either alloc with mmap or with > malloc: > > /* BEGIN CODE */ > #ifdef USE_MALLOC > /* Don't use mmap - malloc max heap size */ > char *mem = (char*)malloc(max); > min = max; > if(mem == NULL) { > #else > char *mem = (char*)mmap(0, max, PROT_READ|PROT_WRITE, > MAP_PRIVATE|MAP_ANON, -1, 0); > if(mem == MAP_FAILED) { > #endif > perror("Aborting the VM -- couldn't allocate the heap"); > exitVM(1); > } > /* END CODE */ > > I tried to build with a > #define USE_MALLOC 1 > > at the top, but it still didn't work. Sorry, I'm not much of a c > programmer, so I couldn't really figure out any more. > > I have 2 straces and my list of installed packages located at: > http://www.gsnipe.com/oss/jamvm_bugs/ > > one strace is for my custom jamvm package and the other is for the > standard binary jamvm package. The list of packages will show my > custom package, but I tried with both using the same list of packages. I cannot reproduce this at all, neither on i386 nor on powerpc. Can you send me a testcase that is failing for you. Cheers, Michael -- Escape the Java Trap with GNU Classpath! http://www.gnu.org/philosophy/java-trap.html Join the community at http://planet.classpath.org/ -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]