You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@harmony.apache.org by "Gregory Shimansky (JIRA)" <ji...@apache.org> on 2007/10/04 14:27:50 UTC

[jira] Updated: (HARMONY-4873) [drlvm][exception] NullPointerException causes SIGSEGV

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

Gregory Shimansky updated HARMONY-4873:
---------------------------------------

    Attachment: HARMONY-4873.patch

I wrote a workaround patch for this bug. It kind of "reverts" the changes done to exn_athrow_regs on Linux in HARMONY-4407 commit.

> [drlvm][exception] NullPointerException causes SIGSEGV
> ------------------------------------------------------
>
>                 Key: HARMONY-4873
>                 URL: https://issues.apache.org/jira/browse/HARMONY-4873
>             Project: Harmony
>          Issue Type: Bug
>          Components: DRLVM
>         Environment: Debian Linux IA32
>            Reporter: Alexei Zakharov
>         Attachments: HARMONY-4873.patch
>
>
> The following innocent test causes segmentation fault if executed on DRLVM. However, it passes ok on RI and J9.
> Test113.java
> ---
> import java.io.*;
> public class Test113 {
>    static class A implements Serializable {
>        private final byte[] encoding = null;
>        protected A() {}
>        protected Object writeReplace() {
>            return new String(encoding.clone());
>        }
>    }
>    public static void main(String argv[]) throws Exception {
>        ByteArrayOutputStream out = new ByteArrayOutputStream();
>        ObjectOutputStream oos = new ObjectOutputStream(out);
>        A a = new A();
>        for (int i = 0; i < 2; i++) {
>           try {
>               System.out.println("ITERATION " + i);
>               oos.writeObject(a);
>           } catch (NullPointerException e) {
>               System.out.println("NPE catched");
>           }
>        }
>        System.out.println("PASS");
>    }
> }
> ---

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.