If there’s an error, use last known good config. So many systems do this.
Comment on CrowdStrike downtime apparently caused by update that replaced a file with 42kb of zeroes
Takios@discuss.tchncs.de 3 months agoI agree that the code is probably poor but I doubt it was a conscious decision to crash the OS.
The code is probably just:
- Load config data
- Do something with data
And 2 fails unexpectedly because the data is garbage and wasn’t checked if it’s valid.
CeeBee_Eh@lemmy.world 3 months ago
Morphit@feddit.uk 3 months ago
You can still catch the error at runtime and do something appropriate. That might be to say this update might have been tampered with and refuse to boot, but more likely it’d be to just send an error report back to the developers that an unexpected condition is being hit and just continuing without loading that one faulty definition file.