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:30:21 UTC

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

[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


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

        

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

Posted by "Gregory Shimansky (JIRA)" <ji...@apache.org>.
     [ http://issues.apache.org/jira/browse/HARMONY-2502?page=all ]

Gregory Shimansky updated HARMONY-2502:
---------------------------------------

    Summary: [drlvm] Runtime exception in fast path helpers crashes DRLVM.  (was: [DRLVM] Runtime exception in fast path helpers crashes DRLVM.)

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

        

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

Posted by "Pavel Afremov (JIRA)" <ji...@apache.org>.
     [ 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

        

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

Posted by "Gregory Shimansky (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/HARMONY-2502?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Gregory Shimansky updated HARMONY-2502:
---------------------------------------

    Summary: [drlvm][helpers] Runtime exception in fast path helpers crashes DRLVM.  (was: [drlvm] Runtime exception in fast path helpers crashes DRLVM.)

> [drlvm][helpers] Runtime exception in fast path helpers crashes DRLVM.
> ----------------------------------------------------------------------
>
>                 Key: HARMONY-2502
>                 URL: https://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.
-
You can reply to this email to add a comment to the issue online.


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

Posted by "Vladimir Beliaev (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/HARMONY-2502?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12497864 ] 

Vladimir Beliaev commented on HARMONY-2502:
-------------------------------------------

Tue May 22 17:21:20 RDT 2007

The issue is still reproducible on Windows/x86. 

It does not crash anymore (still it prints neither "PASSED" not "FAILED") and exit code is 128.

Thanks
Vladimir Beliaev

> [drlvm] Runtime exception in fast path helpers crashes DRLVM.
> -------------------------------------------------------------
>
>                 Key: HARMONY-2502
>                 URL: https://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.
-
You can reply to this email to add a comment to the issue online.