Earlier quoted context omitted.
I agree with your assessment of how stupid this is, but I'm not surprised. To be clear, there are good reasons for this different mode. The fuck-up is not testing it properly. These kinds of modes can be tested properly in various ways, e.g. by having an override switch that forces the chosen mode to be used all the time instead of using the default heuristics for switching between modes. And then you run your test s…
Isn't stochastic testing becoming more and more of a standard practice? Even if you have the hardware and time to run a full testsuite, you still want to add some randomness just to catch accidental dependencies between tests.
War story: the hardest bug I ever debugged
61–70 of 194 posts
Re: War story: the hardest bug I ever debugged
#62https://youtube.com/watch?v=sGTDhaV0bcw
The author’s “error”, of course, was calling it “the hardest bug I ever debugged”. It drives clicks, but comparisons too.
Re: War story: the hardest bug I ever debugged
#63A lesson to learn seems obvious to me: the V8 team did not communicate upfront sufficiently on the "oops our Math.abs() may return negative numbers, we fixed that in version X, be warned".
Which the V8 should be able to do in a "advisory for Google developers that work on high-performance client-side view rendering stuff" sort of weekly newsletter.
Re: War story: the hardest bug I ever debugged
#64Earlier quoted context omitted.
I suppose the Google Doc team initially thought this would surely be a bug in their own code, not in Chrome or in V8, so it wouldn't help to bisect their own code. Nobody really begins to debug by blaming the compiler.
I mean... > It didn’t correspond to a Google Docs release. The stack trace added very little information. There wasn’t an associated spike in user complaints, so we weren’t even sure it was really happening — but if it was happening it would be really bad. It was Chrome-only starting at a specific release. That sounds like a Chrome bug. Or, at least, a bug triggered by a change in Chrome. Bisecting your code when the…
Re: War story: the hardest bug I ever debugged
#65Re: War story: the hardest bug I ever debugged
#66Turned out that Node.js didn't gracefully close TCP connections. It just silently dropped the connection and sent a RST packet if the other side tried to reuse it. Fun times.
Re: War story: the hardest bug I ever debugged
#67When I was 12 I was just learning stuff and wrote something in C, which crashed at unpredictable intervals and I could not explain it. I took it to my 14 year old uncle who was better than me at coding for help. Now mind you this is ~ 40 years ago but I seem to remember that Borland Turbo C (I still love that IDE blue color) had debugging with breakpoints (mind blowing!) which eventually led to "duh you didn't dispos…
Re: War story: the hardest bug I ever debugged
#68This had worked perfectly for many years but windows was upgraded underneath it, and some smartass had used clever tricks for a hover menu that didn’t work in a future (safer) version of the OS. A rarely triggered hover menu.
Thank you, authors of advanced windows debugging and advanced .net debugging.
Re: War story: the hardest bug I ever debugged
#69I couldn't always get people to talk this way, but people who did usually worked out well
Re: War story: the hardest bug I ever debugged
#70> It didn’t correspond to a Google Docs release. The stack trace added very little information. There wasn’t an associated spike in user complaints Where mere mortals can complain about Google product?