Incidencia #19994

Failed to initialize GC error on Windows CE 5.0

Abrir Fecha: 2009-12-23 21:09 Última actualización: 2009-12-24 00:05

Informador:
Propietario:
(Ninguno)
Tipo:
Estado:
Open
Componente:
Hito:
(Ninguno)
Prioridad:
5 - Medium
Gravedad:
5 - Medium
Resolución:
Ninguno
Fichero:
Ninguno

Details

Hi;

I compiled mysaifu JVM trunk from SVN and when I try to run ImageViewer example I get "Failed to initialize GC." error. <br> I used Visual Studio 2005 to compile MysaifuJVM. Test system is ARM9 based Windows CE 5.0.

Ticket History (3/4 Histories)

2009-12-23 21:09 Updated by: ismaildonmez
  • New Ticket "Failed to initialize GC error on Windows CE 5.0" created
2009-12-23 23:01 Updated by: ismaildonmez
Comentario

Here is the debug output:

JVM parsed class:java/lang/ref/Reference
JVM parsed class:java/lang/Object
Empty Java method.<init>()V
Empty Java method.finalize()V
JVM throws java/lang/IllegalAccessException
JVM parsed class:java/lang/IllegalAccessException
JVM parsed class:java/lang/Exception
JVM parsed class:java/lang/Throwable
JVM parsed class:java/io/Serializable
JVM parsed class:java/lang/VMThrowable
JVM parsed class:java/lang/Class
JVM parsed class:java/lang/reflect/Type
JVM parsed class:java/lang/reflect/AnnotatedElement
JVM parsed class:java/lang/reflect/GenericDeclaration
JVM parsed class:java/lang/VMClass
JVM parsed class:java/lang/Cloneable
Exception handler not found. return
JVM parsed class:java/lang/ExceptionInInitializerError
JVM parsed class:java/lang/LinkageError
JVM parsed class:java/lang/Error
Failed to initialize GC.
2009-12-23 23:59 Updated by: ismaildonmez
Comentario

Some more debugging:

find_exception_handler function (in instruction.cpp) has the following code

 u2 exception_table_length = code_attr->exception_table_length;

in my case exception_table_length is zero (0) so the loop in instruction.cpp line 909 does not execute. So it fails to find an exception handler. Hope this helps.

2009-12-24 00:05 Updated by: ismaildonmez
Comentario

This is due to ClassFile.cpp line 2161 always returns zero (0) exception table length:

code->exception_table_length = load_u2 (buff);

Attachment File List

No attachments

Editar

Please login to add comment to this ticket » Entrar