Talk:Therac-25

"Beam flattener"
What language does the phrase "beam flattener" come from? The English term for the object which converts an electron beam to X-Rays is "target".

Atlant 01:01, 28 Feb 2005 (UTC)


 * the "beam flattener" would probably be the "flattening filter", which is required to produce a 'flat' beam profile at a depth of 10cm (usually). it is a component in the chain after the target.  the target dose not produce a uniform beam profile, hence the reason for the flattening filter.... —The preceding unsigned comment was added by 205.211.160.1 (talk • contribs).


 * Thanks!


 * Atlant 18:26, 27 July 2006 (UTC)


 * I read the accident report, and it's fascinating! When used in high-power mode, the beam is supposed to pass through a metal plate which spreads the X-rays out over a large area.  This plate absorbs most of the energy hitting it, so they have to crank up the voltage to compensate.  Since the plate wasn't in position, not only did the patient receive a lethal 25,000 MEV blast, but it was concentrated into a tight beam.  OWWW!   Techno Faye Kane  01:39, 20 February 2008 (UTC)

Rads
The article mentions that victims received tens of thousands of rads, but makes no mention of what amounts of rads are deemed dangerous (such as a maximal treshold permitted by health authorities). —Preceding unsigned comment added by ToohrVyk (talk • contribs) Pjacobi 00:00, 29 December 2005 (UTC)


 * You're right. The information is hidden at Sievert and the reader is rquired to do the unit conversion and the application of the Q-factor. I'll put this on my to-do-list. --Pjacobi 00:00, 29 December 2005 (UTC)


 * In the case study written by Nancy Leveson (Univ of Washington) and Clark S. Turner (Univ of Cal, Irvine), the following information is given: "Typical single therapeutic doses are in the 200-rad range.  Doses of 1,000 rads can be fatal if delivered to the whole body; in fact the accepted figure for whole body radiation that will cause death in 50 percent of the cases is 500 rads." [bweable]


 * So why no discussion about what happened to the company? Were they sued?  Who are the victims?  What was the quality of life like for those who survived? I'm too lazy to login, but I am ClintJCL. [clintjcl]


 * They make nuclear reactors now. They were sued and all of them were settled out of court. — Preceding unsigned comment added by 24.111.54.158 (talk) 05:29, 21 August 2019 (UTC)

3 or 5 deaths?
The (summary) reference lists 3 radiation-induced deaths (out of 6 accidents), while the article says 5 (of 6). I won't change it myself because the reference may be dated but in that case this should perhaps be remarked upon@?

Now the article says 2 out of 6 in the introductory section and 3 in the end of the "Problem Description" section. Which one's correct? --CloudShaker (talk) 15:12, 7 December 2009 (UTC)

Google clearly states 6 deaths... Leonardo Da Vinci (talk) 10:40, 27 June 2024 (UTC)

Assembly Language?
How does Assembly Language have anything to do with this? It's just a language, debugging isn't the point. The point is that it didn't have any hardware implementations as a fail-safe.

- Klasanov —Preceding unsigned comment added by 12.110.74.133 (talk) 17:48, 14 October 2007 (UTC)

possible incorrectly stated energies for the 2 modes of operation?
"The failure only occurred when a particular nonstandard sequence of keystrokes was entered on the VT-100 terminal which controlled the PDP-11 computer: an "X" to (erroneously) select 25,000 EV mode followed by "cursor up", "E" to (correctly) select 200 EV mode, then "Enter". This sequence of keystrokes was improbable, and so the problem did not occur very often and went unnoticed for a long time.[1]"

Shouldn't those energies be 25,000,000 eV and 5,000,000 eV, as opposed 25,000 EV and 200 EV, respectively? —Preceding unsigned comment added by 141.154.36.251 (talk) 15:50, 1 July 2008 (UTC)

