TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

A Story of a Heisenbug Hunt (2011)

3 pointsby gaopreaover 11 years ago

1 comment

greenyodaover 11 years ago
The author still doesn&#x27;t understand how &quot;fprintf(stderr, &quot;\n&quot;);&quot; could have changed the behavior, so I doubt he understands the real cause of the bug. A test for floating point equality may not give you the result you expect, but it is most certainly deterministic: if you compare the same two floating point numbers (i.e., the same sequences of bits that represent two floating point numbers), the hardware will give you exactly the same result each time. So there was something in the program that caused a <i>different</i> floating point result to be computed under some circumstances.