I’m rebuilding history’s worst software bugs so you can break them yourself
Introducing Post-Mortem Lab. One famous engineering failure per episode, rebuilt as a small simulation you can run, break and fix.
- Ref
- EP-00
- Date
- Module
- Post-Mortem Lab
- Source
- GitHub →
▶ Watch · the episode
On 4 June 1996, Europe’s new Ariane 5 rocket lifted off on its first flight. About 40 seconds after ignition it was in pieces, along with roughly $370 million of rocket and satellites.
The cause wasn’t an engine or a weld. It was one line of code that converted a number into a box too small to hold it.
You can do it yourself, right now:
Move the slider past 32,767 and you’ve recreated the failure. That’s the whole idea of this series.
What Post-Mortem Lab is
Every episode takes one real engineering failure and rebuilds it as a small, faithful simulation you can run in your browser. You get to:
- Hear the story. What happened, who was affected, and why smart people missed it.
- Trigger the bug. Not a diagram of it. The actual mechanism, running.
- Fix it. And see why the fix works, with tests that prove it.
- Keep the lesson. One idea you’ll recognise next time it shows up in your own code.
All the code is open source. Every episode is a tagged release, so you can check out exactly what you saw in the video.
Season 1
| Ep | Failure | Year | The bug in one line |
|---|---|---|---|
| 01 | Ariane 5 | 1996 | A 64-bit number squeezed into 16 bits |
| 02 | Mars Climate Orbiter | 1999 | One team used pounds, the other used newtons |
| 03 | Patriot missile, Dhahran | 1991 | A clock that drifted a third of a second |
| 04 | Therac-25 | 1985–87 | A race condition in a radiation machine |
| 05 | Knight Capital | 2012 | An old feature flag, reused, cost over $460M in 45 minutes |
| 06 | Cloudflare outage | 2019 | One regular expression took down a global network |
| 07 | CrowdStrike | 2024 | A config file that crashed 8.5 million computers |
| 08 | Your pick | — | Vote in the comments |
How it’s built
Everything sits on a shared toolkit that grows with every episode: checked number conversions, fault injection, deterministic timing, unit-aware maths. By the end of the season it will be a small library for safely causing failures, useful well beyond these episodes.
I build it with AI as my pair programmer, and I’ll show that honestly, including the parts where it gets things wrong.
Further reading
Primary sources first. Everything here is free to read or watch.
Start here
- Video#FAILKevlin Henney · GOTO Conferences (YouTube)
01 · Ariane 5
- ReportAriane 5 Flight 501 Failure: Report by the Inquiry BoardESA, 1996
- VideoAriane 5 Flight 501, 4 June 1996 (launch footage)SciNews (YouTube)
02 · Mars Climate Orbiter
- ReportMars Climate Orbiter Mishap Investigation Board: Phase I ReportNASA, 1999
- VideoWhen NASA Lost a Spacecraft Because It Didn't Use MetricScientific American (YouTube)
- VideoLearning from the $125 Million Mars Climate Orbiter MistakeFilip Van Laenen · ACCU 2019 (YouTube)
03 · Patriot, Dhahran
- ReportPatriot Missile Defense: Software Problem Led to System Failure at Dhahran, Saudi ArabiaUS GAO, IMTEC-92-26, 1992
04 · Therac-25
- PaperAn Investigation of the Therac-25 AccidentsNancy Leveson & Clark Turner, IEEE Computer, 1993
- VideoWhen Software Kills: Fatal Bugs in the Therac-25Dave's Garage (YouTube)
05 · Knight Capital
- ReportSEC charges Knight Capital with violations of market access ruleUS SEC, 2013
06 · Cloudflare
- ReportDetails of the Cloudflare outage on July 2, 2019Cloudflare blog
07 · CrowdStrike
- ReportChannel File 291 Incident: Root Cause AnalysisCrowdStrike, 2024
- VideoCrowdStrike Update: Lessons Learned from a Retired Microsoft EngineerDave's Garage (YouTube)