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/10/31 14:25:16 UTC

[jira] Created: (HARMONY-2018) [DRLVM] Fix support of SOE and other runtime exceptions in VM native code

[DRLVM] Fix support of SOE and other runtime exceptions in VM native code
-------------------------------------------------------------------------

                 Key: HARMONY-2018
                 URL: http://issues.apache.org/jira/browse/HARMONY-2018
             Project: Harmony
          Issue Type: Bug
          Components: DRLVM
            Reporter: Pavel Afremov


The following test shows that runtime exceptions in VM native code aren't processed correctly.

package exception;

class FinalizeStackTest {
    private static final int MAX_DEPTH = 1000000;

    FinalizeStackTest(int c) {
        if (c > 0) {
            new FinalizeStackTest(c - 1);
        } else {
            System.out.println("PASS");
        }
    }

    protected void finalize() {
        / empty
    }

    public static void main(String[] args) {
        try {
            new FinalizeStackTest(MAX_DEPTH);
            System.out.println("FAIL");
        } catch (StackOverflowError soe) {
            System.out.println("PASS : " + soe);
        } catch (Throwable th) {
            System.out.println("FAIL");
        }
    }
}



-- 
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-2018) [DRLVM] Fix support of SOE and other runtime exceptions in VM native code

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

Gregory Shimansky updated HARMONY-2018:
---------------------------------------

    Patch Info: [Patch Available]

> [DRLVM] Fix support of SOE and other runtime exceptions in VM native code
> -------------------------------------------------------------------------
>
>                 Key: HARMONY-2018
>                 URL: http://issues.apache.org/jira/browse/HARMONY-2018
>             Project: Harmony
>          Issue Type: Bug
>          Components: DRLVM
>            Reporter: Pavel Afremov
>         Assigned To: Gregory Shimansky
>         Attachments: Fix-support-of-SOE-and-other-runtime-exceptions-in-VM-native-code.txt
>
>
> The following test shows that runtime exceptions in VM native code aren't processed correctly.
> package exception;
> class FinalizeStackTest {
>     private static final int MAX_DEPTH = 1000000;
>     FinalizeStackTest(int c) {
>         if (c > 0) {
>             new FinalizeStackTest(c - 1);
>         } else {
>             System.out.println("PASS");
>         }
>     }
>     protected void finalize() {
>         / empty
>     }
>     public static void main(String[] args) {
>         try {
>             new FinalizeStackTest(MAX_DEPTH);
>             System.out.println("FAIL");
>         } catch (StackOverflowError soe) {
>             System.out.println("PASS : " + soe);
>         } catch (Throwable th) {
>             System.out.println("FAIL");
>         }
>     }
> }

-- 
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] Commented: (HARMONY-2018) [DRLVM] Fix support of SOE and other runtime exceptions in VM native code

Posted by "Rana Dasgupta (JIRA)" <ji...@apache.org>.
    [ http://issues.apache.org/jira/browse/HARMONY-2018?page=comments#action_12448667 ] 
            
Rana Dasgupta commented on HARMONY-2018:
----------------------------------------

Hangs on Red Hat Enterprise Linux. 
Pavel, on what platform are you running your tests? Please add acceptance test details

> [DRLVM] Fix support of SOE and other runtime exceptions in VM native code
> -------------------------------------------------------------------------
>
>                 Key: HARMONY-2018
>                 URL: http://issues.apache.org/jira/browse/HARMONY-2018
>             Project: Harmony
>          Issue Type: Bug
>          Components: DRLVM
>            Reporter: Pavel Afremov
>         Assigned To: Gregory Shimansky
>         Attachments: Fix-support-of-SOE-and-other-runtime-exceptions-in-VM-native-code.txt, Fix-support-of-SOE-and-other-runtime-exceptions-in-VM-native-code.txt, Fix-support-of-SOE-and-other-runtime-exceptions-in-VM-native-code.txt
>
>
> The following test shows that runtime exceptions in VM native code aren't processed correctly.
> package exception;
> class FinalizeStackTest {
>     private static final int MAX_DEPTH = 1000000;
>     FinalizeStackTest(int c) {
>         if (c > 0) {
>             new FinalizeStackTest(c - 1);
>         } else {
>             System.out.println("PASS");
>         }
>     }
>     protected void finalize() {
>         / empty
>     }
>     public static void main(String[] args) {
>         try {
>             new FinalizeStackTest(MAX_DEPTH);
>             System.out.println("FAIL");
>         } catch (StackOverflowError soe) {
>             System.out.println("PASS : " + soe);
>         } catch (Throwable th) {
>             System.out.println("FAIL");
>         }
>     }
> }

-- 
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] Assigned: (HARMONY-2018) [DRLVM] Fix support of SOE and other runtime exceptions in VM native code

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