Aftermath of the Incident
Were there any lawsuits involved, and how have the survivors gone on to live – any major ailments from the radiation? Also, does anyone know where there are photos of the patient injuries or the Therac-25 machine itself? I feel these would add greatly to the article. —Preceding unsigned comment added by 131.170.90.3 (talk) 02:44, 16 October 2008 (UTC)


 * According to Nancy Leveson's comprehensive analysis of the entire Therac-25 incident (see the External Links section), there were a number of lawsuits filed against AECL, all settled out of court.

Nat Hillary 16:58, 24 March 2010 (UTC) - Updated Nancy Leveson's name in reference so that it points to her Wikipedia article. —Preceding unsigned comment added by Nat hillary (talk • contribs)

== Well, found this on Google: In 1986, Ray Cox went into the clinic for his usual radiation treatment in his shoulder. The technician mistakenly typed "x" into the computer, which signified x-ray beam, then immediately realizing the error, changed the "x" into an "e" for electron beam, and hit "enter", showing the machine that they were ready to start treatment. This sequence occurred in less than 8 seconds.(This particular sequence, in this time frame, was never tried in the original testing of the machine.) The computer gave the signal of "beam ready", and the technician pressed "b" to deliver the beam to the patient. But then the computer responded with an error message. Usually this message meant that the treatment had not been delivered. So the technician repeated the process and delivered another beam to the patient. And yet again, an error message occurred. Meanwhile,Ray felt sharp stabbing pains in his back, which was much different than his usual treatments, and removed himself after three shocking attempts. Because the commands were changed in such a short period of time, the computer did not respond properly. The metal plate moved away showing the technician that it was in low energy electron beam mode. But the beam that actually came from the machine was a blast of 25 000 rads with 25 million electron volts, the maximum setting, which is more than 125 times the regular dose. Ray’s health quickly became worse, and he died 4 months later from complications of major radiation burns. == —Preceding unsigned comment added by 69.242.171.111 (talk) 03:38, 29 December 2008 (UTC)

Not a "race condition."
It's stated at the end of the "Problem Description" section that this is a race condition.

This does not appear to be the case.

A race condition is when the potential timing of preceding conditions is not correctly accounted for in software (or hardware) and cause an unexpected or undefined state to occur.

Timing was not relevant to this sitution. That is, the particular situation resulted because certain predicate conditions were not specified as required or were not verified to be in the required state*. Specifically "don't use the high power beam unless the target is in place."

It was not because they were specified but occurred in an unaccounted for sequence. ______
 * The malfunction alert and the trivial override indicate that, perhaps, the situation WAS detected but was simply bypassed. If so, then it's even more clearly not a race condition.

Wjl2 (talk) 15:26, 18 March 2009 (UTC)


 * Did you deduce that just by reading the article or did you get that from an external source? The Wikipedia description doesn't explain the issue in sufficient detail to tell what exactly was the underlying software flaw.
 * This link claims that "Race conditions resulting from this implementation of multitasking played an important part in the accidents." and explains in limited detail the disregard for issues arising from concurrent programming.
 * That document is part of An Investigation of the Therac-25 Accidents, published in IEEE Computer, Vol. 26, No. 7, July 1993, pp. 18-41. This is a quite often-cited paper and is used as an example in many university CS courses. According to Google Scholar, this paper has 551 known citations -- intgr [talk] 12:45, 15 October 2009 (UTC)

Would it not make more sense to write it as "The software flaw was the result of a race condition bug in the safety subsystem."? Something to make it more clear that the selection of beam mode isn't a race condition. —Preceding unsigned comment added by 99.236.162.167 (talk) 18:32, 12 December 2010 (UTC)


 * Why the hell are they using concurrent programming in a procedural device. There's no reason why input flow in such a device should be allowed at the same time the device is in a mechanical transition. Input all variables ahead of time and then operate, only allowing concurrency for an emergency cancel, which would kill the laser... — Preceding unsigned comment added by 206.180.38.20 (talk) 13:23, 3 July 2012 (UTC)

_____

