found this linked off the php version of the bug:
http://www.exploringbinary.com/why-volatile-fixes-the-2-2250738585072011e-308-bug/

<http://www.exploringbinary.com/why-volatile-fixes-the-2-2250738585072011e-308-bug/>which
would lead me to believe that the bug is actually a call from byte-code down
the the JVM expecting a double operation to produce an error smaller than
epsilon, the JVM uses the hardware instruction, which for that value does
not produce a smaller error, so the loop never terminates... oops.

apparently another representation of the (in)famous GCC bug 323:
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=323

TL;DR; floating point math is hard...

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

> It could be either. But my guess is Java.  Is is "just a parser" and
> nothing fundamental that a JIT would be doing.
>
> > In other news are you coming to the roundup? you're a great presence on
> the
> > google group, would be good to meet you in person.
>
> Thanks dude.  I'v been wanting to go.  When the details for this year
> were posted I started looking at flight prices (from Australia!) etc.
> I'm between contracts at the moment so I do have the time, but
> ironically, not the money. :(
>
> I'll be there if someone sponsors me :)
>
> CC
>
> On Feb 14, 8:13 am, Matthew Kerle <mattke...@gmail.com> wrote:
> > thanks Christian! So would you say then the bug is in the Java code
> called
> > by Double.parse()? from the nature of the advisory I thought it was a bug
> in
> > some native code running in the JVM...
> >
> > In other news are you coming to the roundup? you're a great presence on
> the
> > google group, would be good to meet you in person.
> >
> > cheers!
> >
> > On 13 February 2011 21:21, Christian Catchpole <ato...@catchpole.net>
> wrote:
> >
> >
> >
> >
> >
> > > It's real. I tried it (before I read the reports that described it)
> >
> > >http://twitpic.com/3vwtcq
> >
> > > Certain rare cases cause the parsing method to get stuck in a loop.
> > > I'v never written a double parser but I can imagine how it happens.
> > > Perhaps it's a while(value > 0) loop that expects the value will
> > > always be decremented and exit the loop. but in some cases, it's not.
> >
> > > --
> > > You received this message because you are subscribed to the Google
> Groups
> > > "The Java Posse" group.
> > > To post to this group, send email to javaposse@googlegroups.com.
> > > To unsubscribe from this group, send email to
> > > javaposse+unsubscr...@googlegroups.com.
> > > For more options, visit this group at
> > >http://groups.google.com/group/javaposse?hl=en.
> >
> > --
> > "life is complex, it has both real and imaginary components"
> http://threebrightlights.blogspot.com
>
> --
> You received this message because you are subscribed to the Google Groups
> "The Java Posse" group.
> To post to this group, send email to javaposse@googlegroups.com.
> To unsubscribe from this group, send email to
> javaposse+unsubscr...@googlegroups.com.
> For more options, visit this group at
> http://groups.google.com/group/javaposse?hl=en.
>
>


-- 
"life is complex, it has both real and imaginary components"
http://threebrightlights.blogspot.com

-- 
You received this message because you are subscribed to the Google Groups "The 
Java Posse" group.
To post to this group, send email to javaposse@googlegroups.com.
To unsubscribe from this group, send email to 
javaposse+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/javaposse?hl=en.

Reply via email to