Gregory Shimansky reassigned HARMONY-2018:
------------------------------------------

    Assignee: Gregory Shimansky

> [DRLVM] Fix support of SOE and other runtime exceptions in VM native code
> -------------------------------------------------------------------------
>
>                 Key: HARMONY-2018
>                 URL: http://issues.apache.org/jira/browse/HARMONY-2018
>             Project: Harmony
>          Issue Type: Bug
>          Components: DRLVM
>            Reporter: Pavel Afremov
>         Assigned To: Gregory Shimansky
>         Attachments: Fix-support-of-SOE-and-other-runtime-exceptions-in-VM-native-code.txt
>
>
> The following test shows that runtime exceptions in VM native code aren't processed correctly.
> package exception;
> class FinalizeStackTest {
>     private static final int MAX_DEPTH = 1000000;
>     FinalizeStackTest(int c) {
>         if (c > 0) {
>             new FinalizeStackTest(c - 1);
>         } else {
>             System.out.println("PASS");
>         }
>     }
>     protected void finalize() {
>         / empty
>     }
>     public static void main(String[] args) {
>         try {
>             new FinalizeStackTest(MAX_DEPTH);
>             System.out.println("FAIL");
>         } catch (StackOverflowError soe) {
>             System.out.println("PASS : " + soe);
>         } catch (Throwable th) {
>             System.out.println("FAIL");
>         }
>     }
> }

-- 
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] Commented: (HARMONY-2018) [DRLVM] Fix support of SOE and other runtime exceptions in VM native code

Posted by "Pavel Afremov (JIRA)" <ji...@apache.org>.
    [ http://issues.apache.org/jira/browse/HARMONY-2018?page=comments#action_12448416 ] 
            
Pavel Afremov commented on HARMONY-2018:
----------------------------------------

No more difference are there.

> [DRLVM] Fix support of SOE and other runtime exceptions in VM native code
> -------------------------------------------------------------------------
>
>                 Key: HARMONY-2018
>                 URL: http://issues.apache.org/jira/browse/HARMONY-2018
>             Project: Harmony
>          Issue Type: Bug
>          Components: DRLVM
>            Reporter: Pavel Afremov
>         Assigned To: Gregory Shimansky
>         Attachments: Fix-support-of-SOE-and-other-runtime-exceptions-in-VM-native-code.txt, Fix-support-of-SOE-and-other-runtime-exceptions-in-VM-native-code.txt
>
>
> The following test shows that runtime exceptions in VM native code aren't processed correctly.
> package exception;
> class FinalizeStackTest {
>     private static final int MAX_DEPTH = 1000000;
>     FinalizeStackTest(int c) {
>         if (c > 0) {
>             new FinalizeStackTest(c - 1);
>         } else {
>             System.out.println("PASS");
>         }
>     }
>     protected void finalize() {
>         / empty
>     }
>     public static void main(String[] args) {
>         try {
>             new FinalizeStackTest(MAX_DEPTH);
>             System.out.println("FAIL");
>         } catch (StackOverflowError soe) {
>             System.out.println("PASS : " + soe);
>         } catch (Throwable th) {
>             System.out.println("FAIL");
>         }
>     }
> }

-- 
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] Commented: (HARMONY-2018) [DRLVM] Fix support of SOE and other runtime exceptions in VM native code

