Therac-25 was called safe, yet its software overdosed patients in 1985–87

Therac-25 · 1985: Therac-25 software overdosed cancer patients between 1985 and 1987.

At the hospital in Tyler, one day in March, an operator stood watching the dosimeter, the gauge that reports how much radiation a machine has actually delivered. The display showed 6 units. The machine had asked for 202. The operator looked at the gap, then reached over and pressed Proceed.

The operator read down the prescription, 22-MeV electrons, a beam of fast-moving electrons, at 180 rad, the unit of radiation dose, aimed at a patch of skin. Only the dosimeter said the machine and the plan had parted ways, and the operator, without a second look at either, answered the way the routine said to answer.

Routine was the one thing this room had plenty of. The hospital had treated more than 500 patients on this machine without a single incident. The Therac-25 stood seven feet high and filled about twelve feet of floor, a large, quiet, dependable presence in the building.

Behind that choice sits a harder question. Could a machine this trusted be hurting people while it told the operator everything was fine?

The Split That Made a Cheaper Machine

The renewal date for the cooperation agreement between AECL and CGR arrived, and nobody moved to extend it. The two companies let the papers sit and cited competitive pressures. AECL now stood alone, with only the machines the partnership had left behind: the Therac-6, an X-ray-only accelerator running at 6 MeV (million electron volts, a measure of beam energy), and the Therac-20, a dual-mode machine at 20 MeV. Both had been built by AECL and CGR together.

Both of those machines carried a computer, but the computer only added convenience. The industry-standard hardware interlocks stayed in place. On the Therac-20, independent protective circuits and mechanical interlocks stood between a mistake and a patient, whatever the software did.

Now AECL wanted a machine of its own, one that was compact and cheaper to build. The double-pass design offered the saving, because it used a magnetron rather than a klystron. The company would still have to decide how much of the old protection to carry over.

AECL decided not to duplicate all the existing hardware safety mechanisms and interlocks. The electromechanical locks that traditionally held the turntable in its proper position on machines like this were dropped, and software checks took over their job.

On paper the change looked like tidy engineering. In practice, the Therac-25 leaned on code for functions that the Therac-20 had entrusted to independent circuits and steel. A lock either holds or it does not, and anyone can test it with a hand. But how would anyone check a promise that lived only in software?

A Safety Analysis That Left Out the Software

In March 1983, AECL set out to prove its new machine safe. The tool was a fault-tree analysis, a diagram that starts from a disaster, such as a patient receiving the wrong dose, and branches backward through every cause that could lead there, with a probability attached to each branch. The analysis apparently left the software out.

The computer did appear on the tree, but only as a piece of equipment. The analysts apparently counted just the ways its hardware could fail, and the code running on it never got a branch of its own. One line on the tree covered the very error that Tyler would later expose, "Computer selects wrong mode." The report gave it a probability of 4 x 10^9 and offered no justification for the figure.

Behind that number stood a program written by one person. Over several years, that programmer had grown it out of the Therac-6 software, working in PDP-11 assembly language, a style of coding that spells out every instruction in the machine's own terms, one small step at a time. Nobody built a second system to watch the first. Leveson, who later studied the case, says the Therac-25 software had no independent checks that the machine was operating correctly.

AECL did not wait for the questions. Beginning in 1982, it sold eleven Therac-25 machines in the US and Canada, and each one went out with the tree's reassuring arithmetic behind it.

Who would be the first to find out?

Katie Yarbrough's Twelfth Treatment

Early in June 1985, Katie Yarbrough, 61, drove herself to Kennestone for her twelfth treatment. By then the visits had a rhythm: park, check in, lie down under the machine, and go home.

The plan for June 3 was a short 10-MeV electron beam aimed at her clavicle, the collarbone. The dose written on her chart was 200 rad, a routine amount for a routine day.

Something else happened under the machine. Afterward, the staff weighed her injury against the machine's record. The Therac-25 at Kennestone had reportedly run 20,000 irradiations, and nobody there believed it could hurt a patient this way. They called the injury a symptom of her cancer.

The Kennestone physicist did the arithmetic anyway. His calculation came out at 15,000 to 20,000 rad, roughly a hundred times the dose intended. He had no record to hold up beside it. The treatment printout function had been switched off during her session, so the dose data was never written down, and the one document that could have settled the argument did not exist.

Yarbrough's left arm ended up paralyzed, apart from spasms. In October 1985 she sued both AECL and the hospital. One physicist was not willing to leave it there.

Still Calls Ottawa and Stays Late

