You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@harmony.apache.org by "Pavel Afremov (JIRA)" <ji...@apache.org> on 2006/12/06 16:34:22 UTC

[jira] Updated: (HARMONY-2502) [DRLVM] Runtime exception in fast path helpers crashes DRLVM.

     [ http://issues.apache.org/jira/browse/HARMONY-2502?page=all ]

Pavel Afremov updated HARMONY-2502:
-----------------------------------

    Attachment: ConstructorStackTest.java

The attached simple test can crash DRLVM (VM crashes without any message on the Windows).

> [DRLVM] Runtime exception in fast path helpers crashes DRLVM.
> -------------------------------------------------------------
>
>                 Key: HARMONY-2502
>                 URL: http://issues.apache.org/jira/browse/HARMONY-2502
>             Project: Harmony
>          Issue Type: Bug
>          Components: DRLVM
>            Reporter: Pavel Afremov
>         Attachments: ConstructorStackTest.java
>
>
> The following simple test can crash DRLVM (VM crashes without any message) :
> class ConstructorStackTest {
>     private static final int MAX_DEPTH = 1000000;
>     ConstructorStackTest(int c) {
>         if (c > 0) {
>             new ConstructorStackTest(c - 1);
>         }
>     }
>     public static void main(String[] args) {
>         try {
>             new ConstructorStackTest(MAX_DEPTH);
>             System.out.println("PASS");
>          } catch (StackOverflowError soe) {
>             System.out.println("PASS : " + soe);
>         } catch (Throwable th) {
>             System.out.println("FAIL");
>         }
>     }
> }
> The source of the crash is in throwing StackOverflowError in fast path GC helper, where M2n frame is not created. To fix this bug required implement support of runtime exceptions in runtime helper or rewrite this helpers on "magic".

-- 
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