Posted by "Pavel Afremov (JIRA)" <ji...@apache.org>.
    [ http://issues.apache.org/jira/browse/HARMONY-2018?page=comments#action_12448700 ] 
            
Pavel Afremov commented on HARMONY-2018:
----------------------------------------

I've checked it on SUSE LINUX Enterprise Server 9 (i586).
It works perferct in both debug and release mode on IA32.
Also it work on windows. I can't check on my EM64T, becuse build is broken on it with out my patch.

> [DRLVM] Fix support of SOE and other runtime exceptions in VM native code
> -------------------------------------------------------------------------
>
>                 Key: HARMONY-2018
>                 URL: http://issues.apache.org/jira/browse/HARMONY-2018
>             Project: Harmony
>          Issue Type: Bug
>          Components: DRLVM
>            Reporter: Pavel Afremov
>         Assigned To: Gregory Shimansky
>         Attachments: Fix-support-of-SOE-and-other-runtime-exceptions-in-VM-native-code.txt, Fix-support-of-SOE-and-other-runtime-exceptions-in-VM-native-code.txt, Fix-support-of-SOE-and-other-runtime-exceptions-in-VM-native-code.txt
>
>
> The following test shows that runtime exceptions in VM native code aren't processed correctly.
> package exception;
> class FinalizeStackTest {
>     private static final int MAX_DEPTH = 1000000;
>     FinalizeStackTest(int c) {
>         if (c > 0) {
>             new FinalizeStackTest(c - 1);
>         } else {
>             System.out.println("PASS");
>         }
>     }
>     protected void finalize() {
>         / empty
>     }
>     public static void main(String[] args) {
>         try {
>             new FinalizeStackTest(MAX_DEPTH);
>             System.out.println("FAIL");
>         } catch (StackOverflowError soe) {
>             System.out.println("PASS : " + soe);
>         } catch (Throwable th) {
>             System.out.println("FAIL");
>         }
>     }
> }

-- 
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] Commented: (HARMONY-2018) [DRLVM] Fix support of SOE and other runtime exceptions in VM native code

Posted by "Pavel Afremov (JIRA)" <ji...@apache.org>.
    [ http://issues.apache.org/jira/browse/HARMONY-2018?page=comments#action_12448096 ] 
            
Pavel Afremov commented on HARMONY-2018:
----------------------------------------

I reproduce hung up.


> [DRLVM] Fix support of SOE and other runtime exceptions in VM native code
> -------------------------------------------------------------------------
>
>                 Key: HARMONY-2018
>                 URL: http://issues.apache.org/jira/browse/HARMONY-2018
>             Project: Harmony
>          Issue Type: Bug
>          Components: DRLVM
>            Reporter: Pavel Afremov
>         Assigned To: Gregory Shimansky
>         Attachments: Fix-support-of-SOE-and-other-runtime-exceptions-in-VM-native-code.txt, Fix-support-of-SOE-and-other-runtime-exceptions-in-VM-native-code.txt
>
>
> The following test shows that runtime exceptions in VM native code aren't processed correctly.
> package exception;
> class FinalizeStackTest {
>     private static final int MAX_DEPTH = 1000000;
>     FinalizeStackTest(int c) {
>         if (c > 0) {
>             new FinalizeStackTest(c - 1);
>         } else {
>             System.out.println("PASS");
>         }
>     }
>     protected void finalize() {
>         / empty
>     }
>     public static void main(String[] args) {
>         try {
>             new FinalizeStackTest(MAX_DEPTH);
>             System.out.println("FAIL");
>         } catch (StackOverflowError soe) {
>             System.out.println("PASS : " + soe);
>         } catch (Throwable th) {
>             System.out.println("FAIL");
>         }
>     }
> }

-- 
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-2018) [DRLVM] Fix support of SOE and other runtime exceptions in VM native code

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

Pavel Afremov updated HARMONY-2018:
-----------------------------------

    Attachment: Fix-support-of-SOE-and-other-runtime-exceptions-in-VM-native-code.txt

This patch works on Windows IA32 and Linux IA32. I can't check it on Linux EM64T because DRL VM hangs up on it on any tests without my patch.

> [DRLVM] Fix support of SOE and other runtime exceptions in VM native code
> -------------------------------------------------------------------------
>
>                 Key: HARMONY-2018
>                 URL: http://issues.apache.org/jira/browse/HARMONY-2018
>             Project: Harmony
>          Issue Type: Bug
>          Components: DRLVM
>            Reporter: Pavel Afremov
>         Assigned To: Gregory Shimansky
>         Attachments: Fix-support-of-SOE-and-other-runtime-exceptions-in-VM-native-code.txt, Fix-support-of-SOE-and-other-runtime-exceptions-in-VM-native-code.txt
>
>
> The following test shows that runtime exceptions in VM native code aren't processed correctly.
> package exception;
> class FinalizeStackTest {
>     private static final int MAX_DEPTH = 1000000;
>     FinalizeStackTest(int c) {
>         if (c > 0) {
>             new FinalizeStackTest(c - 1);
>         } else {
>             System.out.println("PASS");
>         }
>     }
>     protected void finalize() {
>         / empty
>     }
>     public static void main(String[] args) {
>         try {
>             new FinalizeStackTest(MAX_DEPTH);
>             System.out.println("FAIL");
>         } catch (StackOverflowError soe) {
>             System.out.println("PASS : " + soe);
>         } catch (Throwable th) {
>             System.out.println("FAIL");
>         }
>     }
> }

