- Published on
Investigation · Part 7 of 20 · What survives a crash
Building a Tiny Crash Simulator From strace Output
kill -9 could not tell a save with fsync from a save without it. So I wrote a small Python simulator that replays the strace output of a program and lists what a machine crash could leave at every moment. It found the zero-length file and the missing directory fsync.