harmony-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Gregory Shimansky (JIRA)" <j...@apache.org>
Subject [jira] Commented: (HARMONY-987) [classlib][drlvm] VM crashed on the java.lang.Thread.countStackFrames() call
Date Wed, 26 Jul 2006 20:50:18 GMT
    [ http://issues.apache.org/jira/browse/HARMONY-987?page=comments#action_12423718 ] 
            
Gregory Shimansky commented on HARMONY-987:
-------------------------------------------

This is a duplicate of HARMONY-986. If you apply a fix from it you will see the following

java.lang.UnsatisfiedLinkError: java/lang/VMThreadManager.countStackFrames(Ljava/lang/Thread;)I
        at java.lang.Thread.countStackFrames()
        at StackFrames.main(StackFrames.java:3)


> [classlib][drlvm] VM crashed on the java.lang.Thread.countStackFrames() call
> ----------------------------------------------------------------------------
>
>                 Key: HARMONY-987
>                 URL: http://issues.apache.org/jira/browse/HARMONY-987
>             Project: Harmony
>          Issue Type: Bug
>            Reporter: Vladimir Ivanov
>
> The spec says for the method java.lang.Thread.countStackFrames() 
> "Returns: the number of stack frames in this thread. Throws: IllegalThreadStateException
- if this thread is not suspended." 
> but DRLVM crashed while implementation of this class in the luni-kernel module should
return 0 (it is correct for all implementations).
> =================== test.java ======================
> public class test { 
>     public static void main (String[] args) { 
>         System.out.println("res = " + new Thread(new Thread()).countStackFrames());
>     } 
> } 
> ================================================
> Output:
> C:\tmp\tmp17>C:\jdk1.5.0_06\bin\java.exe -cp . -showversion test
> java version "1.5.0_06"
> Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0_06-b05)
> Java HotSpot(TM) Client VM (build 1.5.0_06-b05, mixed mode)
> res = 0
> C:\tmp\tmp17>C:\harmony\trunk_0427\deploy\jdk\jre\bin\java.exe -cp . -showversion
test
> java version 1.5 (subset)
> (c) Copyright 1991, 2006 The Apache Software Foundation or its licensors, as applicable.
> res = 0
> C:\tmp\tmp17>C:\harmony\drlvm\trunk\build\win_ia32_msvc_debug\deploy\jre\bin\java
-Dvm.assert_dialog=false -cp . -showversion test
> java version "1.5.0"
> pre-alpha : not complete or compatible
> svn = r425618, (Jul 26 2006), Windows/ia32/msvc 1310, debug build
> http://incubator.apache.org/harmony
> ERROR: Destructive unwinding: C++ objects detected on stack!
>   droping 0x05D4F8F0
>  setting curr 0x05D4FA84
> java.lang.UnsatisfiedLinkError: armo
>         at java.lang.Thread.countStackFrames()
>         at test.main(test.java:3)
> C:\tmp\tmp17>C:\harmony\drlvm\trunk\build\win_ia32_msvc_release\deploy\jre\bin\java
-Dvm.assert_dialog=false -cp . -showversion test
> java version "1.5.0"
> pre-alpha : not complete or compatible
> svn = r425618, (Jul 26 2006), Windows/ia32/msvc 1310, release build
> http://incubator.apache.org/harmony
> ERROR: Destructive unwinding: C++ objects detected on stack!
>   droping 0x05C0FBEC
>  setting curr 0x05C0FF68
> java.lang.UnsatisfiedLinkError:
>         at java.lang.Thread.countStackFrames()
>         at test.main(test.java:3)

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Mime
View raw message