-- 
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] Resolved: (HARMONY-2018) [DRLVM] Fix support of SOE and other runtime exceptions in VM native code

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

Gregory Shimansky resolved HARMONY-2018.
----------------------------------------

    Resolution: Fixed

Patch applied at 475029. Please check that it was applied as expected. Namely the signals_ipf.cpp file.

If you can please take care about crashing smoke tests x86_64.

> [DRLVM] Fix support of SOE and other runtime exceptions in VM native code
> -------------------------------------------------------------------------
>
>                 Key: HARMONY-2018
>                 URL: http://issues.apache.org/jira/browse/HARMONY-2018
>             Project: Harmony
>          Issue Type: Bug
>          Components: DRLVM
>            Reporter: Pavel Afremov
>         Assigned To: Gregory Shimansky
>         Attachments: Fix-support-of-SOE-and-other-runtime-exceptions-in-VM-native-code.txt, Fix-support-of-SOE-and-other-runtime-exceptions-in-VM-native-code.txt, Fix-support-of-SOE-and-other-runtime-exceptions-in-VM-native-code.txt, Fix-support-of-SOE-and-other-runtime-exceptions-in-VM-native-code.txt
>
>
> The following test shows that runtime exceptions in VM native code aren't processed correctly.
> package exception;
> class FinalizeStackTest {
>     private static final int MAX_DEPTH = 1000000;
>     FinalizeStackTest(int c) {
>         if (c > 0) {
>             new FinalizeStackTest(c - 1);
>         } else {
>             System.out.println("PASS");
>         }
>     }
>     protected void finalize() {
>         / empty
>     }
>     public static void main(String[] args) {
>         try {
>             new FinalizeStackTest(MAX_DEPTH);
>             System.out.println("FAIL");
>         } catch (StackOverflowError soe) {
>             System.out.println("PASS : " + soe);
>         } catch (Throwable th) {
>             System.out.println("FAIL");
>         }
>     }
> }

-- 
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] Commented: (HARMONY-2018) [DRLVM] Fix support of SOE and other runtime exceptions in VM native code

Posted by "Rana Dasgupta (JIRA)" <ji...@apache.org>.
    [ http://issues.apache.org/jira/browse/HARMONY-2018?page=comments#action_12448266 ] 
            
Rana Dasgupta commented on HARMONY-2018:
----------------------------------------

Other than the test comment correction is there any difference between the patches? Both patches hang on Linux, running the FinalizeStackTest

> [DRLVM] Fix support of SOE and other runtime exceptions in VM native code
> -------------------------------------------------------------------------
>
>                 Key: HARMONY-2018
>                 URL: http://issues.apache.org/jira/browse/HARMONY-2018
>             Project: Harmony
>          Issue Type: Bug
>          Components: DRLVM
>            Reporter: Pavel Afremov
>         Assigned To: Gregory Shimansky
>         Attachments: Fix-support-of-SOE-and-other-runtime-exceptions-in-VM-native-code.txt, Fix-support-of-SOE-and-other-runtime-exceptions-in-VM-native-code.txt
>
>
> The following test shows that runtime exceptions in VM native code aren't processed correctly.
> package exception;
> class FinalizeStackTest {
>     private static final int MAX_DEPTH = 1000000;
>     FinalizeStackTest(int c) {
>         if (c > 0) {
>             new FinalizeStackTest(c - 1);
>         } else {
>             System.out.println("PASS");
>         }
>     }
>     protected void finalize() {
>         / empty
>     }
>     public static void main(String[] args) {
>         try {
>             new FinalizeStackTest(MAX_DEPTH);
>             System.out.println("FAIL");
>         } catch (StackOverflowError soe) {
>             System.out.println("PASS : " + soe);
>         } catch (Throwable th) {
>             System.out.println("FAIL");
>         }
>     }
> }

-- 
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] Commented: (HARMONY-2018) [DRLVM] Fix support of SOE and other runtime exceptions in VM native code

