OutOfMemory while throwing OutOfMemory while ...

Enno Rehling enno at uni-paderborn.de
Wed Sep 16 02:53:52 PDT 1998


Hello,

Funny thing happened while trying to port kaffe: I ran out of memory while
in jthread_init, and kaffe tried throwing an OutOfMemory Exception. If I see
it correctly, in order to do that, it has to allocate a buffer for the
"java/lang/OutOfMemoryError" String. Which, having run out of memory,
failed, resulting in -- you guessed it -- another attempt to throw an
exception.

I'm wondering if this is "normal behaviour" of kaffe or whether I mucked up
something (I've meddled with my kaffe for so long that I can't really say
anymore).

Oh, the original version was taken from the cvs on August 27th.

---- part of my stack trace follows: ---

#76 0x4002b8db in execute_java_constructor_v (
    cname=0x400772e4 "java.lang.OutOfMemoryError", cc=0x0,
    signature=0x400772e0 "()V", argptr=0xbfffead0) at support.c:153
#77 0x4002bb1e in execute_java_constructor (
    cname=0x400772e4 "java.lang.OutOfMemoryError", cc=0x0,
    signature=0x400772e0 "()V") at support.c:187
#78 0x4003d77d in throwOutOfMemory () at exception.c:95
#79 0x400261f7 in gcMalloc (size=33, fidx=15) at mem/gc-incremental.c:699
#80 0x4002e3ec in makeUtf8Const (s=0xbfffeb54 "java/lang/OutOfMemoryError",
    len=26) at string.c:201
#81 0x40020520 in lookupClass (name=0xbfffeb54 "java/lang/OutOfMemoryError")
    at classMethod.c:610
#82 0x4002b8db in execute_java_constructor_v (
    cname=0x400772e4 "java.lang.OutOfMemoryError", cc=0x0,
    signature=0x400772e0 "()V", argptr=0xbfffec5c) at support.c:153
#83 0x4002bb1e in execute_java_constructor (
    cname=0x400772e4 "java.lang.OutOfMemoryError", cc=0x0,
    signature=0x400772e0 "()V") at support.c:187
#84 0x4003d77d in throwOutOfMemory () at exception.c:95
#85 0x400261f7 in gcMalloc (size=33, fidx=15) at mem/gc-incremental.c:699
#86 0x4002e3ec in makeUtf8Const (s=0xbfffece0 "java/lang/OutOfMemoryError",
    len=26) at string.c:201
#87 0x40020520 in lookupClass (name=0xbfffece0 "java/lang/OutOfMemoryError")
    at classMethod.c:610
#88 0x4002b8db in execute_java_constructor_v (
    cname=0x400772e4 "java.lang.OutOfMemoryError", cc=0x0,
    signature=0x400772e0 "()V", argptr=0xbfffede8) at support.c:153
#89 0x4002bb1e in execute_java_constructor (
    cname=0x400772e4 "java.lang.OutOfMemoryError", cc=0x0,
    signature=0x400772e0 "()V") at support.c:187
#90 0x4003d77d in throwOutOfMemory () at exception.c:95
#91 0x400261f7 in gcMalloc (size=33, fidx=15) at mem/gc-incremental.c:699
#92 0x4002e3ec in makeUtf8Const (s=0xbfffee6c "java/lang/OutOfMemoryError",
    len=26) at string.c:201
#93 0x40020520 in lookupClass (name=0xbfffee6c "java/lang/OutOfMemoryError")
    at classMethod.c:610
#94 0x4002b8db in execute_java_constructor_v (
    cname=0x400772e4 "java.lang.OutOfMemoryError", cc=0x0,
    signature=0x400772e0 "()V", argptr=0xbfffef74) at support.c:153
#95 0x4002bb1e in execute_java_constructor (
    cname=0x400772e4 "java.lang.OutOfMemoryError", cc=0x0,
    signature=0x400772e0 "()V") at support.c:187
#96 0x4003d77d in throwOutOfMemory () at exception.c:95
#97 0x400261f7 in gcMalloc (size=48, fidx=19) at mem/gc-incremental.c:699
#98 0x4004e7d1 in thread_malloc (s=48) at
./systems/sci-jthreads/internal.c:82
#99 0x40050301 in jthread_init (pre=1, maxpr=11, minpr=1, mainthreadpr=5,
    mainThreadStackSize=32768, _allocator=0x4004e7b0 <thread_malloc>,
    _deallocator=0x4004e7f0 <thread_free>,
    _destructor1=0x4004e710 <broadcastDeath>, _onstop=0x4004e760
<throwDeath>)
    at ./systems/sci-jthreads/jthread.c:798
#100 0x4004e8d3 in Tinit (nativestacksize=32768)
    at ./systems/sci-jthreads/internal.c:104
#101 0x400237c0 in initialiseKaffe () at baseClasses.c:97
#102 0x40041a0a in JNI_CreateJavaVM (vm=0x804f24c, env=0x804f250,
    args=0x804f1bc) at jni.c:160
#103 0x8049cd4 in kaffe_main (argc=4, argv=0xbffff10c) at main.c:216
#104 0x8049b90 in main (argc=5, argv=0xbffff10c) at main.c:156




More information about the kaffe mailing list