The IEEE paper explains the flaw in great detail. The "not a race condition" commenter proposes that the cause of the accident was that the software failed to verify that the machine's components were in the required state, but this is an effect, not a cause, of the underlying problem. The IEEE paper describes that the Therac-25 had removed the hardware interlocks that were present on previous models, depending instead on software interlocks for safety. The software interlock failed due to a race condition. The defect was as follows: a one-byte counter in a testing routine frequently overflowed; if an operator provided manual input to the machine at the precise moment that this counter overflowed, the interlock would fail. This is a classic race condition. For reference, see the section titled "The Yakima software problem" in the IEEE paper. —Preceding unsigned comment added by 24.16.76.175 (talk) 20:57, 28 December 2009 (UTC)


 * I've (finally) updated the article accordingly. Jpatokal (talk) 01:08, 11 May 2012 (UTC)

Scanning
What does scanning mean when talking about radiotherapy? I had an idea that scanning meant sending some pulses/particles/something onto/through an object and getting some knowledge about the shape/content/material/constitution by looking at what is reflected or what gets through.

But it must mean something else here. The wiki article only talks of "scanner magnets" but the article by Leveson and Turner for example says something about that the machine could turn on the beam without scanning.

Velle (talk) 19:11, 24 May 2010 (UTC)

Kinda like the scanning motion of a CRT's electron beam, scanning in this context refers to moving the therapeutic beam over the treatment area rather than simply leaving it focussed in one place. You'd do this for much the same reason as in a CRT: you want to treat a (relatively) large area with an even dose rather than zapping a tiny area specifically.

Pewterfish (talk) 14:06, 8 September 2010 (UTC)

Not as far I can see, so I'll have to add [citation needed] to your answer.

Electron beam therapy is used in the treatment of superficial tumors like cancer of skin regions, or total skin (e.g. mycosis fungoides), diseases of the limbs (e.g. melanoma and lymphoma), nodal irradiation, and it may also be used to boost the radiation dose to the surgical bed after mastectomy or lumpectomy. For deeper regions intraoperative electron radiation therapy might be applied.

https://onlineethics.org/cases/therac-25/therac-25-case-narrative

Patients can be treated directly with the resulting electron beam, as long as the beam is spread out by scanning magnets to produce a safe level of radiation. The medical linear accelerator spreads and directs the beam at the [Schematic diagram of a typical medical accelerator used in cancer radiotherapy.] appropriate place for treatment. The picture below shows a typical medical linear accelerator in operation.

But a difficulty with the electron beam is that it diffuses rapidly in tissue and cannot reach deeper tissue for treatment. The picture below is a simulation (produced by the Stanford Linear Accelerator Center) of an electron beam traveling through air and entering human tissue. You can see the beam quickly diffuses and therefore does not penetrate deeply.

To solve this problem, Therac-25 and many other machines can switch to a mode in which X-ray photons are used for treatment. These penetrate much more deeply without harming intervening tissue. To do this, the electron beam is greatly increased in intensity and a metal foil followed by a beam "flattener" is placed in the path of the electron beam. This transforms the electron beam into an X-ray (called photons in some literature). This process is inefficient and requires a high intensity electron beam to produce enough X-ray intensity for treatment. Therac-25 used a 25 MeV electron beam to produce an X-ray for treatment. 25 MeV is 25 million electron volts (eV -- an eV is the energy needed to move one electron through a potential of one volt).

Image A simulated cross section view of radiation dispersing upon entering the body [A simulated cross section view of radiation dispersing upon entering the body.]

Therac-25 was what was called a dual-mode machine. It could produce the low energy electron beams for surface treatment and it could also produce a very high intensity electron beam that would be transformed into an X-ray by placing the metal foil in the path of the beam. The serious danger in a dual mode machine is that the high-energy beam might directly strike the patient if the foil and flattener were not placed in its way.

TL;dr magnets spread the beam, not focus it, used in treating the surface of the body, rather than a focused strong penetrating beam. — Preceding unsigned comment added by 49.183.158.187 (talk) 01:03, 13 May 2022 (UTC)

Operators
While it's true that a software issue was at the root of the problem, I read elsewhere that operators walked away from the machine in operation. This contributed to the disbelief of there being a problem. Dlamblin (talk) 21:43, 10 August 2012 (UTC)