Posted by "Gregory Shimansky (JIRA)" <ji...@apache.org>.
    [ http://issues.apache.org/jira/browse/HARMONY-2018?page=comments#action_12448616 ] 
            
Gregory Shimansky commented on HARMONY-2018:
--------------------------------------------

I've checked on SuSE9 and it appears that hangup is fixed on it. So now it is only necessary to fix more modern distributions. I've checked on gentoo, the test still fails in the same way as on ubuntu. Didn't try fedora but most likely it should hang as well. Probably it is a different glibc version.

> [DRLVM] Fix support of SOE and other runtime exceptions in VM native code
> -------------------------------------------------------------------------
>
>                 Key: HARMONY-2018
>                 URL: http://issues.apache.org/jira/browse/HARMONY-2018
>             Project: Harmony
>          Issue Type: Bug
>          Components: DRLVM
>            Reporter: Pavel Afremov
>         Assigned To: Gregory Shimansky
>         Attachments: Fix-support-of-SOE-and-other-runtime-exceptions-in-VM-native-code.txt, Fix-support-of-SOE-and-other-runtime-exceptions-in-VM-native-code.txt, Fix-support-of-SOE-and-other-runtime-exceptions-in-VM-native-code.txt
>
>
> The following test shows that runtime exceptions in VM native code aren't processed correctly.
> package exception;
> class FinalizeStackTest {
>     private static final int MAX_DEPTH = 1000000;
>     FinalizeStackTest(int c) {
>         if (c > 0) {
>             new FinalizeStackTest(c - 1);
>         } else {
>             System.out.println("PASS");
>         }
>     }
>     protected void finalize() {
>         / empty
>     }
>     public static void main(String[] args) {
>         try {
>             new FinalizeStackTest(MAX_DEPTH);
>             System.out.println("FAIL");
>         } catch (StackOverflowError soe) {
>             System.out.println("PASS : " + soe);
>         } catch (Throwable th) {
>             System.out.println("FAIL");
>         }
>     }
> }

-- 
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-2018) [DRLVM] Fix support of SOE and other runtime exceptions in VM native code

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

Pavel Afremov updated HARMONY-2018:
-----------------------------------

    Attachment: Fix-support-of-SOE-and-other-runtime-exceptions-in-VM-native-code.txt

New patch with hung up fix.

> [DRLVM] Fix support of SOE and other runtime exceptions in VM native code
> -------------------------------------------------------------------------
>
>                 Key: HARMONY-2018
>                 URL: http://issues.apache.org/jira/browse/HARMONY-2018
>             Project: Harmony
>          Issue Type: Bug
>          Components: DRLVM
>            Reporter: Pavel Afremov
>         Assigned To: Gregory Shimansky
>         Attachments: Fix-support-of-SOE-and-other-runtime-exceptions-in-VM-native-code.txt, Fix-support-of-SOE-and-other-runtime-exceptions-in-VM-native-code.txt, Fix-support-of-SOE-and-other-runtime-exceptions-in-VM-native-code.txt
>
>
> The following test shows that runtime exceptions in VM native code aren't processed correctly.
> package exception;
> class FinalizeStackTest {
>     private static final int MAX_DEPTH = 1000000;
>     FinalizeStackTest(int c) {
>         if (c > 0) {
>             new FinalizeStackTest(c - 1);
>         } else {
>             System.out.println("PASS");
>         }
>     }
>     protected void finalize() {
>         / empty
>     }
>     public static void main(String[] args) {
>         try {
>             new FinalizeStackTest(MAX_DEPTH);
>             System.out.println("FAIL");
>         } catch (StackOverflowError soe) {
>             System.out.println("PASS : " + soe);
>         } catch (Throwable th) {
>             System.out.println("FAIL");
>         }
>     }
> }

-- 
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] Commented: (HARMONY-2018) [DRLVM] Fix support of SOE and other runtime exceptions in VM native code

