I ran the Java patch on Friday against several different installed
JREs, a couple Java 6, a 1.5 and a 1.4.2. It worked fine except for
one case that rt.jar couldn't be put back in place because it was in
use. The patch only works on Oracle-supplied VMs and fails early when
run on the Mac VM. It makes a copy of rt.jar, unjars it into a
directory, patches the code and then zips it back up and moves it into
place. Takes about 10 minutes.

On Feb 13, 7:36 pm, Matthew Kerle <[email protected]> wrote:
> found this linked off the php version of the 
> bug:http://www.exploringbinary.com/why-volatile-fixes-the-2-2250738585072...
>
> <http://www.exploringbinary.com/why-volatile-fixes-the-2-2250738585072...>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 <[email protected]> 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 <[email protected]> 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 <[email protected]>
> > 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 [email protected].
> > > > To unsubscribe from this group, send email to
> > > > [email protected].
> > > > 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 [email protected].
> > To unsubscribe from this group, send email to
> > [email protected].
> > 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- Hide quoted text -
>
> - Show quoted text -

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

Reply via email to