Return-Path: Delivered-To: apmail-harmony-commits-archive@www.apache.org Received: (qmail 27465 invoked from network); 21 Nov 2007 12:05:06 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 21 Nov 2007 12:05:06 -0000 Received: (qmail 51425 invoked by uid 500); 21 Nov 2007 12:04:53 -0000 Delivered-To: apmail-harmony-commits-archive@harmony.apache.org Received: (qmail 51398 invoked by uid 500); 21 Nov 2007 12:04:53 -0000 Mailing-List: contact commits-help@harmony.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@harmony.apache.org Delivered-To: mailing list commits@harmony.apache.org Received: (qmail 51389 invoked by uid 99); 21 Nov 2007 12:04:53 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 21 Nov 2007 04:04:53 -0800 X-ASF-Spam-Status: No, hits=-100.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.4] (HELO brutus.apache.org) (140.211.11.4) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 21 Nov 2007 12:05:04 +0000 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id 7272F714231 for ; Wed, 21 Nov 2007 04:04:43 -0800 (PST) Message-ID: <9662963.1195646683466.JavaMail.jira@brutus> Date: Wed, 21 Nov 2007 04:04:43 -0800 (PST) From: "Alexei Zakharov (JIRA)" To: commits@harmony.apache.org Subject: [jira] Closed: (HARMONY-4873) [drlvm][exception] NullPointerException causes SIGSEGV In-Reply-To: <9853564.1190970830626.JavaMail.jira@brutus> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/jira/browse/HARMONY-4873?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Alexei Zakharov closed HARMONY-4873. ------------------------------------ > [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.