Pbm with Kaffe 0.8.2 on Solaris
Daniel.Veillard at imag.fr
Daniel.Veillard at imag.fr
Thu Mar 6 06:05:58 PST 1997
When compiling 0.8.2 with gcc 2.7.2 on solaris 5.5 (Ultra) :
First I had to patch some Makefile.in to have Kaffe-0.8.2 compile
when using static libs (patch at the end of the mail). I guess this is
not specific to Solaris. BTW the patch break the dynamic linking, for
sure :-\
If Kaffe is compiled with -g the context-switching seems to be broken.
~/opera/classes/amaya -> gdb kaffe
(gdb) r sun.tools.javac.Main HTTPAccess.java
Starting program: /tahiti/veillard/opera/solaris2/bin/kaffe
sun.tools.javac.Main HTTPAccess.java
Program received signal SIGSEGV, Segmentation fault.
0x18be0 in reschedule () at ../../../../kaffe-0.8.2/kaffe/kaffevm/thread.c:761
761 THREADSWITCH(TCTX(currentThread
), TCTX(lastThread));
(gdb) print lastThread
$1 = (thread *) 0x99c38
(gdb) print *lastThread
$2 = {obj = {dtable = 0x95fb8, aasize = 0, mux = {holder = 0x0, count = 0,
muxWaiters = 0x0, __align__ = 0}, cv = {cvWaiters = 0x0, mux = 0x0}},
name = 0x99d88, priority = 5, next = 0x0, PrivateInfo = 1, eetop = 0,
single_step = 0, daemon = 0, stillborn = 0, target = 0x0,
interruptRequested = 0, group = 0xa4548}
(gdb) print *currentThread
$3 = {obj = {dtable = 0x95fb8, aasize = 0, mux = {holder = 0x0, count = 0,
muxWaiters = 0x0, __align__ = 0}, cv = {cvWaiters = 0x0, mux = 0x0}},
name = 0xa6e78, priority = 10, next = 0x0, PrivateInfo = 2, eetop = 0,
single_step = 0, daemon = 1, stillborn = 0, target = 0x0,
interruptRequested = 0, group = 0x0}
(gdb)
This problem also show off with 0.8.0 ...
The same javac compilation went fine with a binary generated with "-g -O"
CFLAGS.
Now trying to run Amaya with Kaffe embedded I got
(gdb) r
Starting program: /tahiti/veillard/opera/solaris2/bin/amaya
Amaya Init...
HTTPAccess.Initialize
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) where
#0 0xef3742c4 in kill ()
#1 0xef339688 in abort ()
#2 0x2554fc in __eprintf (string=0x262fd8 "%s:%u: failed assertion `%s'\n",
expression=0x262ff8 "../../../../kaffe-0.8.2/kaffe/kaffevm/jit/code-analyse
.c", line=212,
filename=0x263050 "sp >= meth->localsz && sp <= meth->localsz + meth->
stacksz")
#3 0x7e3e8 in verifyMethod (meth=0xb1545c)
at ../../../../kaffe-0.8.2/kaffe/kaffevm/jit/code-analyse.c:212
#4 0x766f4 in translate (meth=0xb1545c)
at ../../../../kaffe-0.8.2/kaffe/kaffevm/jit/machine.c:160
#5 0x75b10 in soft_get_method_code (meth=0xb1545c)
at ../../../../kaffe-0.8.2/kaffe/kaffevm/soft.c:232
#6 0xb23900 in ?? ()
#7 0xaf815c in ?? ()
#8 0x727dc 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
[...]
(gdb) up
#3 0x7e3e8 in verifyMethod (meth=0xb1545c)
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->stacksz
$6 = 7
(gdb)
However, going back to Kaffe 0.8.0 solved the problem.
Keep up the good work, it seems that so many people are investing time
in kaffe it can only be a success ! That remember me when I started using
Linux five years ago (0.12b), I wish the same success story for Kaffe,
Daniel
Daniel Veillard at w3.org | W3C / INRIA Rhone-Alpes | Today's Bookmarks :
Daniel.Veillard at inrialpes.fr| 655 av de l'Europe | Linux, WWW, Java,
Tel : +33 04 76 61 53 85 | 38330 Montbonnot | badminton, Kaffe,
Fax : +33 04 76 54 76 15 | France | Amaya and CSS.
Home: +33 04 76 63 05 86 | http://opera.inrialpes.fr/veillard
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/octet-stream
Size: 0 bytes
Desc: not available
Url : http://kaffe.org/pipermail/kaffe/attachments/19970306/499c186f/attachment-0013.obj
-------------- next part --------------
More information about the kaffe
mailing list