more kaffe-0.8.x garbage collection problems (on Solaris)
Daniel.Veillard at imag.fr
Daniel.Veillard at imag.fr
Thu Mar 6 03:28:43 PST 1997
I'm having a hard time porting my existing code from Linux where Amaya and
Kaffe are integrated to solaris. Setup is an Ultra :
cpu0: SUNW,UltraSPARC (upaid 0 impl 0x10 ver 0x22 clock 143 MHz)
SunOS Release 5.5 Version Generic_103093-06 [UNIX(R) System V Release 4.0]
With 0.8.0 depending on the compile-time options used, I have the
context-switching broken (gcc -g) or problems with the garbage
collector
So I moved to 0.8.2 on this platform. compiled with gcc -O -g after
removing problems related to extra argument of ranlibs (I'm compiling static).
I hit the bug reported for m68k :
(gdb) r
Starting program: /tahiti/veillard/opera/solaris2/bin/amaya
Amaya Init...
HTTPAccess.Initialize
Reading properties from /tahiti/veillard/opera/config/java.properties
Starting HTTP Manager
Starting HTTP Cache
../../../../kaffe-0.8.2/kaffe/kaffevm/jit/code-analyse.c:212: failed assertion
`sp >= meth->localsz && sp <= meth->localsz + meth->stacksz'
Program received signal SIGABRT, Aborted.
0xef3742c4 in kill ()
(gdb) up
#1 0xef339688 in abort ()
(gdb) up
#2 0x2554fc in __eprintf (string=0x263250 "%s:%u: failed assertion `%s'\n",
expression=0x263270 "../../../../kaffe-0.8.2/kaffe/kaffevm/jit/code-analyse
.c", line=212,
filename=0x2632c8 "sp >= meth->localsz && sp <= meth->localsz + meth->
stacksz")
(gdb) up
#3 0x83578 in verifyMethod (meth=0xb1cecc)
at ../../../../kaffe-0.8.2/kaffe/kaffevm/jit/code-analyse.c:212
212 assert(sp >= meth->localsz && sp <= meth->
localsz + meth->stacksz);
(gdb) print sp
$1 = 11
(gdb) print meth->localsz
$2 = 3
(gdb) print meth->localsz
$3 = 3
(gdb) print meth->stacksz
$4 = 7
(gdb) where
#0 0xef3742c4 in kill ()
#1 0xef339688 in abort ()
#2 0x2554fc in __eprintf (string=0x263250 "%s:%u: failed assertion `%s'\n",
expression=0x263270 "../../../../kaffe-0.8.2/kaffe/kaffevm/jit/code-analyse
.c", line=212,
filename=0x2632c8 "sp >= meth->localsz && sp <= meth->localsz + meth->
stacksz")
#3 0x83578 in verifyMethod (meth=0xb1cecc)
at ../../../../kaffe-0.8.2/kaffe/kaffevm/jit/code-analyse.c:212
#4 0x7b884 in translate (meth=0xb1cecc)
at ../../../../kaffe-0.8.2/kaffe/kaffevm/jit/machine.c:160
#5 0x7aca0 in soft_get_method_code (meth=0xb1cecc)
at ../../../../kaffe-0.8.2/kaffe/kaffevm/soft.c:232
#6 0xb25de0 in ?? ()
#7 0xaf815c in ?? ()
#8 0x7796c in do_execute_java_class_method (cname=0xaf63d8 "",
method_name=0x25d778 "main", signature=0x25d780 "([Ljava/lang/String;)V")
at ../../../../kaffe-0.8.2/kaffe/kaffevm/support.c:260
#9 0x66db8 in InitJava () at /tahiti/veillard/opera/javalib/kaffeine.c:767
#10 0x67004 in InitJavaEventLoop (app_ctx=0xa87330)
at /tahiti/veillard/opera/javalib/kaffeine.c:860
#11 0x1664f0 in TtaMainLoop ()
at /tahiti/veillard/opera/thotlib/dialogue/interface.c:1259
#12 0x18828 in main (argc=1, argv=0xeffff924)
at /tahiti/veillard/opera/amaya/EDITORAPP.c:551
(gdb)
sorry, I don't have a patch :-\
More information about the kaffe
mailing list