Posted by "Gregory Shimansky (JIRA)" <ji...@apache.org>.
    [ http://issues.apache.org/jira/browse/HARMONY-2018?page=comments#action_12449744 ] 
            
Gregory Shimansky commented on HARMONY-2018:
--------------------------------------------

This patch didn't apply cleanly to vm/vmcore/src/util/linux/signals_ipf.cpp. But it seems like the code in it is no longer relevant after HARMONY-2004 was applied. Also on x86_64 this patch crashes on StackTest and FinalizeStackTest on SLES10.

> [DRLVM] Fix support of SOE and other runtime exceptions in VM native code
> -------------------------------------------------------------------------
>
>                 Key: HARMONY-2018
>                 URL: http://issues.apache.org/jira/browse/HARMONY-2018
>             Project: Harmony
>          Issue Type: Bug
>          Components: DRLVM
>            Reporter: Pavel Afremov
>         Assigned To: Gregory Shimansky
>         Attachments: Fix-support-of-SOE-and-other-runtime-exceptions-in-VM-native-code.txt, Fix-support-of-SOE-and-other-runtime-exceptions-in-VM-native-code.txt, Fix-support-of-SOE-and-other-runtime-exceptions-in-VM-native-code.txt, Fix-support-of-SOE-and-other-runtime-exceptions-in-VM-native-code.txt
>
>
> The following test shows that runtime exceptions in VM native code aren't processed correctly.
> package exception;
> class FinalizeStackTest {
>     private static final int MAX_DEPTH = 1000000;
>     FinalizeStackTest(int c) {
>         if (c > 0) {
>             new FinalizeStackTest(c - 1);
>         } else {
>             System.out.println("PASS");
>         }
>     }
>     protected void finalize() {
>         / empty
>     }
>     public static void main(String[] args) {
>         try {
>             new FinalizeStackTest(MAX_DEPTH);
>             System.out.println("FAIL");
>         } catch (StackOverflowError soe) {
>             System.out.println("PASS : " + soe);
>         } catch (Throwable th) {
>             System.out.println("FAIL");
>         }
>     }
> }

-- 
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] Commented: (HARMONY-2018) [DRLVM] Fix support of SOE and other runtime exceptions in VM native code

Posted by "Pavel Afremov (JIRA)" <ji...@apache.org>.
    [ http://issues.apache.org/jira/browse/HARMONY-2018?page=comments#action_12449958 ] 
            
Pavel Afremov commented on HARMONY-2018:
----------------------------------------

I can't reproduce crash. Both tests are failed as before my patch.

> [DRLVM] Fix support of SOE and other runtime exceptions in VM native code
> -------------------------------------------------------------------------
>
>                 Key: HARMONY-2018
>                 URL: http://issues.apache.org/jira/browse/HARMONY-2018
>             Project: Harmony
>          Issue Type: Bug
>          Components: DRLVM
>            Reporter: Pavel Afremov
>         Assigned To: Gregory Shimansky
>         Attachments: Fix-support-of-SOE-and-other-runtime-exceptions-in-VM-native-code.txt, Fix-support-of-SOE-and-other-runtime-exceptions-in-VM-native-code.txt, Fix-support-of-SOE-and-other-runtime-exceptions-in-VM-native-code.txt, Fix-support-of-SOE-and-other-runtime-exceptions-in-VM-native-code.txt
>
>
> The following test shows that runtime exceptions in VM native code aren't processed correctly.
> package exception;
> class FinalizeStackTest {
>     private static final int MAX_DEPTH = 1000000;
>     FinalizeStackTest(int c) {
>         if (c > 0) {
>             new FinalizeStackTest(c - 1);
>         } else {
>             System.out.println("PASS");
>         }
>     }
>     protected void finalize() {
>         / empty
>     }
>     public static void main(String[] args) {
>         try {
>             new FinalizeStackTest(MAX_DEPTH);
>             System.out.println("FAIL");
>         } catch (StackOverflowError soe) {
>             System.out.println("PASS : " + soe);
>         } catch (Throwable th) {
>             System.out.println("FAIL");
>         }
>     }
> }

-- 
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-2018) [DRLVM] Fix support of SOE and other runtime exceptions in VM native code

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

Pavel Afremov updated HARMONY-2018:
-----------------------------------

    Attachment: Fix-support-of-SOE-and-other-runtime-exceptions-in-VM-native-code.txt

This patch include changes which fix SOE support on Ubuntu 6.06.1.

Fix support of SOE and other runtime exceptions in VM native code.

The fix consists in:
    enable lazy exception scheme,
    remove fake assertions,
    provide separate way of throwing exception for native code from exn_athrow_regs,
    redesign stack mapping  to provide mapping of all stack,
    fix call of gc_alloc by put it in non unwindable area,
    add test excetion.FinalizeStackTest to smoke tests to check this changes.


