Return-Path: Delivered-To: apmail-harmony-commits-archive@www.apache.org Received: (qmail 44962 invoked from network); 11 Nov 2008 12:39:35 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 11 Nov 2008 12:39:35 -0000 Received: (qmail 65229 invoked by uid 500); 11 Nov 2008 12:39:43 -0000 Delivered-To: apmail-harmony-commits-archive@harmony.apache.org Received: (qmail 65215 invoked by uid 500); 11 Nov 2008 12:39:42 -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 65206 invoked by uid 99); 11 Nov 2008 12:39:42 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 11 Nov 2008 04:39:42 -0800 X-ASF-Spam-Status: No, hits=-2000.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.140] (HELO brutus.apache.org) (140.211.11.140) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 11 Nov 2008 12:38:31 +0000 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id 6BFEA234C297 for ; Tue, 11 Nov 2008 04:38:44 -0800 (PST) Message-ID: <1946901394.1226407124441.JavaMail.jira@brutus> Date: Tue, 11 Nov 2008 04:38:44 -0800 (PST) From: "Tim Ellison (JIRA)" To: commits@harmony.apache.org Subject: [jira] Commented: (HARMONY-6013) Problems with null pointer exception catch in server or opt mode for Java applications In-Reply-To: <862823978.1226391524271.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-6013?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12646539#action_12646539 ] Tim Ellison commented on HARMONY-6013: -------------------------------------- I don't see the same failure using r711744 on Windows XP... $> java -showversion Btest5710 Apache Harmony Launcher : (c) Copyright 1991, 2008 The Apache Software Foundation or its licensors, as applicable. java version "1.5.0" pre-alpha : not complete or compatible svn = r711744, (Nov 11 2008), Windows/ia32/msvc 1310, release build http://harmony.apache.org Start Btest5710 test... PASSED: java.lang.NullPointerException Which build are you using? > Problems with null pointer exception catch in server or opt mode for Java applications > --------------------------------------------------------------------------------------- > > Key: HARMONY-6013 > URL: https://issues.apache.org/jira/browse/HARMONY-6013 > Project: Harmony > Issue Type: Bug > Components: DRLVM > Affects Versions: 5.0M7 > Environment: Windows XP OS, Intel Core(TM)2 Duo CPU > Reporter: Zhiguo Ge > > Harmony has problems with null pointer exception catch under server or opt mode for Java applications. > The following shows a test example: > public class Btest5710 { > > Object obj; > public static void main(String [] args) { > (new Btest5710()).test(); > } > public void test() { > System.err.println("Start Btest5710 test..."); > try { > sync(); > System.err.println("FAILED: NullPointerException was expected"); > System.exit(-99); > } catch (NullPointerException e) { > System.err.println("PASSED: " + e); > } catch (Throwable e) { > System.err.println("Unexpected exception was thrown:"); > e.printStackTrace(); > System.err.println("FAILED"); > System.exit(-99); > } > } > void sync() { > synchronized (obj) { > obj = new Object(); > } > } > } > When running in server or opt mode, error will happen and the following is the error message. > Signal reported: GENERAL_PROTECTION_FAULT > Registers: > EAX: 0x0003f700, EBX: 0x208667ac, ECX: 0x00000004, EDX: 0x00000003 > ESI: 0x02fed15c, EDI: 0x0013f8c0, ESP: 0x0013f6f8, EBP: 0x0086e740 > EIP: 0x00820b8f -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.