Account Options

  1. Sign in
The old Google Groups will be going away soon, but your browser is incompatible with the new version.
Google Groups Home
« Groups Home
serious bug hits jvm as well: Double.parseDouble("2.2250738585072012e-308")
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  18 messages - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
Andreas Petersson  
View profile  
 More options Feb 1 2011, 5:55 am
From: Andreas Petersson <andr...@petersson.at>
Date: Tue, 1 Feb 2011 02:55:17 -0800 (PST)
Local: Tues, Feb 1 2011 5:55 am
Subject: serious bug hits jvm as well: Double.parseDouble("2.2250738585072012e-308")
even worse, you can use that bug to crash the compiler, too.

I bet one can use that to kill a on of java-running websites.

i read that article on http://www.exploringbinary.com/java-hangs-when-converting-2-225073858...
which explains the matter.


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Andreas Petersson  
View profile  
 More options Feb 1 2011, 7:48 am
From: Andreas Petersson <andr...@petersson.at>
Date: Tue, 1 Feb 2011 04:48:15 -0800 (PST)
Local: Tues, Feb 1 2011 7:48 am
Subject: Re: serious bug hits jvm as well: Double.parseDouble("2.2250738585072012e-308")
a number of places where i found this to be a cereal problem where you
won't suspect them:

Credit Card Validators (checks first if given string is a number)
(Pentaho Data Integration)
Version Numbers (in xml headers) (Xstream)
and to my surprise
HTTP headers (http://www.w3.org/Protocols/rfc2616/rfc2616-
sec3.html#sec3.9) (Spring Framework et al)


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Ricky Clarkson  
View profile  
 More options Feb 1 2011, 7:54 am
From: Ricky Clarkson <ricky.clark...@gmail.com>
Date: Tue, 1 Feb 2011 12:54:11 +0000
Local: Tues, Feb 1 2011 7:54 am
Subject: Re: [The Java Posse] Re: serious bug hits jvm as well: Double.parseDouble("2.2250738585072012e-308")
I never thought I'd see that in my cornflakes.


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Andrew  
View profile  
 More options Feb 1 2011, 5:28 pm
From: Andrew <am2...@gmail.com>
Date: Tue, 1 Feb 2011 14:28:19 -0800 (PST)
Local: Tues, Feb 1 2011 5:28 pm
Subject: Re: serious bug hits jvm as well: Double.parseDouble("2.2250738585072012e-308")
Works fine in Apache Harmony 6.0M3.  Now I understand why they
couldn't give it a TCK - it might pass some tests that the Snoracle
version won't! :-)

On Feb 1, 9:55 pm, Andreas Petersson <andr...@petersson.at> wrote:


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Christian Catchpole  
View profile  
 More options Feb 1 2011, 6:37 pm
From: Christian Catchpole <ato...@catchpole.net>
Date: Tue, 1 Feb 2011 15:37:55 -0800 (PST)
Local: Tues, Feb 1 2011 6:37 pm
Subject: Re: serious bug hits jvm as well: Double.parseDouble("2.2250738585072012e-308")
I knew my girlfriend was a robot when I mentioned the
2.2250738585072012e-308 thing and her head exploded. I'm glad she was
Java though.

 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
mbien  
View profile  
 More options Feb 1 2011, 7:09 pm
From: mbien <mb...@fh-landshut.de>
Date: Tue, 1 Feb 2011 16:09:20 -0800 (PST)
Local: Tues, Feb 1 2011 7:09 pm
Subject: Re: serious bug hits jvm as well: Double.parseDouble("2.2250738585072012e-308")
maybe she was.... PHP?!

On Feb 2, 12:37 am, Christian Catchpole <ato...@catchpole.net> wrote:


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Christian Catchpole  
View profile  
 More options Feb 1 2011, 7:19 pm
From: Christian Catchpole <ato...@catchpole.net>
Date: Tue, 1 Feb 2011 16:19:45 -0800 (PST)
Local: Tues, Feb 1 2011 7:19 pm
Subject: Re: serious bug hits jvm as well: Double.parseDouble("2.2250738585072012e-308")
i know you're probably angry right now so i'll pretend you didn't say
that

On Feb 2, 10:09 am, mbien <mb...@fh-landshut.de> wrote:


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Josh McDonald  
View profile  
 More options Feb 1 2011, 7:47 pm
From: Josh McDonald <josh.g.mcdon...@hotmail.com>
Date: Wed, 2 Feb 2011 10:47:42 +1000
Local: Tues, Feb 1 2011 7:47 pm
Subject: Re: [The Java Posse] Re: serious bug hits jvm as well: Double.parseDouble("2.2250738585072012e-308")

Free tip to everybody planning to try this out: don't do it in an IDE
project with build-on-save... Kaboom!

On 2 February 2011 10:19, Christian Catchpole <ato...@catchpole.net> wrote:


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Steven Herod  
View profile  
 More options Feb 1 2011, 11:56 pm
From: Steven Herod <steven.he...@gmail.com>
Date: Tue, 1 Feb 2011 20:56:00 -0800 (PST)
Subject: Re: serious bug hits jvm as well: Double.parseDouble("2.2250738585072012e-308")
I'm doing more extensive testing and getting my partner to count to it
from 0.

On Feb 2, 10:37 am, Christian Catchpole <ato...@catchpole.net> wrote:


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Carl Jokl  
View profile  
 More options Feb 2 2011, 4:21 am
From: Carl Jokl <carl.j...@gmail.com>
Date: Wed, 2 Feb 2011 01:21:02 -0800 (PST)
Local: Wed, Feb 2 2011 4:21 am
Subject: Re: serious bug hits jvm as well: Double.parseDouble("2.2250738585072012e-308")
This bug works on the Mac to...its like write once....crash
everywhere! It did at least compile but seemed to take a very long
time about it.

 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Casper Bang  
View profile  
 More options Feb 2 2011, 4:47 am
From: Casper Bang <casper.b...@gmail.com>
Date: Wed, 2 Feb 2011 01:47:01 -0800 (PST)
Local: Wed, Feb 2 2011 4:47 am
Subject: Re: serious bug hits jvm as well: Double.parseDouble("2.2250738585072012e-308")
Doesn't manifest itself on Android. Perhaps Google could use that as
evidence that Android is not Java nor did Apache copy Harmony. :)