> [DRLVM] Fix support of SOE and other runtime exceptions in VM native code
> -------------------------------------------------------------------------
>
>                 Key: HARMONY-2018
>                 URL: http://issues.apache.org/jira/browse/HARMONY-2018
>             Project: Harmony
>          Issue Type: Bug
>          Components: DRLVM
>            Reporter: Pavel Afremov
>         Assigned To: Gregory Shimansky
>         Attachments: Fix-support-of-SOE-and-other-runtime-exceptions-in-VM-native-code.txt, Fix-support-of-SOE-and-other-runtime-exceptions-in-VM-native-code.txt, Fix-support-of-SOE-and-other-runtime-exceptions-in-VM-native-code.txt, Fix-support-of-SOE-and-other-runtime-exceptions-in-VM-native-code.txt
>
>
> The following test shows that runtime exceptions in VM native code aren't processed correctly.
> package exception;
> class FinalizeStackTest {
>     private static final int MAX_DEPTH = 1000000;
>     FinalizeStackTest(int c) {
>         if (c > 0) {
>             new FinalizeStackTest(c - 1);
>         } else {
>             System.out.println("PASS");
>         }
>     }
>     protected void finalize() {
>         / empty
>     }
>     public static void main(String[] args) {
>         try {
>             new FinalizeStackTest(MAX_DEPTH);
>             System.out.println("FAIL");
>         } catch (StackOverflowError soe) {
>             System.out.println("PASS : " + soe);
>         } catch (Throwable th) {
>             System.out.println("FAIL");
>         }
>     }
> }

-- 
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] Commented: (HARMONY-2018) [DRLVM] Fix support of SOE and other runtime exceptions in VM native code

Posted by "Pavel Afremov (JIRA)" <ji...@apache.org>.
    [ http://issues.apache.org/jira/browse/HARMONY-2018?page=comments#action_12450668 ] 
            
Pavel Afremov commented on HARMONY-2018:
----------------------------------------

I've added HARMONY-2224 which exclude failed tests from acceptance test set:
    on EM64T
        StackTest
        exception.FinalizerStackTest:
    on Windows.
        gc.LOS


> [DRLVM] Fix support of SOE and other runtime exceptions in VM native code
> -------------------------------------------------------------------------
>
>                 Key: HARMONY-2018
>                 URL: http://issues.apache.org/jira/browse/HARMONY-2018
>             Project: Harmony
>          Issue Type: Bug
>          Components: DRLVM
>            Reporter: Pavel Afremov
>         Assigned To: Gregory Shimansky
>         Attachments: Fix-support-of-SOE-and-other-runtime-exceptions-in-VM-native-code.txt, Fix-support-of-SOE-and-other-runtime-exceptions-in-VM-native-code.txt, Fix-support-of-SOE-and-other-runtime-exceptions-in-VM-native-code.txt, Fix-support-of-SOE-and-other-runtime-exceptions-in-VM-native-code.txt
>
>
> The following test shows that runtime exceptions in VM native code aren't processed correctly.
> package exception;
> class FinalizeStackTest {
>     private static final int MAX_DEPTH = 1000000;
>     FinalizeStackTest(int c) {
>         if (c > 0) {
>             new FinalizeStackTest(c - 1);
>         } else {
>             System.out.println("PASS");
>         }
>     }
>     protected void finalize() {
>         / empty
>     }
>     public static void main(String[] args) {
>         try {
>             new FinalizeStackTest(MAX_DEPTH);
>             System.out.println("FAIL");
>         } catch (StackOverflowError soe) {
>             System.out.println("PASS : " + soe);
>         } catch (Throwable th) {
>             System.out.println("FAIL");
>         }
>     }
> }

-- 
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-2018) [DRLVM] Fix support of SOE and other runtime exceptions in VM native code

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

Pavel Afremov updated HARMONY-2018:
-----------------------------------

    Attachment: Fix-support-of-SOE-and-other-runtime-exceptions-in-VM-native-code.txt

Fix support of SOE and other runtime exceptions in VM native code.

The fix consists in:
    enable lazy exception scheme,
    remove fake assertions,
    provide separate way of throwing exception for native code from exn_athrow_regs,
    add test excetion.FinalizeStackTest to smoke tests to check this changes.


