Bug 676147

Summary: infinite loop while parsing double literal
Product: [Fedora] Fedora Reporter: Siddhesh Poyarekar <spoyarek>
Component: java-1.6.0-openjdkAssignee: Deepak Bhole <dbhole>
Status: CLOSED CURRENTRELEASE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: medium Docs Contact:
Priority: medium    
Version: 14CC: ahughes, dbhole, jvanek, langel, lkundrak, mjw, mmatejov, mnewsome, omajid
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
: 676148 (view as bug list) Environment:
Last Closed: 2011-04-11 18:38:28 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Bug Depends On:    
Bug Blocks: 676148, 676149    

Description Siddhesh Poyarekar 2011-02-08 23:02:39 UTC
Description of problem:
java hangs when trying to parse the double literal 2.2250738585072012e-308.

Version-Release number of selected component (if applicable):
java-1.6.0-openjdk-1.6.0.0-49.1.9.3.fc14.x86_64

How reproducible:
Always

Steps to Reproduce:
1. 

$ cat > runhang.java
class runhang {
public static void main(String[] args) {
  System.out.println("Test:");
  double d = Double.parseDouble("2.2250738585072012e-308");
  System.out.println("Value: " + d);
 }
}

2.

$ javac runhang.java

3.

$ java runhang
  
Actual results:
Hang

Expected results:
No hang

Additional info:

This is the same as upstream bug:

https://bugs.openjdk.java.net/show_bug.cgi?id=100119

Comment 1 Deepak Bhole 2011-04-11 18:38:28 UTC
Fix is in IcedTea6 1.9.7 which is in F14