Still picked up the phone and called AECL in Ottawa. He wanted to know whether a Therac-25 could deliver the dose that had burned Yarbrough at Kennestone. The answer took three days to come back, and it was short: what he described was not possible.

The answer did not satisfy him. At Kennestone, nobody had ever carefully investigated what happened to Yarbrough, so a physicist with a question was all the inquiry there was. Still stayed late, after the treatment room had emptied, and set out to make the machine fire a beam with that kind of force.

Every attempt ended the same way. Whenever he changed one of the prescription components, the beam shut off. The machine refused to repeat the fault, and the harder he pushed, the more it behaved like the safe machine AECL described.

Technicians had heard patients say they were burned, but AECL found the idea impossible, and a fault that will not repeat on demand is easy to dismiss. Still says that when he spoke about the case, a call came from AECL with a warning: without proof, his talk was libel. He took it as an attempt to intimidate him.

Hamilton and the Microswitch Theory

Five times the Therac-25 in Hamilton, Ontario, stopped, and five times the operator pressed Proceed. The machine allowed it. Only after the fifth restart did it halt the treatment for good.

The patient on the table had cervical cancer, and the beam had been landing on her hip. A technician later worked out how much she had received, and the estimate ran from 13,000 to 17,000 rad.

AECL went looking for a culprit in July 1985. Its engineers settled on the turntable microswitches, the small sensors that report the position of the rotating assembly inside the machine. They decided the switches weren't working properly and modified them. The decision rested on thin ground, because the company could not replicate a microswitch failure, and its testing came back inconclusive.

The company still wrote up the fix with confidence. AECL claimed the modifications gave a five-order-of-magnitude increase in safety, a figure that suggested the machine was now a hundred thousand times safer.

The claim left out two things. AECL said nothing about the injured patient in Hamilton, and nothing about the Georgia accident either. A hospital reading the paperwork would have learned that a part had been improved, with no hint of why.

Yakima Rules Out the Machine

Yakima's staff had a patient with a burn and no explanation for it, so they wrote to AECL. The reply came back at two pages long, and every paragraph went to one point: overdose was impossible on a Therac-25.

The letter went further than reassurance. AECL told Yakima that the damage could not have come from a malfunction or from operator error. They looked at a heating pad, as if a warm cloth on the skin could explain a wound the beam might have made.

In the end the staff concluded that they would never know what had caused the burn, and they turned the machine back on. Treatments resumed on the same Therac-25, with the same software, and the next patient lay down beneath it.

Then came Tyler, in March 1986. Only after that incident did AECL tell the FDA about the complaint from Yarbrough's treatment at Kennestone, a case the company had held for months.

By then the clinics had a problem the company's letters could not settle. Physicists at the Therac-25 sites began talking to one another, and what they heard did not fit anything they had been told. They were perplexed, and they were frustrated, because each of them had received the same assurance and each had a burned patient who contradicted it. Still, in Georgia, had been asking his question alone for months. Now other physicists were asking it too, and the question had grown larger: what did these injuries have in common?

Eight Seconds and a Number on Paper

The answer, when it came, turned on speed. Investigators and the physicists who had finally started comparing notes found that an operator who selected X-ray mode and then switched to electron mode within 8 seconds left the beam set for X-rays with no target in place. The trigger was an operator quick enough to edit the entry before the machine finished setting itself. The first fix did not hold, because a bit flag was incremented instead of being set to non-zero. Overflow still let the fault through, and the accidents continued.

On February 6, 1987, the FDA shut down all machines until permanent repairs could be made. The Therac-25 was recalled that year for extensive design changes, including hardware safeguards against software errors. Between June 1985 and January 1987, six known accidents had involved massive overdoses, with deaths and serious injuries. Leveson and Turner then took the case apart and turned it into a lesson in software safety. They said their goal was to help others learn, and that they were not out to criticize the manufacturer or anyone else.

Leveson put the larger puzzle plainly: people seem to trust a calculated risk number more than actual experience. In Tyler, the dosimeter had shown a sliver of the dose the screen demanded, and the operator pressed Proceed, because the machine had treated hundreds of patients and the number said it was safe.

Editorial graphic and headline text by Signal Titans.

Source: The Race Condition That Killed: Fritz Hager, the Tyler Cancer Center and the Therac-25's Hidden Bug · www.cs.columbia.edu · An Investigation of Therac-25 Accidents – I · Therac-25 – Ethics Unwrapped · www.cs.ucf.edu · Therac History · Fatal Dose – Radiation Deaths linked to AECL Computer Errors · doi.org

Share this article
FacebookThreadsLinkedInX

Leave a Reply

Your email address will not be published. Required fields are marked *