> [DRLVM] Fix support of SOE and other runtime exceptions in VM native code
> -------------------------------------------------------------------------
>
>                 Key: HARMONY-2018
>                 URL: http://issues.apache.org/jira/browse/HARMONY-2018
>             Project: Harmony
>          Issue Type: Bug
>          Components: DRLVM
>            Reporter: Pavel Afremov
>         Attachments: Fix-support-of-SOE-and-other-runtime-exceptions-in-VM-native-code.txt
>
>
> The following test shows that runtime exceptions in VM native code aren't processed correctly.
> package exception;
> class FinalizeStackTest {
>     private static final int MAX_DEPTH = 1000000;
>     FinalizeStackTest(int c) {
>         if (c > 0) {
>             new FinalizeStackTest(c - 1);
>         } else {
>             System.out.println("PASS");
>         }
>     }
>     protected void finalize() {
>         / empty
>     }
>     public static void main(String[] args) {
>         try {
>             new FinalizeStackTest(MAX_DEPTH);
>             System.out.println("FAIL");
>         } catch (StackOverflowError soe) {
>             System.out.println("PASS : " + soe);
>         } catch (Throwable th) {
>             System.out.println("FAIL");
>         }
>     }
> }

-- 
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] Commented: (HARMONY-2018) [DRLVM] Fix support of SOE and other runtime exceptions in VM native code

Posted by "Gregory Shimansky (JIRA)" <ji...@apache.org>.
    [ http://issues.apache.org/jira/browse/HARMONY-2018?page=comments#action_12447929 ] 
            
Gregory Shimansky commented on HARMONY-2018:
--------------------------------------------

The test exception.FinalizeStackTest hangs for me on Linux with this patch. Also patch in test needs a small correction in the "/ empty" comment.

> [DRLVM] Fix support of SOE and other runtime exceptions in VM native code
> -------------------------------------------------------------------------
>
>                 Key: HARMONY-2018
>                 URL: http://issues.apache.org/jira/browse/HARMONY-2018
>             Project: Harmony
>          Issue Type: Bug
>          Components: DRLVM
>            Reporter: Pavel Afremov
>         Assigned To: Gregory Shimansky
>         Attachments: Fix-support-of-SOE-and-other-runtime-exceptions-in-VM-native-code.txt
>
>
> The following test shows that runtime exceptions in VM native code aren't processed correctly.
> package exception;
> class FinalizeStackTest {
>     private static final int MAX_DEPTH = 1000000;
>     FinalizeStackTest(int c) {
>         if (c > 0) {
>             new FinalizeStackTest(c - 1);
>         } else {
>             System.out.println("PASS");
>         }
>     }
>     protected void finalize() {
>         / empty
>     }
>     public static void main(String[] args) {
>         try {
>             new FinalizeStackTest(MAX_DEPTH);
>             System.out.println("FAIL");
>         } catch (StackOverflowError soe) {
>             System.out.println("PASS : " + soe);
>         } catch (Throwable th) {
>             System.out.println("FAIL");
>         }
>     }
> }

-- 
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] Commented: (HARMONY-2018) [DRLVM] Fix support of SOE and other runtime exceptions in VM native code

Posted by "Gregory Shimansky (JIRA)" <ji...@apache.org>.
    [ http://issues.apache.org/jira/browse/HARMONY-2018?page=comments#action_12448593 ] 
            
Gregory Shimansky commented on HARMONY-2018:
--------------------------------------------

I hate to say it, but this test still hangs for me on ubuntu. It prints

PASS : java.lang.StackOverflowError

but hangs on shutdown :(

> [DRLVM] Fix support of SOE and other runtime exceptions in VM native code
> -------------------------------------------------------------------------
>
>                 Key: HARMONY-2018
>                 URL: http://issues.apache.org/jira/browse/HARMONY-2018
>             Project: Harmony
>          Issue Type: Bug
>          Components: DRLVM
>            Reporter: Pavel Afremov
>         Assigned To: Gregory Shimansky
>         Attachments: Fix-support-of-SOE-and-other-runtime-exceptions-in-VM-native-code.txt, Fix-support-of-SOE-and-other-runtime-exceptions-in-VM-native-code.txt, Fix-support-of-SOE-and-other-runtime-exceptions-in-VM-native-code.txt
>
>
> The following test shows that runtime exceptions in VM native code aren't processed correctly.
> package exception;
> class FinalizeStackTest {
>     private static final int MAX_DEPTH = 1000000;
>     FinalizeStackTest(int c) {
>         if (c > 0) {
>             new FinalizeStackTest(c - 1);
>         } else {
>             System.out.println("PASS");
>         }
>     }
>     protected void finalize() {
>         / empty
>     }
>     public static void main(String[] args) {
>         try {
>             new FinalizeStackTest(MAX_DEPTH);
>             System.out.println("FAIL");
>         } catch (StackOverflowError soe) {
>             System.out.println("PASS : " + soe);
>         } catch (Throwable th) {
>             System.out.println("FAIL");
>         }
>     }
> }

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