zlacker

[return to "War story: the hardest bug I ever debugged"]
1. BobbyT+Hp7[view] [source] 2025-03-27 03:27:20
>>jakevo+(OP)
Interesting writeup, but 2 days to debug “the hardest bug ever”, while accurate, seems a bit overdone.

Though abs() returning negative numbers is hilarious.. “You had one job…”

To me, the hardest bugs are nearly irreproducible “Heisenbugs” that vanish when instrumentation is added.

I’m not just talking about concurrency issues either…

The kind of bug where a reproduction attempt takes a week, not parallelizable due to HW constraints, and logging instrumentation makes it go away or fail differently.

2 days is cute though.

◧◩
2. jffhn+bF7[view] [source] 2025-03-27 07:07:17
>>BobbyT+Hp7
>Though abs() returning negative numbers is hilarious.

Math.abs(Integer.MIN_VALUE) in Java very seriously returns -2147483648, as there is no int for 2147483648.

◧◩◪
3. adrian+KS7[view] [source] 2025-03-27 10:03:32
>>jffhn+bF7
Unchecked integer overflow strikes again.
[go to top]