You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@harmony.apache.org by "Zhiguo Ge (JIRA)" <ji...@apache.org> on 2008/11/11 09:18:44 UTC
[jira] Created: (HARMONY-6013) Problems with null pointer exception
catch in server or opt mode for Java applications
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.
Re: [jira] Resolved: (HARMONY-6013) Problems with null pointer exception catch in server or opt mode for Java applications
Posted by chunrong lai <ch...@gmail.com>.
+1 to open a new JIRA of "make sure the CHECK NULL before
monitorEnter/monitorExit will not be eliminated simply".
The NPE reported in HARMONY-6013 is found since r659128 which removed some
checknull in VM helpers.
In a seperated e-mail Mikhail think that the checknull must be kept.
http://mail-archives.apache.org/mod_mbox/harmony-dev/200811.mbox/%3cbc79dd600811120316i1a4511d5x507f522bfb0bfd1a@mail.gmail.com%3e
So I think r713673 (re-enable the checknulls in VM helpers) did fix/resolve
HARMONY-6013.
On Mon, Nov 17, 2008 at 11:18 AM, Xiao-Feng Li <xi...@gmail.com>wrote:
> On Sat, Nov 15, 2008 at 9:24 AM, bu qi cheng <bu...@gmail.com> wrote:
> > Currently, to meet M8. ChunRong has done the patch unrolling to walk
> around
> > the bug. We are waiting for the Mikhail's direction on the "magic for
> > monitorEnter/monitorExit". If there are "magic for
> > monitorEnter/monitorExit", the unrolling will be ok. If there are no
> these
> > kind magic, we will use our solution (To make sure the CHECK NULL before
> > monitorEnter/monitorExit will not be eliminated simply, or eliminate the
> > mechanism: "catch the un-catched throw with hardware") for the problem.
>
> In this case, we probably should open a new JIRA or just re-open this JIRA.
>
> Btw, I guess "catch the un-catched throw with hardware" is still a good
> idea.
>
> Thanks,
> xiaofeng
>
> >
> > Thanks!
> >
> > Buqi
> >
> >
> >
> >
> > On Fri, Nov 14, 2008 at 10:01 AM, Xiao-Feng Li <xiaofeng.li@gmail.com
> >wrote:
> >
> >> Is this bug worked around or really fixed?
> >>
> >> On Fri, Nov 14, 2008 at 9:54 AM, Chunrong Lai (JIRA) <ji...@apache.org>
> >> wrote:
> >> >
> >> > [
> >>
> https://issues.apache.org/jira/browse/HARMONY-6013?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
> ]
> >> >
> >> > Chunrong Lai resolved HARMONY-6013.
> >> > -----------------------------------
> >> >
> >> > Resolution: Fixed
> >> >
> >> >
> >> > Fixed in r713673.
> >> >
> >> >> 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
> >> >> Assignee: Chunrong Lai
> >> >>
> >> >> 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.
> >> >
> >> >
> >>
> >>
> >>
> >> --
> >> http://xiao-feng.blogspot.com
> >>
> >
>
>
>
> --
> http://xiao-feng.blogspot.com
>
Re: [jira] Resolved: (HARMONY-6013) Problems with null pointer exception catch in server or opt mode for Java applications
Posted by Xiao-Feng Li <xi...@gmail.com>.
On Sat, Nov 15, 2008 at 9:24 AM, bu qi cheng <bu...@gmail.com> wrote:
> Currently, to meet M8. ChunRong has done the patch unrolling to walk around
> the bug. We are waiting for the Mikhail's direction on the "magic for
> monitorEnter/monitorExit". If there are "magic for
> monitorEnter/monitorExit", the unrolling will be ok. If there are no these
> kind magic, we will use our solution (To make sure the CHECK NULL before
> monitorEnter/monitorExit will not be eliminated simply, or eliminate the
> mechanism: "catch the un-catched throw with hardware") for the problem.
In this case, we probably should open a new JIRA or just re-open this JIRA.
Btw, I guess "catch the un-catched throw with hardware" is still a good idea.
Thanks,
xiaofeng
>
> Thanks!
>
> Buqi
>
>
>
>
> On Fri, Nov 14, 2008 at 10:01 AM, Xiao-Feng Li <xi...@gmail.com>wrote:
>
>> Is this bug worked around or really fixed?
>>
>> On Fri, Nov 14, 2008 at 9:54 AM, Chunrong Lai (JIRA) <ji...@apache.org>
>> wrote:
>> >
>> > [
>> https://issues.apache.org/jira/browse/HARMONY-6013?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel]
>> >
>> > Chunrong Lai resolved HARMONY-6013.
>> > -----------------------------------
>> >
>> > Resolution: Fixed
>> >
>> >
>> > Fixed in r713673.
>> >
>> >> 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
>> >> Assignee: Chunrong Lai
>> >>
>> >> 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.
>> >
>> >
>>
>>
>>
>> --
>> http://xiao-feng.blogspot.com
>>
>
--
http://xiao-feng.blogspot.com
Re: [jira] Resolved: (HARMONY-6013) Problems with null pointer exception catch in server or opt mode for Java applications
Posted by bu qi cheng <bu...@gmail.com>.
Currently, to meet M8. ChunRong has done the patch unrolling to walk around
the bug. We are waiting for the Mikhail's direction on the "magic for
monitorEnter/monitorExit". If there are "magic for
monitorEnter/monitorExit", the unrolling will be ok. If there are no these
kind magic, we will use our solution (To make sure the CHECK NULL before
monitorEnter/monitorExit will not be eliminated simply, or eliminate the
mechanism: "catch the un-catched throw with hardware") for the problem.
Thanks!
Buqi
On Fri, Nov 14, 2008 at 10:01 AM, Xiao-Feng Li <xi...@gmail.com>wrote:
> Is this bug worked around or really fixed?
>
> On Fri, Nov 14, 2008 at 9:54 AM, Chunrong Lai (JIRA) <ji...@apache.org>
> wrote:
> >
> > [
> https://issues.apache.org/jira/browse/HARMONY-6013?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel]
> >
> > Chunrong Lai resolved HARMONY-6013.
> > -----------------------------------
> >
> > Resolution: Fixed
> >
> >
> > Fixed in r713673.
> >
> >> 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
> >> Assignee: Chunrong Lai
> >>
> >> 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.
> >
> >
>
>
>
> --
> http://xiao-feng.blogspot.com
>
Re: [jira] Resolved: (HARMONY-6013) Problems with null pointer exception catch in server or opt mode for Java applications
Posted by Xiao-Feng Li <xi...@gmail.com>.
Is this bug worked around or really fixed?
On Fri, Nov 14, 2008 at 9:54 AM, Chunrong Lai (JIRA) <ji...@apache.org> wrote:
>
> [ https://issues.apache.org/jira/browse/HARMONY-6013?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
>
> Chunrong Lai resolved HARMONY-6013.
> -----------------------------------
>
> Resolution: Fixed
>
>
> Fixed in r713673.
>
>> 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
>> Assignee: Chunrong Lai
>>
>> 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.
>
>
--
http://xiao-feng.blogspot.com
[jira] Commented: (HARMONY-6013) Problems with null pointer
exception catch in server or opt mode for Java applications
Posted by "Tim Ellison (JIRA)" <ji...@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.
[jira] Commented: (HARMONY-6013) Problems with null pointer
exception catch in server or opt mode for Java applications
Posted by "Chunrong Lai (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/HARMONY-6013?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12646814#action_12646814 ]
Chunrong Lai commented on HARMONY-6013:
---------------------------------------
I see the break is since r659128: fix for HARMONY-5714 [drlvm] remove extra synchronization helpers.
I re-opened the JIRA.
> 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.
[jira] Resolved: (HARMONY-6013) Problems with null pointer
exception catch in server or opt mode for Java applications
Posted by "Chunrong Lai (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/HARMONY-6013?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Chunrong Lai resolved HARMONY-6013.
-----------------------------------
Resolution: Fixed
Fixed in r713673.
> 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
> Assignee: Chunrong Lai
>
> 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.
[jira] Commented: (HARMONY-6013) Problems with null pointer
exception catch in server or opt mode for Java applications
Posted by "Chunrong Lai (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/HARMONY-6013?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12646570#action_12646570 ]
Chunrong Lai commented on HARMONY-6013:
---------------------------------------
A quick view shows that this error appeared after M6 but has not been noticed in M7.
D:\>set PATH=d:\harmony-hdk-711744\jdk\jre\bin;%PATH%
D:\>java -showversion -Xem:server Btest5710
Apache Harmony Launcher : (c) Copyright 1991, 2008 The Apache Software Foundatio
n 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...
Signal reported: GENERAL_PROTECTION_FAULT
Registers:
EAX: 0x0045bf50, EBX: 0x22cfef00, ECX: 0x00000004, EDX: 0x00000003
ESI: 0x22dcf820, EDI: 0x129dd054, ESP: 0x0013f908, EBP: 0x22acde20
EIP: 0x00510773
Command line:
java -showversion -Xem:server Btest5710
Working directory:
D:\
Stack trace:
0: 0x00510773 stub::vm_monitor_enter_naked
1: 0x00000000 (:-1)
<end of stack trace>
Crashed module:
Memory region 0x00510000:0x00550000
VM attached threads:
[0000051C] 'ref handler'
[00000524] 'finalizer'
[00000528] 'finalizer'
[00000538] 'profiler thread'
--->[000007C4] 'main'
Minidump is generated:
D:\\minidump_3480.dmp
D:\>set PATH=d:\harmony-hdk-653525\jdk\jre\bin;%PATH%
D:\>java -showversion -Xem:server Btest5710
Apache Harmony Launcher : (c) Copyright 1991, 2008 The Apache Software Foundatio
n or its licensors, as applicable.
java version "1.5.0"
pre-alpha : not complete or compatible
svn = r653525, (May 6 2008), Windows/ia32/msvc 1310, release build
http://harmony.apache.org
Start Btest5710 test...
PASSED: java.lang.NullPointerException
D:\>set PATH=d:\harmony-hdk-681495\jdk\jre\bin;%PATH%
D:\>java -showversion -Xem:server Btest5710
Apache Harmony Launcher : (c) Copyright 1991, 2008 The Apache Software Foundatio
n or its licensors, as applicable.
java version "1.5.0"
pre-alpha : not complete or compatible
svn = r681495, (Aug 5 2008), Windows/ia32/msvc 1310, release build
http://harmony.apache.org
Start Btest5710 test...
Signal reported: GENERAL_PROTECTION_FAULT
Registers:
EAX: 0x0045c0a8, EBX: 0x22e60010, ECX: 0x00000004, EDX: 0x00000003
ESI: 0x2305a500, EDI: 0x12a840a8, ESP: 0x0013f908, EBP: 0x22bd3e20
EIP: 0x00510773
Command line:
java -showversion -Xem:server Btest5710
Working directory:
D:\
Stack trace:
0: 0x00510773 stub::vm_monitor_enter_naked
1: 0x00000000 (:-1)
<end of stack trace>
Crashed module:
Memory region 0x00510000:0x00550000
VM attached threads:
[000004EC] 'ref handler'
[000004F4] 'finalizer'
[000004F8] 'finalizer'
[00000510] 'profiler thread'
--->[000007C4] 'main'
Minidump is generated:
D:\\minidump_2836.dmp
> 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.
[jira] Commented: (HARMONY-6013) Problems with null pointer
exception catch in server or opt mode for Java applications
Posted by "Sean Qiu (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/HARMONY-6013?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12646513#action_12646513 ]
Sean Qiu commented on HARMONY-6013:
-----------------------------------
I can pass this test with j9 vm.
> 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.
[jira] Assigned: (HARMONY-6013) Problems with null pointer
exception catch in server or opt mode for Java applications
Posted by "Chunrong Lai (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/HARMONY-6013?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Chunrong Lai reassigned HARMONY-6013:
-------------------------------------
Assignee: Chunrong Lai
> 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
> Assignee: Chunrong Lai
>
> 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.