=?gb2312?B?tPC4tDogW2thZmZlXSB0aGUgdGVycmlibGUgc2VnbWVudGF0aW9uIGZhdWx0?=
Bytecode
bytecode at tom.com
Thu Nov 4 08:33:28 PST 2004
Could you offer the error message in kernel.
You can use "dmesg" command to see what happened when kernel aborted =
kaffe?=20
-----=D3=CA=BC=FE=D4=AD=BC=FE-----
=B7=A2=BC=FE=C8=CB: kaffe-bounces at kaffe.org =
[mailto:kaffe-bounces at kaffe.org] =B4=FA=B1=ED =B3=CC=C3=F7
=B7=A2=CB=CD=CA=B1=BC=E4: 2004=C4=EA11=D4=C23=C8=D5 18:10
=CA=D5=BC=FE=C8=CB: kaffe at kaffe.org
=D6=F7=CC=E2: [kaffe] the terrible segmentation fault
Hi,everyone,
I have two problems:
1.When I run my ported Kaffe on THUMP 107, Kaffe runs into the
initBaseClasses() function of baseClasses.c, each execution of
loadStaticClass(&javaLangDoubleClass, "java/lang/Double");
loadStaticClass(&javaLangVMThrowable, "java/lang/VMThrowable");
loadStaticClass(&javaLangNoClassDefFoundError,
"java/lang/NoClassDefFoundError");
loadStaticClass(&javaLangStackOverflowError,
"java/lang/StackOverflowError");
can cause a segmentation fault, and the kernel aborts kaffe.
And I notice that the execution of Line 127 & 128 in readClass.c causes =
the
segmentation fault.
sizeof(Hjava_lang_Class**) * interfaces_count is 4 when loading
java.lang.Float
sizeof(Hjava_lang_Class**) * interfaces_count is also 4 when loading
java.lang.Double. Then segmentation fault occurs. Is it because 4 is not
enough for java.lang.Double?
I would like to know why other classes don't cause segmentation fault =
but
those 4 classes. Are there any differences?
2.After I put those 4 lines into /* */, another segmentation fault =
occurs.
This time the segmentation fault occurs at processClass(StringClass,
CSTATE_COMPLETE, &einfo) in baseClasses.c.
And one of my PCs which is 80X86-Linux platform causes a segmentation =
fault
at the same place but another one doesn't. Maybe this function contains =
a
bug.
Best wishes,
Cheng Ming
_______________________________________________
kaffe mailing list
kaffe at kaffe.org
http://kaffe.org/cgi-bin/mailman/listinfo/kaffe
More information about the kaffe
mailing list