4 ms·
If you don't learn something from pushing a debug build to production, your debug build isn't instrumented enough. Maybe all you learn is what the effect of bui
by pjc50 9y ago
If you don't learn something from pushing a debug build to production, your debug build isn't instrumented enough. Maybe all you learn is what the effect of building with/without optimisation is on the real workload.
There's practically an entire genre of "here's what I learned from my expensive mistake" stories. Usually they teach humility and caution. This one is interesting because it's a variant of YAGNI. Imagine that you've carefully tuned your (software/car) for a specific set of parameters, then throw one out of whack by mistake - does this get caught by monitoring? Do you even notice? If you hillclimb from the new status to an optimal one, do you get back to the same local optimum?
Then of course there's the famous RISKS digest, which can be funny or depressing depending on your mood and dependence on complex systems.
(My own personal one of these? "killall" behaves differently on Solaris than it does on Linux ..)
- lathiat 9y agoI'd also strongly suggest not typing "exit" into kdb, the Solaris debugger when it is in write mode. It sets the global pointer for exit (the libc function) to NULL and the whole system will crash a few seconds to minutes later when the next process exits. (It's not uncommon to use this tool to reconfigure some configuration values at runtime) At least not on Solaris 10 or any of the open source derivatives. Seems it was special cased at some point in Solaris 11. Had to make that mistake 2-3 times before I finally realised what I was doing to crash it given the slight delay.
- oblio 9y agoSolaris, the system were ease of use is an enemy.