<!-- mobian-agent-page publisher="dailydev" canonical="https://daily.dev/posts/chernobyl-at-your-local-hospital-hhidakrez" -->

---
title: Chernobyl at your local hospital | daily.dev
description: Recounts the Therac-25 radiation therapy machine disaster, where an integer overflow bug in an 8-bit test counter caused the machine to fire a full,...
canonical: https://daily.dev/posts/chernobyl-at-your-local-hospital-hhidakrez
twitter:card: summary_large_image
twitter:site: @dailydotdev
og:type: website
og:site_name: daily.dev
og:title: Chernobyl at your local hospital | daily.dev
og:description: Recounts the Therac-25 radiation therapy machine disaster, where an integer overflow bug in an 8-bit test counter caused the machine to fire a full,...
og:url: https://daily.dev/posts/chernobyl-at-your-local-hospital-hhidakrez
og:image: https://api.daily.dev/og/posts/hhIdAkRez.png
og:image:alt: Chernobyl at your local hospital
og:image:width: 1200
og:image:height: 630
og:locale: en
---

> ## Documentation Index
> Fetch the complete documentation index at: https://daily.dev/llms.txt
> Use this file to discover all available pages before exploring further.

# Chernobyl at your local hospital

**[Slidebean](https://daily.dev/sources/slidebean)** · 1 min read · 0 upvotes · 0 comments

## Summary

Recounts the Therac-25 radiation therapy machine disaster, where an integer overflow bug in an 8-bit test counter caused the machine to fire a full, unmoderated electron beam at patients when the counter rolled over to zero. Six patients were affected and three died. The follow-up machine had the same software bug but avoided disaster because hardware interlocks physically prevented the unsafe beam configuration, illustrating the case for hardware-level safety guardrails rather than relying on software alone.

## Full article

daily.dev links to this article rather than hosting it. Read it at the original source: <https://www.youtube.com/watch?v=Bv2yYwOA3I4>

## Questions this post answers

### What caused the Therac-25 radiation therapy machine to give patients fatal overdoses?

An 8-bit software counter used to track how many machine self-tests had run could only count from 0 to 255 before rolling back to zero. When that counter happened to be at zero, the machine fired its full, unmoderated electron beam without the tungsten flattening bed in place, delivering massive overdoses regardless of the intended treatment. Six patients were affected and three died.

_Anyone designing safety-critical systems can find deep dives on hardware interlocks and failure design on daily.dev._

### Why didn't the successor to the Therac-25 cause the same radiation overdose accidents even though it had the same software bug?

The follow-up machine included hardware breakers that physically overrode the software, preventing the unsafe full-power beam from firing even when the same counter-rollover bug occurred. This shows that a hardware-level safety interlock can catch failures that software alone misses, since the underlying logic error was never actually fixed in code.

_Developers weighing software-only versus hardware-backed safety design can track these patterns on daily.dev._

## Similar posts on daily.dev

- [Chernobyl’s Robots, Or The Hackathon From Hell](https://daily.dev/posts/chernobyl-s-robots-or-the-hackathon-from-hell-8qzrxrnwc) · Hackaday · 0 upvotes · 0 comments
- [The Chernobyl NPP And Forty Years Of Robots For High Radiation Environments](https://daily.dev/posts/the-chernobyl-npp-and-forty-years-of-robots-for-high-radiation-environments-fdkl0iray) · Hackaday · 0 upvotes · 0 comments
- [From Chernobyl to AI: The Rise and Fall of Safety Culture](https://daily.dev/posts/from-chernobyl-to-ai-the-rise-and-fall-of-safety-culture-fjgt3hj62) · ITNEXT · 2 upvotes · 0 comments
- [The mistold story of a software failure that grounded 6,000 jets](https://daily.dev/posts/the-mistold-story-of-a-software-failure-that-grounded-6-000-jets-kc4f7h1se) · CSO Online · 0 upvotes · 0 comments

---

Tags: [#healthcare](https://daily.dev/tags/healthcare), [#embedded](https://daily.dev/tags/embedded)

[View this post on daily.dev](https://daily.dev/posts/chernobyl-at-your-local-hospital-hhidakrez)

```json
{"@context":"https://schema.org","@graph":[{"@type":"Organization","@id":"https://daily.dev/#organization","name":"daily.dev","url":"https://daily.dev","logo":{"@type":"ImageObject","url":"https://daily.dev/apple-touch-icon.png","width":180,"height":180},"sameAs":["https://twitter.com/dailydotdev","https://github.com/dailydotdev","https://www.linkedin.com/company/daily-dev-ltd"]},{"@type":"WebSite","@id":"https://daily.dev/#website","url":"https://daily.dev","name":"daily.dev","publisher":{"@id":"https://daily.dev/#organization"},"potentialAction":{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https://daily.dev/search?q={search_term_string}"},"query-input":"required name=search_term_string"}}]}
{"@context":"https://schema.org","@type":"TechArticle","headline":"Chernobyl at your local hospital","url":"https://daily.dev/posts/chernobyl-at-your-local-hospital-hhidakrez","mainEntityOfPage":{"@type":"WebPage","@id":"https://daily.dev/posts/chernobyl-at-your-local-hospital-hhidakrez"},"datePublished":"2026-08-25T20:42:51.717Z","dateModified":"2026-08-25T20:48:30.790Z","description":"Recounts the Therac-25 radiation therapy machine disaster, where an integer overflow bug in an 8-bit test counter caused the machine to fire a full,...","image":"https://i.ytimg.com/vi/Bv2yYwOA3I4/sddefault.jpg","thumbnailUrl":"https://i.ytimg.com/vi/Bv2yYwOA3I4/sddefault.jpg","isAccessibleForFree":true,"articleSection":"Slidebean","inLanguage":"en","publisher":{"@type":"Organization","name":"daily.dev","url":"https://daily.dev","logo":{"@type":"ImageObject","url":"https://daily.dev/apple-touch-icon.png","width":180,"height":180}},"author":{"@type":"Organization","name":"Slidebean","logo":"https://media.daily.dev/image/upload/s--ZuWWFJQ6--/f_auto/v1761722215/logos/slidebean","url":"https://daily.dev/sources/slidebean"},"commentCount":0,"discussionUrl":"https://daily.dev/posts/chernobyl-at-your-local-hospital-hhidakrez","interactionStatistic":[{"@type":"InteractionCounter","interactionType":{"@type":"LikeAction"},"userInteractionCount":0},{"@type":"InteractionCounter","interactionType":{"@type":"CommentAction"},"userInteractionCount":0}],"keywords":"healthcare,embedded","timeRequired":"PT1M","video":{"@type":"VideoObject","name":"Chernobyl at your local hospital","description":"Recounts the Therac-25 radiation therapy machine disaster, where an integer overflow bug in an 8-bit test counter caused the machine to fire a full,...","thumbnailUrl":"https://i.ytimg.com/vi/Bv2yYwOA3I4/sddefault.jpg","uploadDate":"2026-08-25T20:42:51.717Z","duration":"PT1M","url":"https://api.daily.dev/r/hhIdAkRez","embedUrl":"https://www.youtube.com/embed/Bv2yYwOA3I4"}}
{"@context":"https://schema.org","@type":"BreadcrumbList","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https://daily.dev"},{"@type":"ListItem","position":2,"name":"Slidebean","item":"https://daily.dev/sources/slidebean"},{"@type":"ListItem","position":3,"name":"Chernobyl at your local hospital"}]}
{"@context":"https://schema.org","@type":"FAQPage","@id":"https://daily.dev/posts/chernobyl-at-your-local-hospital-hhidakrez#faq","mainEntity":[{"@type":"Question","name":"What caused the Therac-25 radiation therapy machine to give patients fatal overdoses?","acceptedAnswer":{"@type":"Answer","text":"An 8-bit software counter used to track how many machine self-tests had run could only count from 0 to 255 before rolling back to zero. When that counter happened to be at zero, the machine fired its full, unmoderated electron beam without the tungsten flattening bed in place, delivering massive overdoses regardless of the intended treatment. Six patients were affected and three died. Anyone designing safety-critical systems can find deep dives on hardware interlocks and failure design on daily.dev."}},{"@type":"Question","name":"Why didn't the successor to the Therac-25 cause the same radiation overdose accidents even though it had the same software bug?","acceptedAnswer":{"@type":"Answer","text":"The follow-up machine included hardware breakers that physically overrode the software, preventing the unsafe full-power beam from firing even when the same counter-rollover bug occurred. This shows that a hardware-level safety interlock can catch failures that software alone misses, since the underlying logic error was never actually fixed in code. Developers weighing software-only versus hardware-backed safety design can track these patterns on daily.dev."}}]}
```

