Famous software bugs are usually small. A number converted into a space too short to hold it, a flag reused for a new job, a length taken on trust, two processes writing to the same place a few milliseconds apart. What makes them famous is where the code was running when it failed: a radiation therapy machine, a rocket, a trading desk, a bank’s payment screen, eight and a half million Windows computers. This timeline collects fourteen of them from 1985 to 2024, each from the investigation, court ruling or company filing that explains it. Every figure is given as its source states it, including where two sources disagree, and the article ends with the habits that would have caught most of them, which apply to a company website as much as to a rocket.


Famous software bugs, 1985–2024: one number, one flag, one missing check
Fourteen bugs from investigation reports, court rulings and company filings: the line that failed, what it cost in money or lives, and the habit that would have caught it.
Forty years of software bugs, grouped by what went wrong
Each row is one kind of bug, drawn from its first case here to its latest. Select one to see what happened, what to take from it and the dated cases inside it.
1987–1999
A number that did not fit
The most common kind in this list: a value too big for the space it was stored in, too imprecise for the time it ran, or in a different unit from the one the next program expected. None of these crashed in testing, because none of the tests reached the value that broke them.
What happened
- January 1987: a one-byte counter in the Therac-25 radiation machine overflowed on every 256th pass, and on that pass a safety check was skipped.
- February 1991: a Patriot battery in Dhahran had run for over 100 hours, and its clock had drifted by 0.3433 seconds. Its radar looked 687 metres away from the incoming Scud.
- June 1996: Ariane 5 converted a 64-bit floating-point value to a 16-bit integer without a guard. The conversion failed 36.7 seconds after the countdown ended, and the launcher broke up.
- September 1999: thruster data for the Mars Climate Orbiter was delivered in pound-seconds where the trajectory software expected newton-seconds, low by a factor of 4.45.
What to take from it
- Test with the largest, smallest and oldest values the system will ever meet, not the typical ones.
- Write the unit into the name or the type of every number that crosses from one program to another.
Bugs
- Jan 1987Therac-25: a one-byte counter overflows
- Feb 1991Patriot, Dhahran: 100 hours of clock drift
- Oct 1994Intel Pentium: missing entries in a division table
- Jun 1996Ariane 5: 64-bit value into 16 bits
- Sept 1999Mars Climate Orbiter: pound-seconds, not newton-seconds
Month positions are counted from January 1985 and placed at the date of the failure, or of its disclosure where the failure built up over time. The Post Office row spans from Horizon’s introduction to the 2024 Act that quashed the convictions.
Fourteen software bugs and what they cost
| Bug | Date | What went wrong | Documented cost |
|---|---|---|---|
| Therac-25 radiation therapy machine | 1985–1987 | A race condition and a one-byte counter that overflowed | Six massive overdoses; three patients died from or after them |
| AT&T long-distance network | 15 Jan 1990 | A switch software update that spread a fault across 114 switches | About half of long-distance calls failed for about nine hours |
| Patriot missile battery, Dhahran | 25 Feb 1991 | Clock drift in 24-bit arithmetic after 100 hours of running | 28 American soldiers killed |
| Intel Pentium (FDIV) | 1994 | Missing entries in a division lookup table | $475 million pre-tax charge |
| Ariane 5, flight 501 | 4 Jun 1996 | A 64-bit value converted to a 16-bit integer without a guard | Launcher and four satellites lost; often valued at $500 million |
| Mars Climate Orbiter | 23 Sep 1999 | Pound-seconds delivered where newton-seconds were expected | $125 million orbiter lost |
| Post Office Horizon | 1999–2015 | Accounting bugs treated as proof of theft | More than 900 prosecutions; about £1,727 million redress paid by 30 Sep 2026 |
| Northeast blackout | 14 Aug 2003 | A race condition stopped the control-room alarms | 50 million people; $4–10 billion in US costs |
| Knight Capital | 1 Aug 2012 | A reused flag switched on dead code on one of eight servers | $460 million loss in about 45 minutes |
| Heartbleed (OpenSSL) | 7 Apr 2014 | A missing bounds check on a length the client supplied | 17.5% of secure websites exposed |
| The DAO | 17 Jun 2016 | Funds sent before the balance was updated (reentrancy) | About 3.6 million ETH, then $50–60 million |
| Parity multi-sig wallets | 6 Nov 2017 | A shared library left uninitialised, then destroyed | 513,774.16 ETH frozen, then $169 million |
| Citibank, Revlon loan | 11 Aug 2020 | Three checkboxes needed, one ticked | Almost $900 million sent in error |
| CrowdStrike Falcon | 19 Jul 2024 | 21 input fields where the sensor expected 20 | 8.5 million Windows devices crashed |
Costs are in the currency and wording of each source and measure different things: a company’s loss, an accounting charge, an estimate for a whole region, redress paid so far. Where sources disagree, the sections below give both figures.
Why small bugs make the most expensive failures
A failed IT project usually costs what was spent on it, and the biggest failed IT projects are measured in budgets and years. A bug is different. Its cost is set by what the software controls at the moment it fails, so a mistake of a single line can cost more in 45 minutes than a whole project costs in five years.
The cases here were chosen because each has a public record that explains the code: an inquiry board, an accident investigation, a court judgment, a regulator’s order or the company’s own root-cause report. Outages caused by configuration and infrastructure have their own timeline in the biggest internet outages; this one is about defects in the software itself.
Therac-25: the bug in a radiation machine
The Therac-25 was a radiation therapy machine built by Atomic Energy of Canada Limited, and eleven were installed in the United States and Canada. Between June 1985 and January 1987 it caused six known accidents with massive overdoses, according to the investigation published by Nancy Leveson and Clark Turner in 1993. Three of those patients died from or after their injuries. The doses were estimated at 13,000 to 20,000 rads, where a typical treatment is about 200.
There were two bugs. In Tyler, Texas, an operator who edited the prescription quickly, inside the roughly eight seconds the machine took to set its magnets, could leave the machine firing a high-power beam the screen did not show. The investigators wrote that data-entry speed was the key factor. In Yakima, Washington, a one-byte variable counted passes through a safety check and could only reach 255, so on every 256th pass it overflowed to zero and the check was skipped.
The earlier Therac-20 had the same software error, but hardware interlocks stopped it from hurting anyone. The Therac-25 removed those interlocks and relied on the software alone. The case is now a standard text in safety-critical engineering for exactly that reason.
AT&T, 1990: one update in 114 switches
On 15 January 1990, about half of the long-distance calls on AT&T’s network got a busy signal or a recording for about nine hours. The cause was a software update loaded in December 1989 into all 114 of its 4ESS switches. When a switch in New York reset after a minor fault and came back, it sent messages to a neighbour that was still processing an earlier one. The neighbour took itself out of service, came back, and passed the problem on, switch after switch.
AT&T said at the time that the fault was in the code. The often-retold detail, a misplaced break statement in C, comes from later accounts rather than a published primary source, and so does the frequently quoted $60 million loss.
Patriot, Dhahran: 0.34 seconds after 100 hours
On 25 February 1991, a Patriot air-defence battery in Dhahran, Saudi Arabia, failed to intercept an incoming Scud missile, which hit an army barracks and killed 28 Americans. The US Government Accountability Office traced the failure to the system clock. Time was converted to a real number in 24-bit registers, and the small error in each conversion grew the longer the system ran.
The battery had been running for over 100 hours. By then the clock was off by 0.3433 seconds, and the radar was looking 687 metres away from the missile. The Army had already learned of the drift from Israeli data and sent users a warning on 21 February that very long run times could shift the radar, without saying how long was too long. The corrected software reached Dhahran on 26 February, the day after the attack. A reboot every few hours would have reset the error.
Intel Pentium: five missing entries, $475 million
In late 1994, a mathematics professor found that some Pentium processors returned wrong results for certain divisions. The chip’s divider used a lookup table, and five of the entries it could reach were missing. Wrong answers were rare, but Intel’s first offer, a replacement only for users who could show they needed one, turned a rare error into a public argument. On 20 December 1994 it agreed to replace any affected chip on request.
In January 1995, Intel took a one-time pre-tax charge of $475 million for replacements and written-off inventory. Strictly speaking, this was a hardware bug, not a software one. A 2024 analysis of the chip by the engineer Ken Shirriff argues that the pattern of missing entries points to an error in the program that generated the table rather than a copying mistake, which would make it a software bug after all, one step removed.
Ariane 5: a number too big for 16 bits
Ariane 5’s first launch, on 4 June 1996, carried four Cluster science satellites. At 36.7 seconds after the countdown reached zero, the inertial reference system failed, and at about 39 seconds the launcher started to disintegrate. The European Space Agency’s inquiry board found the cause in software reused from Ariane 4: a conversion from a 64-bit floating-point number to a 16-bit signed integer that was not protected, although neighbouring conversions were.
On Ariane 4’s trajectory, the value never grew too large for 16 bits. Ariane 5 was faster, the value overflowed, and the error shut down both the backup and the active system. The routine that failed served no purpose after lift-off, yet it was still running. The inquiry report gives no cost. The figure usually cited is $500 million for the rocket and its cargo, from a 1996 New York Times Magazine article; a $370 million figure that also circulates has no source we could find.
Mars Climate Orbiter: pound-seconds where the code expected newton-seconds
NASA lost the Mars Climate Orbiter on 23 September 1999 as it arrived at Mars. Its mishap investigation board found that a ground software file used in trajectory models gave thruster performance data in English units, pound-seconds, where the specification called for metric newton-seconds. Every value was low by a factor of 4.45.
Small errors accumulated over months of flight. The spacecraft passed about 57 kilometres above Mars instead of the 80 it needed to survive, and was not heard from again. Contemporary reports put the orbiter alone at $125 million; the whole Mars Surveyor ’98 project, including a lander lost later that year to a different cause, came to $327.6 million.
Post Office Horizon: when the computer was believed
Between 1999 and 2015, the UK Post Office prosecuted more than 900 sub-postmasters, the BBC reports, mostly over cash shortfalls shown by Horizon, the branch accounting system built by Fujitsu. Many lost their savings, their homes and their reputations. In December 2019 the High Court found that the early version of Horizon was "not remotely robust", and listed bugs by name, including one that affected at least 30 branches and caused account mismatches at 19 of them.
The bugs were real, but the harm came from treating the system’s figures as proof. English courts presumed that a computer was working correctly unless shown otherwise, and the people accused had no way to show it. Parliament quashed the convictions by law in 2024. The public inquiry found a real possibility that 13 people took their own lives. By 30 September 2026, about £1,727 million in redress had been paid to more than 14,000 claimants, according to the UK government.
The 2003 blackout: alarms that stopped without saying so
On 14 August 2003 a power failure spread across the northeastern United States and Ontario and left an estimated 50 million people without electricity. The joint US–Canadian task force put US costs at between $4 billion and $10 billion. Software was one cause among several, alongside overgrown trees and poor situational awareness, but it was the one that kept the operators from seeing the others.
At 14:14 that afternoon, the alarm processing routine in FirstEnergy’s control-room software stopped working, and nobody was told. GE, the system’s supplier, later described a race condition: two processes got write access to the same data structure at the same moment, and the alarm application went into an infinite loop. The window was measured in milliseconds, in about a million lines of code. For over an hour, operators watched a screen that showed no new alarms while transmission lines tripped.
Knight Capital: $460 million in 45 minutes
On 1 August 2012, Knight Capital, one of the largest market makers in US shares, released new code for a New York Stock Exchange programme. The new code reused a flag that had once switched on Power Peg, an order-handling feature unused since 2003 but still in the codebase. A technician did not copy the new code to one of the eight servers, and no one checked the deployment.
On that eighth server, the flag switched on the old code, which no longer counted how many orders had been filled. In about 45 minutes it sent millions of orders, which became 4 million executions in 154 stocks. Knight first reported a loss of about $440 million; the Securities and Exchange Commission’s order puts it at $460 million and fines Knight $12 million. The company needed $400 million of emergency financing within a week, and agreed to be taken over before the year was out.
Heartbleed: a length nobody checked
Heartbleed, disclosed on 7 April 2014, was a bug in OpenSSL, the encryption library behind a large share of the web’s secure connections. Its heartbeat feature let a client send a small message with a stated length and get the same message back. The code trusted the stated length, so a client that claimed 64 KB received up to 64 KB of the server’s memory, which could include passwords, cookies and private keys.
Netcraft estimated that 17.5% of secure websites, about half a million, were vulnerable. Canada’s tax agency reported about 900 social insurance numbers stolen in six hours. There is no reliable total cost. What followed was a funding programme: OpenSSL had been maintained by a very small team, and the Linux Foundation set up the Core Infrastructure Initiative to pay for critical open-source projects. The same missing check, a value from outside used without validation, is still among the most common flaws in web code, including code written with AI tools. How little money OpenSSL had at the time, and which other volunteer projects the web depends on, are covered in the open-source software the internet runs on.
The DAO and Parity: code nobody could stop
The DAO was an investment fund written as a smart contract on Ethereum, and it raised Ether worth about $150 million. On 17 June 2016 an attacker used a flaw in its withdrawal code, which sent funds before updating the balance, so a contract that called back in could withdraw again before the first withdrawal was recorded. About 3.6 million ETH, a third of the fund, moved out, worth between $50 million and more than $60 million at the time, depending on the source. Ethereum reversed it with a hard fork in July; part of the community refused, and that chain continues as Ethereum Classic.
A year later, on 6 November 2017, a user called the setup function of the shared library behind Parity’s multi-signature wallets, which had never been initialised, became its owner and destroyed it. Every wallet that depended on it was frozen: 513,774.16 ETH, then about $169 million. No fork followed, and the funds are still locked. Code that cannot be changed after release has no second chance, so its review has to happen before release.
Citibank and Revlon: a screen that sent $900 million
On 11 August 2020, Citibank meant to send about $7.8 million of interest to lenders on a Revlon loan. In the loan software, stopping the principal from being paid out as well required three fields to be set to an internal account. The employee set one. A second employee and a senior manager approved it, and almost $900 million of Citibank’s own money went to the lenders.
Some lenders returned it; funds holding more than $500 million did not, and a New York court first ruled that they could keep it. The appeals court reversed that decision in September 2022. Nothing in the code malfunctioned. The screen did exactly what the boxes said, and three people read it as doing something else, which is a design bug rather than a coding one, and just as expensive.
CrowdStrike: 21 fields where 20 were expected
On 19 July 2024, CrowdStrike sent a content update to its Falcon security sensor on Windows. In CrowdStrike’s own root-cause analysis, the sensor expected 20 input fields and the update provided 21, which caused an out-of-bounds memory read and a crash. Because the sensor runs inside the Windows kernel, the machines could not start again. Microsoft estimated 8.5 million affected devices, and Delta Air Lines said the disruption cost it about $380 million in revenue and $170 million in expenses, a claim CrowdStrike contests in court.
The update was live for 78 minutes before it was reverted. CrowdStrike’s fixes were the habits this list keeps returning to: check the number of fields, check the bounds, and release in rings, to a few machines first. The full account is in the biggest internet outages.
What these bugs have in common, and what a website owner can copy
Put the fourteen side by side and the code is almost never clever. The failures come from values nobody tested, code nobody deleted, releases nobody staged and screens nobody questioned. Estimates of the total are large and loose: a 2002 study for the US National Institute of Standards and Technology put the cost of inadequate software testing at $59.5 billion a year in the United States, and an industry report sponsored by a software-testing vendor put the cost of poor software quality at $2.41 trillion in 2022.
For a business website, the same four habits do most of the work: validate every input, delete what you no longer use, release in stages with a way back, and be told when something stops. Concretely, that means form fields checked on the server as well as in the browser, old plugins and pages removed rather than switched off, updates tried on a copy of the site before the live one, a backup you have actually restored, and uptime monitoring that alerts a person. That is most of what a maintenance retainer should include.
— FAQ
Frequently asked questions
Sources and method
Every date, figure and technical cause in this article comes from the source listed against it, read on 14 November 2026. Where an official report gives no cost, the figure used is the one most often cited by reputable press, and the section says so. Month positions on the timeline are counted from January 1985.
- Leveson and Turner — An Investigation of the Therac-25 Accidents (IEEE Computer, July 1993) ↗
The race condition, the one-byte counter, the six accidents and the Therac-20 interlocks.
- RISKS Digest 9.62 — the AT&T network failure of 15 January 1990 ↗
AT&T’s account of the switch software fault, quoted from Telephony.
- Deseret News — AT&T is back to normal after glitch (16 January 1990) ↗
About half of long-distance calls failed for about nine hours.
- US GAO — Patriot Missile Defense: Software Problem Led to System Failure at Dhahran (IMTEC-92-26) ↗
24-bit time conversion, 100 hours of running, 0.3433 seconds, 687 metres, 28 killed.
- Intel — press release on the Pentium charge (17 January 1995) ↗
One-time pre-tax charge of $475 million.
- Ken Shirriff — Intel’s $475 million error (December 2024) ↗
Die analysis of the FDIV table and the case for a table-generation error.
- ESA — Ariane 501 Inquiry Board report (19 July 1996) ↗
The unprotected 64-bit to 16-bit conversion, reused Ariane 4 software and the timeline of the failure.
- James Gleick — A Bug and a Crash (New York Times Magazine, 1 December 1996) ↗
The $500 million valuation of the rocket and cargo.
- NASA — Mars Climate Orbiter Mishap Investigation Board, Phase I Report (10 November 1999) ↗
English units in the Small Forces file, the factor of 4.45 and the 57 km approach.
- NSTA — Lost in Space case study ↗
Mars Surveyor ’98 project cost of $327.6 million, from NASA figures.
- High Court — Bates v Post Office, judgment No. 6 on Horizon issues (16 December 2019) ↗
"Not remotely robust", the named bugs and the branches affected.
- UK Government — Post Office Horizon financial redress data as of 30 September 2026 ↗
About £1,727 million paid to more than 14,000 claimants.
- Post Office Horizon IT Inquiry — Volume 1 (8 July 2025) ↗
The finding on people who took their own lives.
- BBC — Post Office scandal explained ↗
More than 900 sub-postmasters prosecuted between 1999 and 2015.
- U.S.-Canada Power System Outage Task Force — Final Report (April 2004) ↗
50 million people, $4–10 billion in US costs, the alarm processor failure at 14:14.
- The Register — Tracking the blackout bug (8 April 2004) ↗
GE’s description of the race condition in the XA/21 alarm software.
- US SEC — Order against Knight Capital Americas, Release No. 34-70694 (16 October 2013) ↗
The reused Power Peg flag, the eighth server, 4 million executions, the $460 million loss.
- US SEC — press release 2013-222 ↗
The $12 million penalty, the first under the market access rule.
- Knight Capital — press release of 2 August 2012 ↗
Knight’s own first estimate of about $440 million.
- Netcraft — Half a million widely trusted websites vulnerable to Heartbleed ↗
17.5% of secure sites.
- MoneySense — 900 SINs stolen from CRA during Heartbleed breach ↗
The Canada Revenue Agency breach.
- US SEC — Report of Investigation on The DAO, Release No. 81207 (25 July 2017) ↗
About 3.6 million ETH, a third of the Ether raised.
- CoinDesk — The DAO attacked (17 June 2016) ↗
More than $60 million at the time.
- The Register — Parity flaw not fixed (16 November 2017) ↗
513,774.16 ETH, about $169 million, frozen.
- US District Court SDNY — Citibank v. Brigade Capital, opinion (16 February 2021) ↗
The three fields, the approvals and the almost $900 million.
- US Court of Appeals, Second Circuit — Citibank v. Brigade Capital (2022) ↗
The reversal in Citibank’s favour.
- CrowdStrike — Channel File 291 root cause analysis (6 August 2024) ↗
20 expected input fields, 21 provided; the fixes that followed.
- Microsoft — Helping our customers through the CrowdStrike outage (20 July 2024) ↗
8.5 million Windows devices.
- Fortune — Delta’s $380 million in lost revenue (9 August 2024) ↗
Delta’s figures from its filing, contested by CrowdStrike.
- NIST — The Economic Impacts of Inadequate Infrastructure for Software Testing (2002) ↗
$59.5 billion a year in the United States.
- CISQ — The Cost of Poor Software Quality in the US: A 2022 Report ↗
$2.41 trillion; an industry estimate sponsored by Synopsys.
Who checks your site’s code before it goes live?
We review code, keep plugins and dependencies up to date, try every update on a copy of your site first, and set up backups you can restore and monitoring that alerts a person, so a small bug stays a small bug.