Pronunciation
Can someone add a pronunciation guide? Is "Therac" spoken with French inflection? — Preceding unsigned comment added by 122.56.19.161 (talk) 09:06, 6 March 2013 (UTC)

The software interlock could fail due to a race condition
Such incidents would not have been an issue in a single-use machine and unlike previous models, the Therac-25 relied on software rather than hardware safety interlocks. What happened was the operator using a keypad would select a particular mode. The machine would then start a programmed cycle and move plates into position. This normally could take up to a minute. Meanwhile, the operator then realizing his mistake would re-enter the correct mode. The machine continued to run the old cycle and ignored inputs from the keypad, but the display showed the new settings. The operator, not realizing this then switched on the machine and gave the patent the wrong dose of radiation.

"lack of synchronization between Datent, Ptime, and Magnet subroutines caused a change in data entry to remain undetected to the device" — Preceding unsigned comment added by Codeusirae (talk • contribs) 23:30, 29 October 2013 (UTC)

When was the machine Made?
The article is missing the date the machine actually went into operation50.5.90.226 (talk) 14:29, 1 June 2015 (UTC)
 * According to the Nancy Levenson source, a prototype was made in 1976 and a commercial version was available in late 1982, so I am using the latter date. I have added the information. Opencooper (talk) 00:04, 3 January 2016 (UTC)

Thousands vs. 100
The lede says "thousands of times greater than normal", the body says "approximately 100 times the intended dose of radiation" - which is accurate? 195.50.95.82 (talk) 19:26, 2 January 2016 (UTC)
 * According to page 23 of this source by Nancy Leveson, typical radiation doses are in the 200-rad range, while a patient at Kennestone (Katie Yarborough) received dosage in the range of 15,000 to 20,000 rad. Additionally, this source says that Ray Cox was supposed to receive 180 rads, but got 15,000 to 16,000 rads. That is a factor of 100 so I am changing the lead to match the body. Opencooper (talk) 23:54, 2 January 2016 (UTC)

half the issue was need for operator in a boring simple task
There is plenty study in eg. Military air operations that pilots use stimulants when there's nothing happening.

The error here was that the operation consisted of selecting a mode and starting the machine then leaving the room. A cow would have been a better operator than human for such task, especially given the lack of requirement for any ancilliary functions such as measuring the device functions as intended before patient uses it.

I've been to ultrasound three times now and each operator of the ultrasound used significant force in pressuring the probe such that I had discomfort for several days. And each time nothing was found while the issue was definitely real and in the area probed. After looking at some ultrasound images i have to conclude ultrasound should not be human operated but only use through 3d scanner tomography that is possible to be operated by the patient. The way this would function is like the ipad fingerprint scanner. The computer informs the patient-operator when there is no longer new information arriving and asking patient to move the probe. Since it is a tomography, the results can also be interpreted without doctor assistance by computerized correlation to healthy reference data. — Preceding unsigned comment added by 91.155.19.195 (talk) 00:55, 9 December 2018 (UTC)

A Commons file used on this page or its Wikidata item has been nominated for deletion
The following Wikimedia Commons file used on this page or its Wikidata item has been nominated for deletion: Participate in the deletion discussion at the. —Community Tech bot (talk) 06:04, 9 May 2021 (UTC)
 * Therac-25.jpg

Two potential sources for the Levison safeware paper
There are two potential sites hosting the Levison paper Safeware. IEEE MIT is significant, prominent, but the version of the paper there isn't searchable, at least not in current Chrome browser. The other hosting site is not prominent, but the search works on the .pdf, and perhaps the formatting is better. If there were an "Alternate source" part to the Cite then that could be used on the 'safeware' cite. Or we plump for one and forget the other. Or we have both. Opinions? . Chumpih  t 22:33, 21 January 2022 (UTC)


 * You are correct. I downloaded both PDF files, and the PDF from MIT was again not searchable in Adobe Reader. I also parsed both PDF files through Beyond Compare, and you could see significant differences at a binary level.  I think the best option is to change the "safeware" citation to use the URL for the searchable PDF file. KD5TVI (talk) 23:40, 21 January 2022 (UTC)
 * A reasonable compromise. Cool. Chumpih  t 06:48, 22 January 2022 (UTC)

