United StatesChange Country, Oracle Worldwide Web Sites Communities I am a... I want to...
Bug ID: JDK-6231558 JVM outputs exceptions or crash with a program using Big interger in 1.4.2_08b2
JDK-6231558 : JVM outputs exceptions or crash with a program using Big interger in 1.4.2_08b2

Details
Type:
Bug
Submit Date:
2005-02-22
Status:
Closed
Updated Date:
2010-08-03
Project Name:
JDK
Resolved Date:
2005-03-05
Component:
hotspot
OS:
linux,windows_xp
Sub-Component:
compiler
CPU:
x86
Priority:
P2
Resolution:
Fixed
Affected Versions:
1.4.2_08
Fixed Versions:
1.4.2_08 (b03)

Related Reports
Duplicate:
Relates:
Relates:
Relates:

Sub Tasks

Description
A customer has found out an exception(or crash) in 1.4.2_08b02.

REPRODUCE :
  (1) Compile the attached program, Big.java
  (2) Launch "java -client Big 5" in 1.4.2_08b02
  (3) The following message will appears.

K:\tmp>java -version
java version "1.4.2_08"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.2_08-b02)
Java HotSpot(TM) Client VM (build 1.4.2_08-b02, mixed mode)

K:\tmp>javac *.java

K:\tmp>java -client Big 5
java.lang.NullPointerException
        at java.math.BigInteger.toString(BigInteger.java:2583)
        at java.math.BigInteger.toString(BigInteger.java:2613)
        at Big.run(Big.java:17)
java.lang.NullPointerException
        at java.math.BigInteger.toString(BigInteger.java:2583)
        at java.math.BigInteger.toString(BigInteger.java:2613)
        at Big.run(Big.java:17)
java.lang.NumberFormatException: For input string: "null"
        at java.lang.NumberFormatException.forInputString(NumberFormatException.
java:48)
        at java.lang.Integer.parseInt(Integer.java:468)
        at java.math.BigInteger.<init>(BigInteger.java:314)
        at java.math.BigInteger.<init>(BigInteger.java:447)
        at Big.run(Big.java:16)

CONFIGURATION :
  JRE/JDK : 1.4.2_08b02
  OS      : WindowsXP(SP1, Japanese)

NOTE:
  This seems related to 6215242 and might be regression.

###@###.### 2005-2-22 09:10:49 GMT

                                    

Comments
EVALUATION

This bug has the same root cause as 4917709. A bailout was removed in 1.4.1 which led to 4917709, which was an attempt to compile the previously-failing methods properly. Unfortunately due to constraints in the 1.4.x C1 code generator it's basically impossible for the compiler to generate correct debug and oop map information for these situations. The fix is to reintroduce the bailout that was present in 1.4.0. This bug is also related to 6215242 though the fix for that bug didn't introduce this one; the customer's test case fails with an unmodified 1.4.2 JVM. The bailout will be reintroduced under this bug ID and 6232217 (which is actually a regression of 4917709 caused by the fix for 6215242) will be closed as a duplicate of this one since they both have the same root cause.

###@###.### 2005-2-25 03:05:44 GMT
                                     
2005-02-22



Hardware and Software, Engineered to Work Together