Kaffe 1.1.6 - early crash on MIPS architecture

"Cantarini Fabio, IT" <[email protected]> Wed, 3 Jun 2009 15:49:37 +0200
Newsgroups gmane.comp.java.vm.kaffe.general
Message-ID <00D98B2F577F494D9976E5522E61EE0901C56922@xch083it.emea.group.pirelli.com>
--===============1110726073==
Content-Transfer-Encoding: 7bit
Content-Class: urn:content-classes:message
Content-Type: multipart/alternative;
	boundary="----_=_NextPart_001_01C9E452.2319F288"

------_=_NextPart_001_01C9E452.2319F288
Content-Type: text/plain; charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

Dear All,

I am new to running kaffe JVM on embedded system (linux 2.6 / MIPS).

I configured the following:

KAFFE_ENGINE=3Dintrp
KAFFE_THREADS=3Dunix-jthreads
KAFFE_GC=3Dkaffe-gc

I compiled kaffe rel. 1.1.6 but encountered blocking issues:

1. The build fails in file pkg/kaffe/config/mips/sysdepCallMethod.h =
cause to unexpected definition of _MIPS_SIM.
    This fault statement is executed:

	#error "Calling convention not specified"

    I got a successfull compilation by commentig out the #error =
directive and including the o32-sysdepCallMethod.h.
    But please help about a proper solution for this.


2. running kaffe bin command on a test "Hello World" class always =
terminates with generic diagnostic like:

	Internal error: caught an unexpected exception.
	Please check your CLASSPATH and your installation.

    After inspecting the C code, I see that the problem is in the =
function initialiseSecurity() (kaffevm/classMethod.c).
    Here is created a java.security.Permissions object and an attempt is =
made to call the Java add() method on it

	do_execute_java_method(NULL, permissions, "add", =
"L(java/security/Permission;)V", NULL, 0, allPermission);

    but this aways fails by SIGSEGV.


Could someone please advise about getting a working kaffe JVM on MIPS ?

Thanks to all
Kind Regards

Fabio C.=20




=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D
CONFIDENTIALITY NOTICE

This message and its attachments (if any) may contain confidential,
proprietary or legally privileged information and it is intended only =
for
the use of the addressee named above. No confidentiality or privilege
is waived or lost by any mistransmission.

If you are not the intended recipient of this message you are hereby
notified that you must not use, disseminate, copy it in any form or take
any action in reliance on it. If you have received this message in =
error,
please, delete it (and any copies of it) and kindly inform the sender, =
of this
e-mail, by replying or go to www.pirelli.com on "contact us".
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D

------_=_NextPart_001_01C9E452.2319F288
Content-Type: text/html; charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

<HTML >
<HEAD>
<META http-equiv=3D"Content-Type" content=3D"text/html; =
charset=3Diso-8859-1">



<META NAME=3D"Generator" CONTENT=3D"MS Exchange Server version =
6.5.7654.12">
<TITLE>Kaffe 1.1.6 - early crash on MIPS architecture</TITLE>
</HEAD>
<BODY >
<DIV>
<!-- Converted from text/rtf format -->

<P><FONT SIZE=3D2 FACE=3D"Arial">Dear All,</FONT>
</P>

<P><FONT SIZE=3D2 FACE=3D"Arial">I am new to running kaffe JVM on =
embedded system (linux 2.6 / MIPS).</FONT>
</P>

<P><FONT SIZE=3D2 FACE=3D"Arial">I configured the following:</FONT>
</P>

<P><FONT SIZE=3D2 FACE=3D"Arial">KAFFE_ENGINE=3Dintrp</FONT>

<BR><FONT SIZE=3D2 FACE=3D"Arial">KAFFE_THREADS=3Dunix-jthreads</FONT>

<BR><FONT SIZE=3D2 FACE=3D"Arial">KAFFE_GC=3Dkaffe-gc</FONT>
</P>

<P><FONT SIZE=3D2 FACE=3D"Arial">I compiled kaffe rel. 1.1.6 but =
encountered blocking issues:</FONT>
</P>

