Develop and Download Open Source Software

Ticket #19994

Open Date: 2009-12-23 21:09

Last Update: 2009-12-24 00:05

Failed to initialize GC error on Windows CE 5.0

Reporter:ismaildonmezOwner:(None)
Priority:5 - MediumMileStone:(None)
Type:BugsSeverity:5 - Medium
Component:Mysaifu JVM 0.4.7Status:Open
ResolutionNone

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.

Attach File

File ListNo attachments.
Add New attachment
Add attachment filesPlease login to add new attachment

Ticket History - 3/4 Histories [Show all old Histories]

2009-12-23 21:09 Update by: ismaildonmez

  • New Ticket "Failed to initialize GC error on Windows CE 5.0" created

2009-12-23 23:01 Update by: ismaildonmez

Comment

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 Update by: ismaildonmez

Comment

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 Update by: ismaildonmez

Comment

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

code->exception_table_length = load_u2 (buff);

Add Comment/Update #19994 (Failed to initialize GC error on Windows CE 5.0)

Please login to add comment to this ticket. » Login


SourceForge.JP is a Japanese version of SourceForge.net. For developments that are not related to Japan, we recommend you to use SourceForge.net.