[kaffe] Bug Report: assertion failed in mem/gc-mem.c (line 70)

jrandom auto97841 at hushmail.com
Sun Oct 12 10:05:22 PDT 2003


buenos dias srs y srtas,

I've been testing out a java application on kaffe (pulled fresh from
CVS on Monday) on my freebsd 4.8-RELEASE box (x86) and have received
an intermittent kaffe crash / core dump.

assertion "diff % gc_pgsize == 0" failed: file "mem/gc-mem.c", line 70
4
Abort trap (core dumped)


Nothing showed up in my application logs (the app does UDP, TCP, crypto,
 and a little disk IO), and what little remains of my gdb-foo told me
to get the trace:

#0  0x2815abac in kill () from /usr/lib/libc.so.4
#1  0x2819c13a in abort () from /usr/lib/libc.so.4
#2  0x2817814f in __assert () from /usr/lib/libc.so.4
#3  0x280c241c in gc_primitive_alloc (sz=1867776) at mem/gc-mem.c:704
#4  0x280c21ac in gc_large_block (sz=1866282) at mem/gc-mem.c:533
#5  0x280c1bb3 in gc_heap_malloc (sz=1866282) at mem/gc-mem.c:355
#6  0x2808aecb in gcMalloc (gcif=0x280ffaa4, size=1866282, fidx=3) at
mem/gc-incremental.c:1027
#7  0x2809e4d6 in newArrayChecked (elclass=0x810403c, count=1866262,
info=0x96ef9dc) at object.c:149
#8  0x280a1d2d in soft_newarray (type=8, size=1866262) at soft.c:81
#9  0x8333352 in ?? ()
#10 0x833f0b7 in ?? ()
#11 0x84f9f80 in ?? ()
#12 0x8460cbb in ?? ()
#13 0x85d78b1 in ?? ()
#14 0x847cb62 in ?? ()
#15 0x83b8527 in ?? ()
#16 0x846d843 in ?? ()
#17 0x860a41f in ?? ()
#18 0x280a6b36 in callMethodV (meth=0x82f1dfc, func=0x860a014, obj=0x96e435c,

    args=0x96f0010 "XG\017(\få\017(Dp\020(`k\020(", ret=0x96efc58) at
./../config/i386/common.h:38
#19 0x28093b21 in Kaffe_CallVoidMethodV (env=0x96e800c, obj=0x96e435c,
 meth=0x82f1dfc,
    args=0x96f0010 "XG\017(\få\017(Dp\020(`k\020(") at jni.c:1143
#20 0x28093bbe in Kaffe_CallVoidMethod (env=0x96e800c, obj=0x96e435c,
 meth=0x82f1dfc) at jni.c:1156
#21 0x280a78b0 in firstStartThread (arg=0x96e435c) at thread.c:408
#22 0x280e8d84 in start_this_sucker_on_a_new_frame () at jthread.c:1459

I've just repulled kaffe from CVS and am rebuilding it now - I'll report
back if I can find any pattern in the error or get together a test case.
 fwiw, I also tried running a pre-NIO version of freenet the other day
(same box & jvm) and got the same assertion failure shortly after startup
(though others are reporting that their freenet instance lasts at least
a few hours).

Other than that, kaffe has been fantastic so far - nice job!

If anyone has any questions or things they'd like me to try out (or if
you want a 46Mb core file ;), lemmie know.

gracias,
-jrandom



Concerned about your privacy? Follow this link to get
FREE encrypted email: https://www.hushmail.com/?l=2

Free, ultra-private instant messaging with Hush Messenger
https://www.hushmail.com/services.php?subloc=messenger&l=434

Promote security and make money with the Hushmail Affiliate Program: 
https://www.hushmail.com/about.php?subloc=affiliate&l=427




More information about the kaffe mailing list