Live data from Hacker News

Java Hangs When Converting 2.2250738585072012e-308

exploringbinary.com

31–40 of 70 posts

Re: Java Hangs When Converting 2.2250738585072012e-308

#31
post #8

I remember when everyone was bashing PHP ( http://news.ycombinator.com/item?id=2066084 ) when they were bitten by the same issue. Then there were articles about this being maybe a GCC bug or at least design issue but people were still saying that it's PHP's duty to take care of this. I was always afraid that this might bite other environments too as the code that caused the issue in PHP was apparently taken from else…

Yes, astonishing how Oracle (and others) didn't check their code when this surfaced in PHP to determine if they are affected too.

Yet not astonishing how the GCC team didn't fix it once, for everyone?

PS I am pretty sure Oracle, at least on Sun, used SPARCworks compiler, not GCC, from linking C++ against their libs.

Re: Java Hangs When Converting 2.2250738585072012e-308

#32
post #18
post #17

Earlier quoted context omitted.

So they're not falling over themselves to fix a bug which no one has noticed for 10+ years, and which hardly anyone is going to hit in actual use. Maybe they're spending their time fixing problems which are actually affecting developers.

Any public-facing Java server affected by this bug that accepts floating point numbers from the user as a string can be hung by this bug. This is going to be a big problem.

Excellent point. I'm going to have some tests to run when I get in to work this morning.

Re: Java Hangs When Converting 2.2250738585072012e-308

#37
post #31

Earlier quoted context omitted.

Yes, astonishing how Oracle (and others) didn't check their code when this surfaced in PHP to determine if they are affected too.

Yet not astonishing how the GCC team didn't fix it once, for everyone? PS I am pretty sure Oracle, at least on Sun, used SPARCworks compiler, not GCC, from linking C++ against their libs.

They did fix it in 4.5 by having you to pass

    -fexcess-precision=standard
Which apparently defaults to not being standard compliant.

Re: Java Hangs When Converting 2.2250738585072012e-308

#38
post #18
post #17

Earlier quoted context omitted.

So they're not falling over themselves to fix a bug which no one has noticed for 10+ years, and which hardly anyone is going to hit in actual use. Maybe they're spending their time fixing problems which are actually affecting developers.

Any public-facing Java server affected by this bug that accepts floating point numbers from the user as a string can be hung by this bug. This is going to be a big problem.

I tried to dig up a list of websites with a java-backend but my google-fu is not strong enough. I don't think that there are actually many big sites running on java.

Re: Java Hangs When Converting 2.2250738585072012e-308

#39
post #9

"Konstantin reported this problem to Oracle three weeks ago, but is still waiting for a reply." This speaks volumes about Oracle as the Java's steward.

I just reported a problem last week and got a response inside 12 hours. I was amazed. Certainly faster than I've ever gotten a response from Sun.

Average over the last 3 issues is about 48 hours - if accepted as a bug. But if you provide source code that demonstrates the problem turnaround is usually very fast, and that seems to be the case here.

Post reply on HN