<P><FONT SIZE=3D2 FACE=3D"Arial">1. The build fails in file =
pkg/kaffe/config/mips/sysdepCallMethod.h cause to unexpected definition =
of _MIPS_SIM.</FONT>

<BR><FONT SIZE=3D2 FACE=3D"Arial">&nbsp;&nbsp;&nbsp; This fault =
statement is executed:</FONT>
</P>

<P>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <FONT SIZE=3D2 =
FACE=3D"Arial">#error &quot;Calling convention not =
specified&quot;</FONT>
</P>

<P><FONT SIZE=3D2 FACE=3D"Arial">&nbsp;&nbsp;&nbsp; I got a successfull =
compilation by commentig out the #error directive and including the =
o32-sysdepCallMethod.h.</FONT>

<BR><FONT SIZE=3D2 FACE=3D"Arial">&nbsp;&nbsp;&nbsp; But please help =
about a proper solution for this.</FONT>
</P>
<BR>

<P><FONT SIZE=3D2 FACE=3D"Arial">2. running kaffe bin command on a test =
&quot;Hello World&quot; class always terminates with generic diagnostic =
like:</FONT>
</P>

<P>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <FONT SIZE=3D2 =
FACE=3D"Arial">Internal error: caught an unexpected exception.</FONT>

<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <FONT SIZE=3D2 =
FACE=3D"Arial">Please check your CLASSPATH and your installation.</FONT>
</P>

<P><FONT SIZE=3D2 FACE=3D"Arial">&nbsp;&nbsp;&nbsp; After inspecting the =
C code, I see that the problem is in the function initialiseSecurity() =
(kaffevm/classMethod.c).</FONT></P>

<P><FONT SIZE=3D2 FACE=3D"Arial">&nbsp;&nbsp;&nbsp; Here is created a =
java.security.Permissions object and an attempt is made to call the Java =
add() method on it</FONT>
</P>

<P>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <FONT SIZE=3D2 =
FACE=3D"Arial">do_execute_java_method(NULL, permissions, =
&quot;add&quot;, &quot;L(java/security/Permission;)V&quot;, NULL, 0, =
allPermission);</FONT>
</P>

<P><FONT SIZE=3D2 FACE=3D"Arial">&nbsp;&nbsp;&nbsp; but this aways fails =
by SIGSEGV.</FONT>
</P>
<BR>

<P><FONT SIZE=3D2 FACE=3D"Arial">Could someone please advise about =
getting a working kaffe JVM on MIPS ?</FONT>
</P>

<P><FONT SIZE=3D2 FACE=3D"Arial">Thanks to all</FONT>

<BR><FONT SIZE=3D2 FACE=3D"Arial">Kind Regards</FONT>
</P>

<P><FONT SIZE=3D2 FACE=3D"Arial">Fabio C.</FONT>
</P>
<BR>

 </DIV><BR><BR>
<DIV>
</DIV>
<DIV>
</DIV>
<DIV>
<DIV>
<DIV>
<FONT FACE=3D"Verdana" =
SIZE=3D"2">=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D<BR>CONFIDENTIALITY NOTICE<BR><BR>This =
message and its attachments (if any) may contain =
confidential,<BR>proprietary or legally privileged information and it is =
intended only for<BR>the use of the addressee named above. No =
confidentiality or privilege<BR>is waived or lost by any =
mistransmission.<BR><BR>If you are not the intended recipient of this =
message you are hereby<BR>notified that you must not use, disseminate, =
copy it in any form or take<BR>any action in reliance on it. If you have =
received this message in error,<BR>please, delete it (and any copies of =
it) and kindly inform the sender, of this<BR>e-mail, by replying or go =
to www.pirelli.com on "contact =
us".<BR>=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D</FONT><BR><BR></DIV>
</DIV>
</DIV></BODY></HTML>

------_=_NextPart_001_01C9E452.2319F288--


--===============1110726073==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

_______________________________________________
kaffe mailing list
[email protected]
http://kaffe.org/cgi-bin/mailman/listinfo/kaffe

--===============1110726073==--