You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@harmony.apache.org by "Alexey Varlamov (JIRA)" <ji...@apache.org> on 2007/01/12 08:00:28 UTC

[jira] Closed: (HARMONY-987) [classlib][drlvm] VM crashed on the java.lang.Thread.countStackFrames() call

     [ https://issues.apache.org/jira/browse/HARMONY-987?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Alexey Varlamov closed HARMONY-987.
-----------------------------------

    Resolution: Fixed
      Assignee: Alexey Varlamov

This issue is fixed ages ago, closing.

> [classlib][drlvm] VM crashed on the java.lang.Thread.countStackFrames() call
> ----------------------------------------------------------------------------
>
>                 Key: HARMONY-987
>                 URL: https://issues.apache.org/jira/browse/HARMONY-987
>             Project: Harmony
>          Issue Type: Bug
>            Reporter: Vladimir Ivanov
>         Assigned To: Alexey Varlamov
>
> 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: https://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira