Date: Tue, 28 May 2002 05:32:49 -0700 (PDT) From: Ranjith Mandala <Ranjith.Mandala@Sun.COM> To: freebsd-java@freebsd.org Cc: java-port@freebsd.org, Ranjith.Mandala@Sun.COM Subject: Re: (Review ID: 146903) Null pointers and XML documents makes Java VM crash beyond sanity Message-ID: <2684196.1022589153986.JavaMail.ranjithm@ha2sca-mail1.sfbay.sun.com>
next in thread | raw e-mail | index | archive | help
Hi, This Bug Report was submitted from http://java.sun.com/cgi-bin/bugreport.cgi and is being forwarded to you on behalf of niklas@saers.com. If you would like to respond. Please send an e-mail to the address listed at the end of this report. Regards, RM. ----------------- Original Bug Report------------------- category : java release : 1.4 subcategory : runtime type : bug synopsis : Null pointers and XML documents makes Java VM crash beyond sanity description : FULL PRODUCT VERSION : java version "1.4.0" Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.0-b92) Java HotSpot(TM) Client VM (build 1.4.0-b92, mixed mode) Downloaded today FULL OPERATING SYSTEM VERSION : FreeBSD 5.0-CURRENT (CVS of May 22nd), ADDITIONAL OPERATING SYSTEMS : Java VM: Java HotSpot(TM) Client VM (1.4.0-b92 mixed mode) EXTRA RELEVANT SYSTEM CONFIGURATION : Apache Jakarta Xalan-J 2.3.1 JUnit 3.7 Apache Jakarta Ant 1.5.0b1 Linux-JDK 1.4.0 Jython 2.1 A DESCRIPTION OF THE PROBLEM : I have found that often having a null pointer results in the VM breaking down totally. It gives me the following: Unexpected Signal : 11 occurred at PC=0x2A0DDBD0 Function=[Unknown.] Library=(N/A) NOTE: We are unable to locate the function name symbol for the error just occurred. Please refer to release documentation for possible reason and solutions. Current Java thread: Dynamic libraries: Can not get information for pid = 15622 Local Time = Wed May 22 17:35:21 2002 Elapsed Time = 16 # # HotSpot Virtual Machine Error : 11 # Error ID : 4F530E43505002D3 # Please report this error at # http://java.sun.com/cgi-bin/bugreport.cgi # # Java VM: Java HotSpot(TM) Client VM (1.4.0-b92 mixed mode) # Doing the following through Jython 2.1: from javax.xml.parsers import * factory = DocumentBuilderFactory.newInstance() builder = factory.newDocumentBuilder() document = builder.parse("someThing.xml") gives Unexpected Signal : 11 occurred at PC=0x2A03329E Function=[Unknown.] Library=(N/A) NOTE: We are unable to locate the function name symbol for the error just occurred. Please refer to release documentation for possible reason and solutions. Current Java thread: Dynamic libraries: Can not get information for pid = 64840 Local Time = Wed May 22 17:41:19 2002 Elapsed Time = 4 # # HotSpot Virtual Machine Error : 11 # Error ID : 4F530E43505002D3 # Please report this error at # http://java.sun.com/cgi-bin/bugreport.cgi # # Java VM: Java HotSpot(TM) Client VM (1.4.0-b92 mixed mode) # # An error report file has been saved as hs_err_pid64840.log. # Please refer to the file for further information. # Abort trap - core dumped --- Especially this last thing is worrying since I definetly need to load XML documents in my project. (I don't care much about NULL pointers except that they should give me an error rather than crashing the VM) STEPS TO FOLLOW TO REPRODUCE THE PROBLEM : 1. Set up the configuration as specified (i.e. through FreeBSD ports) 2. Put the jython-lines into sample.py and make an XML file to go 3. Launch the program and watch it crash and burn. Reproduced on 3 different systems EXPECTED VERSUS ACTUAL BEHAVIOR : I expected the VM to run, it didn't ERROR MESSAGES/STACK TRACES THAT OCCUR : Unexpected Signal : 11 occurred at PC=0x2A03329E Function=[Unknown.] Library=(N/A) NOTE: We are unable to locate the function name symbol for the error just occurred. Please refer to release documentation for possible reason and solutions. Current Java thread: Dynamic libraries: Can not get information for pid = 64840 Local Time = Wed May 22 17:41:19 2002 Elapsed Time = 4 # # HotSpot Virtual Machine Error : 11 # Error ID : 4F530E43505002D3 # Please report this error at # http://java.sun.com/cgi-bin/bugreport.cgi # # Java VM: Java HotSpot(TM) Client VM (1.4.0-b92 mixed mode) # # An error report file has been saved as hs_err_pid64840.log. # Please refer to the file for further information. # Abort trap - core dumped This bug can be reproduced always. ---------- BEGIN SOURCE ---------- from javax.xml.parsers import * factory = DocumentBuilderFactory.newInstance() builder = factory.newDocumentBuilder() document = builder.parse("someThing.xml") ---------- END SOURCE ---------- CUSTOMER WORKAROUND : There are no work-arounds known to me. Please provide me with one. workaround : suggested_val : cust_name : Niklas Saers cust_email : niklas@saers.com jdcid : keyword : webbug company : ThinkSec hardware : x86 OSversion : Linux bugtraqID : 0 dateCreated : 2002-05-22 09:46:02.9 dateEvaluated : 2002-05-28 06:22:14.678 To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-java" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?2684196.1022589153986.JavaMail.ranjithm>