On Feb 1, 11:55 am, Andreas Petersson <andr...@petersson.at> wrote:


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Rob Ross  
View profile  
 More options Feb 2 2011, 5:24 am
From: Rob Ross <rob.r...@gmail.com>
Date: Wed, 2 Feb 2011 02:24:01 -0800
Local: Wed, Feb 2 2011 5:24 am
Subject: Re: [The Java Posse] Re: serious bug hits jvm as well: Double.parseDouble("2.2250738585072012e-308")

On Feb 2, 2011, at 1:21 AM, Carl Jokl wrote:

> This bug works on the Mac to...its like write once....crash
> everywhere! It did at least compile but seemed to take a very long
> time about it.

When you say "on the Mac", do you mean on the Apple JVM?

I tried replicating this in a native Objective-C app but was not able to make it crash. So either I'm exercising the wrong code, or it's a software-only bug in the JDK libraries.

Rob


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Nick Brown  
View profile  
 More options Feb 2 2011, 8:43 am
From: Nick Brown <nwbr...@gmail.com>
Date: Wed, 2 Feb 2011 05:43:45 -0800 (PST)
Local: Wed, Feb 2 2011 8:43 am
Subject: Re: serious bug hits jvm as well: Double.parseDouble("2.2250738585072012e-308")
Well it would have to be using Double.parseDouble.  I would imagine
most of those would be using parseInteger or parseLong (at least as
far as I know, floating point values are not valid credit card
numbers).

On Feb 1, 7:48 am, Andreas Petersson <andr...@petersson.at> wrote:


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Augusto Sellhorn  
View profile  
 More options Feb 2 2011, 4:27 pm
From: Augusto Sellhorn <augusto.sellh...@gmail.com>
Date: Wed, 2 Feb 2011 13:27:06 -0800 (PST)
Local: Wed, Feb 2 2011 4:27 pm
Subject: Re: serious bug hits jvm as well: Double.parseDouble("2.2250738585072012e-308")
Don't see a problem in Netbeans so far ... not sure if I have that
turned out. Either way at worst it's going to hang a thread, not sure
if that will stop all builds ...

On Feb 1, 7:47 pm, Josh McDonald <josh.g.mcdon...@hotmail.com> wrote:


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Christian Catchpole  
View profile  
 More options Feb 2 2011, 6:51 pm
From: Christian Catchpole <ato...@catchpole.net>
Date: Wed, 2 Feb 2011 15:51:06 -0800 (PST)
Local: Wed, Feb 2 2011 6:51 pm
Subject: Re: serious bug hits jvm as well: Double.parseDouble("2.2250738585072012e-308")
I did this on OS X and it looks like the 2.2250738585072012e-308 thing
causes spinning. Dodgy parser? http://twitpic.com/3vwtcq

Rob: It shouldn't show up in Objective-C. Its code in the core of the
JDK. Either in the Java libraries, native code, JIT code.. somewhere..
But it's probably common code for a lot of JDKs.


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Christian Catchpole  
View profile   Translate to Translated (View Original)
 More options Feb 2 2011, 7:08 pm
From: Christian Catchpole <ato...@catchpole.net>
Date: Wed, 2 Feb 2011 16:08:29 -0800 (PST)
Local: Wed, Feb 2 2011 7:08 pm
Subject: Re: serious bug hits jvm as well: Double.parseDouble("2.2250738585072012e-308")
I'm so glad I read the original article. Sorry for repeating the
obvious :)

On Feb 3, 9:51 am, Christian Catchpole <ato...@catchpole.net> wrote:


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Josh McDonald  
View profile  
 More options Feb 2 2011, 7:19 pm
From: Josh McDonald <josh.g.mcdon...@hotmail.com>
Date: Thu, 3 Feb 2011 10:19:00 +1000
Subject: Re: [The Java Posse] Re: serious bug hits jvm as well: Double.parseDouble("2.2250738585072012e-308")

It also will blow up other languages for which the compiler is written in
Java. I tested it as a constant in Flex and it sent Eclipse to its grave,
because you can't cancel the compile, and can't save or quit while it's
waiting for the compile to finish.

-Josh

On 3 February 2011 09:51, Christian Catchpole <ato...@catchpole.net> wrote:


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Miroslav Pokorny  
View profile  
 More options Feb 2 2011, 10:15 pm
From: Miroslav Pokorny <miroslav.poko...@gmail.com>
Date: Thu, 3 Feb 2011 14:15:28 +1100
Local: Wed, Feb 2 2011 10:15 pm
Subject: Re: [The Java Posse] Re: serious bug hits jvm as well: Double.parseDouble("2.2250738585072012e-308")

Does the problem also exist for Float.parseFloat for the same reasons ?


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »