That GCC thread is hilarious! Watching hundreds of poor humans try and convince a few nerds that something clearly faulty is actually a bug.
"I'd like to welcome the newest members of the bug 323<http://gcc.gnu.org/bugzilla/show_bug.cgi?id=323>community, where all x87 floating point errors in gcc come to die! All floating point errors that use the x87 are welcome, despite the fact that many of them are easily fixable, and many are not! We're all one happy family, making the egregious mistake of wanting accuracy out of the most accurate general purpose FPU on the market!" Every time somebody punches a nerd, think of that thread. -Josh On 15 February 2011 00:16, Mike Calmus <[email protected]> wrote: > 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. > > > -- 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.