Verb tense
Regarding my edit of a couple of days ago, I'm not entirely sure whether this article should be in the past or present tense, per WP:WAS and its PDP-10 example, although I think some care should be taken to maintain consistency about it. I doubt anyone has a functioning PDP-10 anymore, or at least that anyone would try to use it in order to get their daily work done. Even the Enigma machine article uses present tense, although it has not been used since 1945 for any purpose other than as a historical curiosity. On the other hand, ENIAC, UNIVAC and Z4 (computer) are in the past tense, and even if someone had an operational Therac-25, it would probably be criminal to attempt to use it for its original intended purpose. (Ping @Chumpih, who is taking an interest in copyediting here.) —&#8288;&#8202;&#8288;BarrelProof (talk) 16:02, 22 January 2022 (UTC)


 * (weak) Past tense seems most appropriate, as the article is currently written. As  suggests, it's no longer a viable product.  That said, per WP:WAS, present tense should be preferred, so if there is a strong desire from others to bring this into the present, and consensus, that too would be fine.  Chumpih  t 22:26, 23 January 2022 (UTC)

Removed April Fool's image


This image cites a source of "Software compiled from source code available at http://mit.edu/6.033/2007/wwwdocs/assignments/handson-therac.html".

That page, however, is an April Fool's joke. It is linked from 6.033: Computer Systems Engineering Spring 2007 with a date of Apr 1, 2007. Additionally, the source links to another page purporting to be a liability release form that specifically mentions "Failure to understand April Fool's jokes".

Finally (and this is just my opinion) the alleged source code is far too short and does not seem to have any real functionality whatsoever; I would guess it was written explicitly for the purposes of the April Fools joke.

The fact that this image was on the article for so long is embarrassing. Mike Richardson (talk) 00:39, 6 May 2023 (UTC)


 * Hmm, I'm not seeing the issue here, and would suggest its reinstatement. The image chimes well with the representation of page 6 of Leveson.  The evidence for a joke isn't strong, and even if it were, the quality and content is, to me, acceptable.  Agree that the source is just for a simple simulator, and not for the actual Therac-25, but again that doesn't preclude use of the image.  Chumpih  t 02:45, 6 May 2023 (UTC)


 * Then we should use the representation of page 6 of Leveson directly in the entry (instead of an image made years later, from fake source code). However I do not know what the copyright implications would be for using a screenshot from a article in such a way. Mike Richardson (talk) 02:47, 11 May 2023 (UTC)
 * Perhaps the image is OK, despite the 'fake source code'. I know of many images all over wikipedia, some of  which have source code is available - of varying quality and authenticity - and some without source code at all.  I don't think the quality of the source that yields an image has a significant bearing on the acceptability of the image.  Indeed, an image could be reduced to a bitmap, or (re)produced using paint or similar.
 * Agree there could be potential copyright issues lifting the image from Leveson, even when the words on the screen are not copyrighted. Chumpih  t 03:03, 12 May 2023 (UTC)

East Texas Cancer Center operator
The operators in both ETCC cases were supposedly the same person, but the pronouns don't match ('she' in the first one, 'he' in the second one). 2001:14BA:9C49:9C00:39D9:C53B:83FC:3AE4 (talk) 09:47, 16 December 2023 (UTC)

Terminal DEC VT-100.
Why is there a picture of this terminal here. I see no reference to it or what it relates to? Perhaps it needs a paragraph somewhere to explain it's relevance? Volatileacid (talk) 23:54, 19 December 2023 (UTC)


 * There's a reference to VT-100 under the Therac-25 section (controlling PDP), so the image is OK to be on the page. As for positioning, well that's a matter of taste and relevance, and it could arguably be improved ... by all means go ahead if you like.  Chumpih  t 07:09, 20 December 2023 (UTC)