Slashdot Mirror


Examples of Programming Gone Wrong?

LightForce3 asks: "I'm a beginning CS student, and in my studies I've come across examples of programmer error causing very large problems, such as the Ariane 5 failure and the Therac-25 accidents, often as tales of caution to beginner programmers such as myself. My (morbid?) curiosity has been piqued, and I'm looking for other examples of programmer error leading to serious problems. After all, it is better to learn from the mistakes of others than from your own, right? ;) What programming-related accidents, incidents, and failures, both well-known and obscure, do Slashdot readers know about, and are there any good resources for researching these?"

236 of 626 comments (clear)

  1. On Fox tonight @ 8pm by darylp · · Score: 4, Funny

    When Programming goes Wrong 2! Thrill to our latest reality TV series where we show REAL LIFE footage of poorly thought out database schemas, unchecked buffers and even explicit shots of forbidden goto statements.

    1. Re:On Fox tonight @ 8pm by jsse · · Score: 3, Funny

      You thought they haven't featured that before? :)

      Once on TV there was a documtary on a history of computers, talking about Pascal, father of computers, the first programmer, the first vacuum tube computer, and....the first (real)bug found - in closeup shot!

      I found this extremely amazing and couldn't even move my eyes away throughtout the show. Then I found my wife and my mother-in-laws fell into deep coma on sofa...

      Damn! I should have taped the show!

    2. Re:On Fox tonight @ 8pm by Pogue+Mahone · · Score: 2

      Remeber: GOTOs don't kill people; programmers kill people.

      --
      Every bloody emperor has his hand up history's skirt [Peter Hammill/VdGG]
    3. Re:On Fox tonight @ 8pm by JonTurner · · Score: 2
      Tonight on FOX, "When Slashdotters get Girlfriends!"

      Fox? More like SciFi (as in "Science FICTION") or the Comedy Channel.

    4. Re:On Fox tonight @ 8pm by sharkey · · Score: 2

      Followed by "Conspiracy Theory: Do Computers Really Exist?" at 9pm.


      You are watching FOX.

      --

      --
      "Outlook not so good." That magic 8-ball knows everything! I'll ask about Exchange Server next.
  2. The book "Fatal Defect" by spanky555 · · Score: 5, Informative

    This book is devoted to just that. It's what you're looking for...go get it and read it.

    1. Re:The book "Fatal Defect" by Fastball · · Score: 2

      I bought and read this book, and I was seriously disappointed. I suppose there's only so much you can add to botched automation that ends up kill people. I just wanted good anecdotes. I was interested to read about the pitfalls of a fly-by-wire airplane, but I could have done without the filler from experts basically saying over and over, "This stuff is dangerous."

      Don't waste your time with this book. Look for interesting anecdotes on the web.

  3. Mars Orbiter Lost Over Metric Conversion by Kircle · · Score: 4, Informative

    http://slashdot.org/articles/99/09/30/1437217.shtm l

    --

    -- Kircle

    1. Re:Mars Orbiter Lost Over Metric Conversion by scott1853 · · Score: 2

      So the computer was supose to correctly interpret the erroneous number that was entered by a human? I don't think it was really a programming error per se, at least not in the context of the story.

    2. Re:Mars Orbiter Lost Over Metric Conversion by pz · · Score: 2

      This was not a programming error, but rather a data entry error. Had the correct constants been used, the code would likely have worked flawlessly.

      It was also a human controller issue, as the slowly accumulating error was ignored for a long time.

      --

      Put my fist through my alarm clock with its ding-dong death inside my ear. - The Blackjacks.
  4. Here are my Top 4: by ekrout · · Score: 5, Informative
    --

    If you celebrate Xmas, befriend me (538
    1. Re:Here are my Top 4: by br0ck · · Score: 2

      False!? This sounds exactly like the story about a women stuck in an airliner toilet, carried by AP/Reuters/BBC earlier this year, which was retracted and declared false by Snopes.

  5. Re:Challenger by agentZ · · Score: 5, Informative

    What happened to Challenger wasn't a programming mistake, but rather a case of not following policy. The solid rocket boosters were never designed to operate in cold temperatures. The result of working outside of design specs was catastrophic failure, yes, but that wasn't the result of a programming error.

  6. RTM Worm by rwash · · Score: 5, Interesting

    In the 80's, Robert T Morris accidentally released a worm that exploited problems in sendmail and other common internet daemons that took down most of what was the internet at that time. This was expecially bad since about half of it was military.

    1. Re:RTM Worm by ProfessorPuke · · Score: 5, Interesting

      "accidentally released" is wrong, or prehaps whitewashing by RTM's friends. The release was fully intentional. What was accidental about it is that he hadn't realized that in addition to infecting virtually every UNIX system it found, it would also DOS them. The worm constantly tried to infect every available system, meaning that a system which was vulnerable would recieve many, MANY copies of the worm, exhausting its processing power.

      RTM had been aware of the possiblilty, and implemented a fix- but he did it wrong. He'd created code so that a new worm, when first arriving at a host, could check if a previous instance of the worm had been there. If so, it could abort its infection process.

      However, he was afraid that this would make vaccinating machines too easy (by sysops faking the "already infected" flag), so he created a 12.5% random chance that an incoming worm would ignored the fact that a machine was already compromised and infect it again. That probability had NO rational basis behind it, (in fact the whole idea of using randomizing like this is flawed), and served to postpone the shutdown of the internet by at most an hour.

      This was an especially bad blunder because it set a frightening example of what hackers could do. If RTM had used a 100% chance of non-reinfection, (and played his cards right from then on), he'd have been hailed as an innovative security analyst who'd prevented security-compromising violations of the Pentagon's systems. Instead he was tossed in prison for years.

    2. Re:RTM Worm by Anonymous Coward · · Score: 2, Informative

      Just for the record: he never went to jail.

    3. Re:RTM Worm by devonbowen · · Score: 2

      I seem to remember that the Berkeley gang issued a patch for the worm shortly thereafter. They said it was "in the Berkeley tradition of improving other people's software" or something like that.

      Devon

    4. Re:RTM Worm by "Zow" · · Score: 2
      he created a 12.5% random chance that an incoming worm would ignored the fact that a machine was already compromised and infect it again.

      As I recall, he intended for it to have a 1/6 (12.5%) reinfection rate, but he messed up the math somewhere and actually ended up giving it a 5/6 chance of attempting to reinfect.

      -"Zow"

  7. Y2K? by Monthenor · · Score: 5, Insightful

    ...wherein a technique to save memory on older computers resulted in a massive media panic twenty years later. Oh, and it caused a couple glitches

    --
    Co-founder of GerbilMechs
    1. Re:Y2K? by Doug+Neal · · Score: 2, Interesting

      Well the reason why Y2K wasn't the huge disaster the media were predicting was because in the years leading up to it the world's programmers were running around like blue-arsed flies fixing everything :P

    2. Re:Y2K? by yamla · · Score: 2

      It wasn't a technique to save memory. Storing the year as a +- offset from 1970 would allow a range from 1842 to 2097 and would only take up ONE BYTE of storage compared to storing two characters (taking up two bytes) giving a range of 1900 - 1999.

      --

      Oceania has always been at war with Eastasia.
    3. Re:Y2K? by T-Ranger · · Score: 3, Informative

      Prehaps true, but back in the days of punchcards anc COBOL you wernt storing a integer for a date, you were storing a string.

    4. Re:Y2K? by balloonhead · · Score: 4, Funny
      It was overhyped nonsense. A lot of people made a lot of money out of the panic spread about Y2K. A few things might have broken, but essentially the predicted disaster was never going to happen.

      Hey we sold you this! Top of the range! But it's broken, even before we sold it to you. If you pay us £500000 we'll fix them all, but if you don't your blood will boil and your head will explode, all your kids will die of pestilence, your wife will sleep around, your plane will try to reach the moon and all your elevators are belong to us.

      --
      This idea was invented by Shampoo.
    5. Re:Y2K? by Citizen+of+Earth · · Score: 4, Funny

      wherein a technique to save memory on older computers resulted in a massive media panic twenty years later.

      Yeah, we fleeced 'em pretty good, eh. We should do that again in 2038 in order to pad my retirement account!

    6. Re:Y2K? by ProfessorPuke · · Score: 2

      Yes, but the fact that dates were ever stored as strings in the first place was itself a major design flaw. It led not only to memory wastage and Y2K itself, but also reduced interoperability of all kinds of computer databases, because they first had to parse out each other's nonstandard date formats before comparing data.

    7. Re:Y2K? by Boiling_point_ · · Score: 2
      ...resulted in a massive media panic twenty years later. Oh, and it caused a couple glitches
      I would say the Y2K phenomenon caused a lot more than a media panic and a couple of glitches. How different would the IT industry be today, if the countless billions spent upgrading everything were still around to be spent now? Or if proper analyses were done first to see if things that could be upgraded really should? Ok so that second part is more to do with a bug in western legal frameworks that allow "liability" to be a guilty-until-proven-otherwise sort of thing...
      --
      "If you create user accounts, by default, they will have an account type of Administrator with no password." KB Q293834
    8. Re:Y2K? by DancingSword · · Score: 2, Interesting

      That was the opinion of NewScientist magazine, but shortly before the actual date, something happened in Australia that changed their mind ( it was in an editorial, IIRC, not in the online version -- the mag really is worth it ).

      What changed their mind, is that some smelting operation ( again, IIRC ) destroyed itself automatically, when the computers that poured fuel ( coal? ) into the furnaces kept doing so, while the computers that poured ore into the system stopped doing so, because Feb 29th didn't, according to them, exist.

      Autodestruct, though not quite HAL-style ( as an aside, didn't HAL stand for Holographic Algorithmic Logic? -- remember the clear blocks they used as HAL's units in the computer-room, too )

      Sudden, Colossally Expensive equipment damage, but no lives lost.

      Had that happened in one model of autopilot. . .

      And yes, I remember some city administration stating that they'd done a 'dry run' of rollover, and discovered that the basic infrastructure didn't work ( water was one item specifically mentioned, though I don't remember if it was treatment or what ).

      Of course, 'no disaster that had been about-to-be-caused by this code that we discovered to be non-correct didn't happen' . . isn't front-page news.

      I know for fact, that some federal gov't contracters were writing NON-Y2K compliant code in 1998 ( either being committedly braindead, or hoping that the re-write contracts would pay extravagantly when the social-insurance system broke on-the-day ).

      --
      Messages to/for me ( in me journal )
    9. Re:Y2K? by achurch · · Score: 2

      Storing the year as a +- offset from 1970 would allow a range from 1842 to 2097 and would only take up ONE BYTE of storage compared to storing two characters (taking up two bytes) giving a range of 1900 - 1999.

      At considerable cost in the work required to perform certain operations (such as displaying) on the year. Remember that data size was not the only consideration in those days; code size and processing time were also major issues. Granted, many of the Y2K problems were probably due to laziness ("nobody will still be using this stuff in 30 years, let's just leave the 19 as constant"), but the two-digit year was probably the best compromise between data size and processing complexity at the time many of those programs were written.

      And how do you know that the computers in question used 8 bits per character? (I don't, either, but there are some coding systems, such as EBCDIC, that use other numbers of bits, and some systems, like the PDP-8, that had e.g. 12 bits per memory unit; in fact, the PDP-8 FAQ mentions that many PDP-8 programs packed two 6-bit characters into one 12-bit word.)

    10. Re:Y2K? by os2fan · · Score: 2
      It appears to be "overhyped nonsence", because the outcry got people out there fixing code before it happened. In fact, the mass hysteria was needed to get the dollars to flow to get the fixes in place on time.

      Unfortunately, it took the "your blood will boil" and "escallators will shoot you through the roof", and "horde bake beans in the basement" type hysteria to get mgt to realise it was more than just something else. It's not a buffer overflow, type disaster.

      To run around and say "it will never happen" is clearly wrong. I often used programs which would not allow data entry of events spanning 2000.01.01. I had to deal with the 1999 bug, where, where the program rejected 1999 as invalid.

      Mind you, it's nice to see MSFT with their fingures on the pulse: win98 had y2k fixes released for it. According to file manager, the year after 1999 is 19:0. It was kind of interesting to see what sort of years followed 1999, by different programs. 1900, 19:0, and 19100 all appeared beside 2000.

      When 2000 came and went, and no-one saw hoodlums roaming the diserted streets, and power-outages as power networks were brought to a screaming halt, it's as much due to the unremitting efforts to get fixes in place as to the robustness of the system.

      --
      OS/2 - because choice is a terrible thing to waste.
    11. Re:Y2K? by balloonhead · · Score: 2
      I thought HAL was just the letters before I, B and M (IBM).

      --
      This idea was invented by Shampoo.
    12. Re:Y2K? by gorilla · · Score: 2

      Back in the days when many of these database were set up, it wasn't possible to store binary data.

    13. Re:Y2K? by gorilla · · Score: 2
      What changed their mind, is that some smelting operation ( again, IIRC ) destroyed itself automatically, when the computers that poured fuel ( coal? ) into the furnaces kept doing so, while the computers that poured ore into the system stopped doing so, because Feb 29th didn't, according to them, exist.

      Actually the problem was that computers shut down, and that caused the melting pots furnaces to shut down. With these sort of things, an uncontrolled shutdown does damage, they should be shutdown gradually. This was in 1996, as would be implied by it being a leap year problem.

    14. Re:Y2K? by dubl-u · · Score: 2

      It appears to be "overhyped nonsence", because the outcry got people out there fixing code before it happened. In fact, the mass hysteria was needed to get the dollars to flow to get the fixes in place on time.

      That sounds good, and that's certainly what the Y2K gurus will have you believe.

      But they have a hard time explaining why countries who didn't have massive Y2K remediation efforts didn't have big problems, either. That was the case in large parts of Asia and Africa, where, thanks to buying secondhand tech, had a much higher percentage of systems from the era where Y2K glitches were present.

    15. Re:Y2K? by os2fan · · Score: 2
      On the other hand, hun, how much of their system depends on Y2K stock. That is, word processors and spreadsheets continue after 2000, as does DOS or Windows. Some of these may show 19100 or 19:0, but these do not stop shows.

      Y2K does not stop computers per se, what happens is that dates that are really after are read as before, and code that depends on this throws out the transaction.

      Having dealt with y2k, and with mgt in general, the hype was still worth it.

      --
      OS/2 - because choice is a terrible thing to waste.
    16. Re:Y2K? by leuk_he · · Score: 2

      Airplanes will FALL FROM THE SKIES!
      did happen in /11 sept /2001, not in 2000.
      elevator, THEY'LL FALL!
      did you see the movie :"de lift (the 13th floor)". right, programing error.
      Withdraw all of your money or YOU'LL LOSE IT!"
      paypal. (no need to say more on /.

  8. How about the AT&T Switch failure in NY? by Bolen · · Score: 5, Informative

    A Central Office (CO) switch is basically a mainframe-class computer programed in assembler. A few years back, a newly-installed switch failed due to a bug in the code, causing a cascading failure of the phone system for a few hours.

    1. Re:How about the AT&T Switch failure in NY? by treat · · Score: 2
      A Central Office (CO) switch is basically a mainframe-class computer programed in assembler.

      Surely this can't be true. What benefit would there be to assembler over a modern programming language, even C? Writing massive MASSIVE applications in assembler would be time consuming and error prone.

    2. Re:How about the AT&T Switch failure in NY? by doc_side · · Score: 2, Informative
    3. Re:How about the AT&T Switch failure in NY? by rodgerd · · Score: 2

      It currently works. Getting a bunch of C monkeys to rewrite it is going to make it better how, exactly?

    4. Re:How about the AT&T Switch failure in NY? by ebh · · Score: 2

      What benefit? As you suspect, none.

      Almost 20 years ago I wrote call processing firmware for telephone switches, e.g., the code that detects that you've picked up the handset and sends a dial tone your way. It was written in C. We used assembler for low-level hardware register manipulation and things like that, but there was never any compelling reason to use assembler for the bulk of the code. The whole thing fit into six 8Kbyte ROMs.

      There is nothing magical about call processing code, as compared with OS kernels or applications or anything like that. The same arguments for using high-level languages in any other programming project apply here.

      Uphill. Both ways.

  9. Re:Challenger by Pyromage · · Score: 5, Informative

    Incorrect: This was not a programming issue. Nor was it a software issue at all. The problem was the O-ring seals in the SRBs (Solid Rocket Boosters). The manufacturer stated that they should not be operated under 53 degrees, and NASA overrode the recomendation and launched anyway. The expected happened.

    NASA hasn't ever had a hardware problem. Or a software problem. Ever. Every problem can be directly tied to one specific person being a fscking moron. The closest you could come is that Mars probe that crashed because of mismatched units. And that was just poor communication among the software guys.

  10. I had a professor by teamhasnoi · · Score: 5, Funny

    Professor Falkin was always saying, "Leave a backdoor in any program you write, just in case your code becomes self-aware."

    1. Re:I had a professor by Subcarrier · · Score: 5, Funny

      Professor Falkin was always saying, "Leave a backdoor in any program you write, just in case your code becomes self-aware."

      I can't help thinking that a fairly high percentage of current Microsoft employees must be former students of his.

      --
      "I have opinions of my own, strong opinions, but I don't always agree with them." -- George H. W. Bush
    2. Re:I had a professor by WolfWithoutAClause · · Score: 2

      Unfortunately, if it's that self aware it will know about the backdoor and remove it ;-)

      --

      -WolfWithoutAClause

      "Gravity is only a theory, not a fact!"
    3. Re:I had a professor by sean23007 · · Score: 2

      Actually, it only needs to be couple of employees. After all, it's not like there's a fatal backdoor vulnerability in every single product they release.

      Oh wait, never mind.

      --

      Lack of eloquence does not denote lack of intelligence, though they often coincide.
  11. You forgot the part that went wrong. by mindstrm · · Score: 3, Interesting

    The only reason it took thigns down was because a timing loop was messed up, and it was spreading something like 1000 times too fast. It was supposed to spread everywhere, yes, but by crawling slowly.. it was not intended to eat up all connections on all machines.

    Had that been the case, it would have been much more widespread and caused much less damage.

    1. Re:You forgot the part that went wrong. by Autonomous+Crowhard · · Score: 2

      The other problem was that the code to prevent the worm from being sent back to the previous machine was either broken or just not there. So it wasn't just a problem with the speed, it was also a problem with an exponential increase in the number of messages at each node.

  12. RISKS Digest by BinBoy · · Score: 4, Informative

    The RISKS Digest is a mailing list and usenet newsgroup that describes all kinds of situations where technology has gone wrong. Many of the stories involve programming errors.

    Google's RISKs Archive

  13. Re:Challenger -- AT&T had the biggest gaff. by telecaster · · Score: 2, Interesting

    I'll agree that some programming errors *could* be fatal, but the one that comes to mind is the "2 line change" from AT&T that essentially knocked out phone service throughout the east and mid-west in 1990. It was the topic if many quality assurance seminars for the better part of the early 90's. I only remember it because it effected my company -- we lost phone service for 2 days. It was also one of those traditional "last minute changes" that someone clearly f*cked on...

    http://www.soft.com/AppNotes/attcrash.html

  14. Why, the world's favorite mail client, by Scarblac · · Score: 5, Interesting

    Outlook!

    Built with the idea that code in attachments should be executable, often automatically. Also full of exploitable bugs, to get even more stuff running automatically, regardless of who who sent it. Responsible for a huge amount of damage by all sorts of worms, trojans, etc.

    Someone, somewhere got the idea that email would look better with html; and if it got html, it should get scripting too, that's consistent with web pages! And it's cool if attachments (like pictures) can be opened in their appropriate program automatically - let's run any executables then, that's consistent!

    This is oversimplified, but I really feel that this is a case of stupid consistency that caused multi-billion dollar damage. Email should never be executed by the mail client.

    --
    I believe posters are recognized by their sig. So I made one.
    1. Re:Why, the world's favorite mail client, by illsorted · · Score: 4, Funny

      I don't know which is funnier, this post, or the fact that it's modded "+4: Flamebait".

    2. Re:Why, the world's favorite mail client, by billbaggins · · Score: 5, Insightful
      Not quite. I don't think even Outlook was ever set to just run code automatically. What went wrong was that for a long time (and, in unpatched versions, even today), Outlook would implicitly trust the "Content-type" header for an attachment or message, and, if it was a "safe" type (like text/html or image/jpeg) then the attachment would be handed off to the document-opener to be rendered & displayed inline. Problem was, the document-opener didn't go by the MIME type but by the extension. So if you had something like
      Content-type: image/gif
      Content-disposition: attachment; filename="fux0r.scr"
      then the document-opener would say "ah, this is a screensaver, I should execute it" and before the poor user knew what was going on, all hell was breaking loose...
      --
      "The best argument against democracy is a five minute chat with the average voter."
      --Winston Churchill
    3. Re:Why, the world's favorite mail client, by sql*kitten · · Score: 2

      Not quite. I don't think even Outlook was ever set to just run code automatically.

      I'm pretty sure it was. Outlook + Exchange was never just an email client-server combo, it was intended as a platform for the development of document routing and workflow systems as well as messaging (i.e. it competes with Lotus Notes, not with pine + sendmail). The scripting capability is there so you can send logic and interactive GUIs around, not just email and attachments, and integrate it via COM with all the other Office applications.

    4. Re:Why, the world's favorite mail client, by loply · · Score: 2

      And now its +5 Insightfull.
      I think this underlines a slight problem with the Slashdot modding system :)

  15. Mars Orbiter Lost Over Metric Conversion (link) by Kircle · · Score: 2, Informative
    --

    -- Kircle

  16. Re:already.. by Anonymous Coward · · Score: 5, Insightful

    Why not provide a link instead of saying "Oh yeah, I saw it way back when."

    You people who say "use google to find it" or "this was already asked" are worse than the people who actualy ask the question.

    Their only problem (if it could be said to be a problem) is ignorance, your kind however are a much better example of the problem of self-rightous lazyness.

  17. That was an easy setup by Ghoser777 · · Score: 5, Interesting
    A clear example is: [insert random microsoft product].

    Oh wait... -1 Redundant

    Here's a good site though with tons of examples.

    My favorite would be the infamous time when NASA did half its calculation in metric and the rest in SI. ;)

    F-bacher

    --
    James Tiberius Kirk: "Spock, the women on your planet are logical. No other planet in the galaxy can make that claim."
    1. Re:That was an easy setup by Transcendent · · Score: 2

      ...metric is practically the same as SI...

      Unit of distance : meters
      Unit of mass : kilograms
      Unit of force : Newtons

      The article you linked to clearly states that the mixup was in the English system and Metric System.... not SI and Metric (for which there is almost no contrast that I can think)

    2. Re:That was an easy setup by Vireo · · Score: 2

      when NASA did half its calculation in metric and the rest in SI

      THAT would have turned out just fine...

    3. Re:That was an easy setup by Transcendent · · Score: 3, Informative

      that was not an error in the programming... some dumbass gave all the calculation in English units for acceleration to the programmer who writes his program using SI for units (or metric... same thing...).

    4. Re:That was an easy setup by CaptainCarrot · · Score: 2
      Where imperial is the UK grown system of feet, pounds and miles.

      I know everyone says "Imperial" when they mean the system in common use in the US, but they're not the same thing. One gallon containers (as for gasoline) used to be marked in two sets of units, US and Imperial. The Imperial gallons (for Canada and the UK) were slightly larger, and were moreover the same whether measuring dry or liquid. US dry and liquid gallons are different.

      They're also called English measurements. After all, they were in use long before there was a British Empire, or even a UK for that matter. Official, fixed standards happened after the English settlement of America, so we wound up with units that varied a bit from what became standard later on.

      --
      And the brethren went away edified.
    5. Re:That was an easy setup by cdrudge · · Score: 2

      I would say that you are both right. The "base" unit obviously is gram. However, weight is measured in reference to a 1 kilogram cylinder of platinum-iridium. Everything is relative to that cylinder ultimately. 1 gram would be 1/1000th of the cylinder. The "base" unit here would be a kilogram since that is how mass is defined.

    6. Re:That was an easy setup by CaptainCarrot · · Score: 2

      A bit of Googling came up with the reason for the differing gallon. It seems that the British standardized (or standardised ;) on the ale gallon, while the Americans standardized on the wine gallon. Yes, the two used to be different. I think it was for tax purposes; wine was usually imported but not ale, and the standard used opted by the Excise authorities was not the same as that used by the Exchequer for internal taxation. 10 lbs. of water used for the Imperial standard approximated the existing ale gallon very closely, I guess.

      --
      And the brethren went away edified.
    7. Re:That was an easy setup by CaptainCarrot · · Score: 2

      Lots of peoples' traditional measures were derived to one degree or another from the Romans, but they usually got a bit mangled along the way so the measures weren't always identical. They tended to get adapted to local conditions, and various sovereigns would also modify the standard measures for their own reasons (such as sneaking in a tax increase or debasing the currency in such a way that not everyone would notice.)

      --
      And the brethren went away edified.
  18. Failures by Jordan+Graf · · Score: 4, Informative

    MIT runs a class called 6.033: Computer Systems Engineering. These lecture notes contain a list of projects that had great sums of money spent on them only to be abandoned. Also the reading list has a bunch of papers that discuss the "big splash" failures like Therac 25.

  19. Pretty sure this was posted earlier on slashdot by Utopia · · Score: 2, Informative

    but couldn't find it.

    Anyway, here are a couple of links.
    Software horror stories
    More horrors

  20. A Great Story by puppetman · · Score: 5, Interesting

    that was told to my class about the altitude of fighter jets.

    A company was hired to rewrite the code that was used on one of the models of fighter jets, and they offered to fix an unusual bug.

    The details are: apparently they had two altimeters - one was barometric, and the other I don't remember.

    Anyway, the programmer was coding along, and was writing code to determine what would happen if the altimeters stopped functioning.

    He came to the case where they both weren't working, and couldn't figure out what to do, so called one of the pilots that was acting as an information source for the developers, and asked him what altitude they normally flew at, and he answered, "12,000 feet" or something similar.

    So the programmer wrote,

    if altimeter1 not working
    {
    if altimeter2 not working
    {
    set height = 12000;
    }
    }

    Stupid, but this code could not be changed. The pilots had the following rule deeply ingrained: if the altitude stays at 12,000 for more than a few seconds, pull up, as your altimeters aren't working.

    1. Re:A Great Story by puppetman · · Score: 2

      Yah, it's silly - that's the point of the story - stupid mistakes developers have made :)

      Puppetman

    2. Re:A Great Story by Skapare · · Score: 2

      Sheesh. At least VCRs have the courtesy to blink 12:00 if the clock isn't set or dies or something. But at least the programmer didn't do "set height = 120000" and cause pilots to nose down.

      --
      now we need to go OSS in diesel cars
    3. Re:A Great Story by florescent_beige · · Score: 4, Informative

      Speaking of aviation: This SAAB Gripen crash was attributed to the coding of the control laws in the flight control computer. So was this one. And this F-22. And lets all remember the Apollo 11 incident.

      --
      Equine Mammals Are Considerably Smaller
    4. Re:A Great Story by flossie · · Score: 2
      Sounds like an urban myth to me. In the aerospace industry, programmers do not generally get their requirements direct from their users; systems engineers interpret the customer's requirements, specify a design, perform all the safety analysis (which would almost have certainly caught something as simple as failure of two sources of data) and then pass the detailed specifications on to the software engineers for implementation.

      However, I have heard one interesting story of a software error in a fighter. Apparently an engineer designing the navigation system didn't take account of the change of magnetic field as the equator is crossed and a development plane flipped over as it crossed into the Southern hemisphere for the first time. I don't know if it is true, but it sounds good.

    5. Re:A Great Story by puppetman · · Score: 2

      Well, I heard it from a comp sci professor who claims he had heard of it first hand.

      Could have happened back in the 60's, when computers+planes first started holding hands, and there wasn't so much discipline with regards to software developers.

  21. Re:Challenger by Lemmy+Caution · · Score: 2

    If you've ever seen Edward Tufte's canned speech, he partially attributes the event to an inability of the engineers involved to organize and present their information in a clear way to communicate the nature of the problem.

  22. Re:already.. by Anonymous Coward · · Score: 4, Funny

    couldn't find it either, huh ? ;)

  23. That's kind of silly by Ghoser777 · · Score: 4, Insightful

    Wouldn't setting it to something like 0 be better? I mean, I could miss it sticking at 12,000 for a while, but if I notice that my altitude is suddenly 0, I think my first instinct will be to pull up as fast as possible.

    F-bacher

    --
    James Tiberius Kirk: "Spock, the women on your planet are logical. No other planet in the galaxy can make that claim."
    1. Re:That's kind of silly by pongo000 · · Score: 4, Informative

      Wouldn't setting it to something like 0 be better?

      In most areas of the world (unless you're flying over the Dead Sea, or Death Valley, or New Orleans), if your altimeter reads 0, you're probably already dead. Altimeters used for navigation read MSL (height above mean sea level), not AGL (height above ground). There are radar altimeters that read in AGL, but these are used for close-to-ground maneuvers like landing.

    2. Re:That's kind of silly by ckedge · · Score: 2

      I'll take a guess.

      Altimiters are usually "dials", even if "electronic dials". I'd imagine that perhaps they don't have a method of instantly setting it to zero, but rather they have to have it wind down to zero. Seeing the altimiter wind down to zero really quick would, well, cause even worse problems.

      "Am I descending *really fast*, or is my altimiter broken? Ummmmm......"

    3. Re:That's kind of silly by pete-classic · · Score: 4, Interesting
      From a text I am currently working on:


      The compiler requires you to declare variables, but does not require you to initialize them. Does that mean you can get away with leaving them uninitialized? Well, you might program your entire life without coming upon a reason not to. If you don't initialize them, however, you will almost certainly run into a very difficult bug, probably sooner than later. Using an uninitialized variable is perfectly valid syntax, but is always a logic error. The compiler won't complain, but you will get wild, unpredictable, and wrong results. In the worst case, you might get believable, but wrong results. This leads us to what to use as an initializer. Most people use zero. Using an "obviously wrong" value may be more useful. Often a maximal value (such as int students="65536") is more obviously wrong. [Emphasis added for this post.]


      This isn't variable initialization, but the principal replies. Data that you know are junk should look like junk! Trying to "fake it" or make it "look good" is exactly the wrong thing to do.

      -Peter
    4. Re:That's kind of silly by Chris+Mattern · · Score: 2

      Still bad. If you are coding the date as YYMMDD, then a "junk date" should be something physically impossible--like 999999. If 'dd-mon-yyyy', then '99-xxx-9999'. If it is possible to code a completely impossible date, then *that* date should be used as a "junk" date.

      Chris Mattern

  24. Shared download class by solostring · · Score: 5, Funny

    I used to work for a 1999/2000 'golden child' dot-bomb which dealt in file trading... a proposed legal form of napster. It was a fucked company from the start, but it still had a lot of traffic in the early days.

    We always had problems with downloading files from the site.... the files kept getting corrupted, and occasionaly, a member would complain that they tried to download a powerpoint presentation and ended up getting 4 way anal porn.

    This perplexed the developers, and it was not until 9 months after going online with the site, did they realise that the java class that dealt with the downloads was a single process shared by all users! :)

    So, your download would go ok IF nobody else tried to download at the same time. If two people clicked download at about the same time, you would download the file that the second person wished to download.

    No wonder they went bankrupt :)

    1. Re:Shared download class by MillionthMonkey · · Score: 2

      the java class that dealt with the downloads was a single process shared by all users!

      Single process? Most Java server apps are single process and multithreaded. I think what you mean is that there was a single instance of that java class that multiple download threads were going through. Even that is OK if you stick to using local variables, but it sounds like someone was using instance variables which are seen by all threads.

      I had a problem (back in 1999) with a customer who was behind a Microsoft proxy. To get around inappropriate caching by proxy servers, I would append a random parameter to each link URL (some junk like "&xyzzy=52526210") so that nobody would be requesting the same URL twice. So nobody should get an inappropriately cached page, right? Then people started complaining. User A would log in and start clicking around, and then User B would also log in. One click later, and User B would see an inappropriate page- with all the private details of User A! But we couldn't debug it on our side, because the last thing our server heard from User B was his login POST request. WTF?

      You would think a proxy server would store the entire URL of a served page, or at least a hash of the entire URL. It turned out that Microsoft was allocating a fixed length array of 50 characters to store each URL in their cache table, so if there were no differences in the first 50 characters of the URL, the proxy would serve a cached version of the page- as if all the stuff in the rest of the URL wasn't important.

      I moved the random parameter so it appeared in the first 50 characters and that fixed the problem.

    2. Re:Shared download class by MillionthMonkey · · Score: 2

      Did ye never hear of response expiries or page expiries or cache expiries etc etc...

      Well duh, yeah I did, jackass. I was including a standard boilerplate of HTTP response headers to turn off page caching, and they worked with all proxies I tested, except this one from MS. I was sending "no cache" headers until I was blue in the face. Like I said, the aggressive caching turned out to be immune to everything except characters changing near the beginning of the URL- which to me indicates that someone was allocating a fixed array that they figured was big enough to hold any reasonable URL that could possibly exist. If the URL itself is different and you get a cached page anyway, then the proxy is a POS no matter what the HTTP pragmas are. End of story.

      Remind me not to hire you ehh?

      A simple "did you try setting your HTTP headers?" would have made your point. Rudeness is not a desirable trait in a supervisor- although I somehow doubt you're making any hiring decisions anyway.

  25. Easy, by Phoenix666 · · Score: 5, Funny

    When they played Heidi over the end of the greatest come-back in football history. Oh wait, you didn't mean that kind of programming, did you?

    --
    Do what you can, with what you have, where you are.
    1. Re:Easy, by PhotoGuy · · Score: 2
      When they played Heidi over the end of the greatest come-back in football history. Oh wait, you didn't mean that kind of programming, did you?

      What is even more interesting about this, is that it turned out to be related to a phone overload (sort of an unintentional DOS).

      The exec's gave an initial order to air Heidi at 7:00pm, but when they decided to override it and air the final minutes of the game and delay Heidi, they couldn't get through to the folks controlling the programming, as worried fans were calling in before 7:00pm to make sure they wouldn't switch to Heidi! D'oh!

      --
      Love many, trust a few, do harm to none.
  26. Don't be so narrow by coyote-san · · Score: 5, Insightful

    Don't be so narrow in your approach. Is it a programming error if a stadium roof collapses because the engineers couldn't understand what the output of their computer model was saying?

    What about when the construction crew quietly substituted what they thought was an equivalent design to what the computer program came up with for a skywalk over a hotel lobby?

    After almost 20 years in this field, I think that at least 80% of the serious "errors" I see are because the user didn't understand the results of the program, and only 20% of them are due to classic development errors.

    The lesson to learn from this: the user interface matters. Give some thought to presenting the information in a meaningful manner (e.g., the infamous pre-Challenger graphs showing O-ring erosion vs. the post-Challenger graph that mapped damage by temperature at the time of launch), and allow users to see the information in the way that makes the most sense to them.

    --
    For every complex problem there is an answer that is clear, simple, and wrong. -- H L Mencken
    1. Re:Don't be so narrow by FattMattP · · Score: 4, Insightful
      The lesson to learn from this: the user interface matters. Give some thought to presenting the information in a meaningful manner (e.g., the infamous pre-Challenger graphs showing O-ring erosion vs. the post-Challenger graph that mapped damage by temperature at the time of launch), and allow users to see the information in the way that makes the most sense to them.
      On a related note, a guy named Edward Tufte wrote a some books on just this type of subject. I believe it was called The Visual Display of Quantitative Information, or something like that. Basically, he goes show how thinking more about how you present the data can help you to communicate your ideas more effectivly. He also talks about the O-ring problem that you mention. He shows the charts from the NASA engineers and then shows the charts he had drawn. You could definitly see the problem much more clearly in his drawings.
      --
      Prevent email address forgery. Publish SPF records for y
    2. Re:Don't be so narrow by RzUpAnmsCwrds · · Score: 2

      Man, you must have seen that TV show too.

      What really got me was the department store. Stupid!

  27. Code Red by wayn3 · · Score: 2

    ... should be enough to write a dissertation on the thoughtless computing leading to serious problems.

  28. Toilet glitch by Ted_Green · · Score: 2

    Anyone got a reliable link for the toilet one?

    I've never really considered the register to be a source of ... well ... acurate news.

    1. Re:Toilet glitch by squarefish · · Score: 5, Funny

      a different toilet story from about 10 years ago:

      This appeared in today's (2/17) Seattle Post-Intelligencer:
      It was a flush with a rush.
      Toilets and urinals in the King County Courthouse exploded yesterday after a worker in Metro's downtown bus tunnel mistakenly connected an air compressor to the building's water line. As soon as hapless individuals flushed the pressurized privies, the plumbing started popping in restrooms throughout the 72-year-old building, said building services manager Bill Kemp. "They started blowing at about 11:30 (a.m.) and it took us awhile to figure it out," he recounted."We knew it had to be air in the system but the Water Department said that was impossible." It wasn't. The source of the problem was finally tracked to the tunnel under Third Avenue, and the errant air compressor was shut down. But not before employees on every floor in the 10-story courthouse had stories to tell about gushing geysers in the john. "We think we've lost about 20 to 25 toilets," said Kemp. "The porcelain is actually cracked." Kemp said no one has admitted being hurt by the unusual blast, although several people were badly drenched. Or very surprised. Explained Kemp, "The urinals acted more like bidets." We had other reports that people were not necessarily on the toilet but close." "This has not exactly been a good day for Metro," he noted. by Mary Rothschild --P-I Reporter

      link(story is near bottom, pun intended.

      --
      Creationists are a lot like zombies. Slow, but powerful and numerous. And they all want to eat our brains.
  29. Train collision by Shaddup · · Score: 5, Interesting

    A company I once worked for (as an intern) was in the business of what's called "train control" software. Briefly, it's the software that dispatchers use to monitor the status of the switches, the position of all the trains being tracked by the system, etc. One of the features of the system is to provide early-warning of potential collisions. Well, the system is quite reliable (having been in service, in one form or another, since the 70's). However, there have been some accidents.

    Once such accident, in Mexico, was caused by an unexpected combination of several simultaneous failures. One day, for some reason, one of the servers needed to be reset. At the same time, two freight trains were stopped at a switch, in the process of what's called a "pass," where one train turns off onto a side track to let the other train pass by on the main track. Long story short, the status bits of the switch got lost during the server reset (there is a provision for restoring track states when the backup servers take over, but it didn't work for some reason). After asking if the track was clear, the driver for train1 recieved a green light from the dispatch office. The dispatcher, not knowing that train2 hadn't cleared the switch yet, figured everything was ok. The trains collided at very low speed, and not head-on, but nonetheless the collision cost the rail line several million in equipment and downtime. No one was hurt.

    The lesson: When writing bullet-proof software, check every possible condition! More extensive field testing would have caught the failover bug.

    1. Re:Train collision by smagoun · · Score: 2
      More extensive field testing would have caught the failover bug.

      What do you mean, "would have?" It sounds like they DID catch the bug, and they even caught it in the field. heh.

    2. Re:Train collision by Reziac · · Score: 3, Insightful

      IANAP, but I'd think your bulletproof software should also have some way to gracefully account for "impossible" conditions, which users are so clever at creating!!

      --
      ~REZ~ #43301. Who'd fake being me anyway?
  30. Re:Challenger by JordanH · · Score: 2
    • NASA hasn't ever had a hardware problem. Or a software problem. Ever. Every problem can be directly tied to one specific person being a fscking moron. The closest you could come is that Mars probe that crashed because of mismatched units. And that was just poor communication among the software guys.

    A poor communication among the software guys that results in improper units being used in a program isn't a software problem?

    If that wasn't a software problem, what was it? All software problems are defects in design or implementation, they all go back to a miscommunication or mistake among some software people somewhere.

  31. Non-life threatening, but interesting bug... by Anonymous Coward · · Score: 5, Interesting

    I'm an AC for a reason...

    Let's just say that two years ago a very large international shipping company suffered two days of worldwide failure in the package routings printed on labels. The bug was caused by an incorrectly placed paren in an index offset calculation, leading to truncation of an intermediate result (to a 16 bit unsigned int, when it should have been 32). The bug sat dormant for five years because the result matrix it was indexing into was smaller than 64kbytes. As soon as it grew over that size - boom! What a way to wake up at 2am when the Asian-Pacific region starts calling...

    I didn't make it, but I was definitely involved with the fix. After that we did some very thorough auditing on all of the routing code - and fortunately didn't find any other surprises lurking.

  32. Incorrect function usage. by antis0c · · Score: 2

    Not a specific example, but a big mistake is to assume that just because when you use a function in a certain way that works means it's suppose to work that way. I've seen so many people fail to read any documentation on the functions they are using. Whenever I program, I make sure every function, operand, everything I use I understand what they do exactly. I don't just assume, I make absolutely certain. Read, Read, Read, and then Read some more.

    --

    ..There's a-dooin's a-transpirin'
    1. Re:Incorrect function usage. by antis0c · · Score: 5, Insightful

      No, I meant read it until you understand it. I don't want anyone working for me that doesn't think understanding documentation is a good thing or doing something the correct way rather than "it works so I might be doing it right."

      And there's a difference between not being able to code and understanding a particular function. I may read a function's man page 2 or 3 times to make sure I understand correctly what is going on. Not nessesarly because I'm incompetent, but because the wording my be confusing (wow, confusing wording in a manpage? Who would have thought..). That doesn't mean every single function for a particular language requires you to read the documentation for it multiple times. I assume nothing. Assuming something leads to bugs and insecurity. I've been programming in C for many, many, many years. When I do a little PHP programming to create some web interfaces I don't assume that just because both C and PHP have a function called strlen, and the general documentation says it returns the length of a string, that they work identically. So I read the entire strlen documentation for PHP to understand exactly whats happening. It only took less than a minute, but now I'm not assuming. I know. This goes for lots of things. The more complex functions you use, the more important it is to fully understand them.

      The point is coding correctly is the most important skill to learn. I have friends that hack together scripts and programs from examples and snipits of other code and a little bit of their own code to glue it together, with little to no understanding of what they are actually doing. Then months later something breaks they can't fix and they act as if it was the author who wrote the example code's problem.

      No, it's there fault. Not because they hacked together examples, but because they didn't take to the time to make sure they knew what the examples were doing, that the examples were implemented correctly, and that they understood exactly how the code in the examples worked.

      Take a look at OpenBSD's philosphy.. You can learn a lot from it.

      --

      ..There's a-dooin's a-transpirin'
  33. Use Google by SoSueMe · · Score: 2, Insightful

    No, really.
    Search and you will find.

    Learning to search effectively will serve you best.

    1. Re:Use Google by Sivar · · Score: 2

      From Google's cache of www.google.com:

      Google is not affiliated with the authors of this page nor responsible for its content.

      --
      Computer Science is no more about computers than astronomy is about telescopes. --E. W. Dijkstra
  34. Re:Challenger by MadocGwyn · · Score: 2, Funny

    Yes but the lander was friggen funny, you can u just see the guy sitting there, taking a hit off a bong then stateing. "Dude dude, comehere, got a problem" "whats that?" "*giggle* Well you know the lander *gafaw* the navigation was in meters....but i programmed the lander in feet, so instead of landing *grin* fsck'er burried..... I wish there woulda been another lander there to see that one hit, woulda been the shot of a lifetime. Besides, nasa crashes things into things on perpose:)

    --
    Jesus saves, everyone else takes full damage from the fireball.
  35. A common but fatal problem (most of the time) by vga_init · · Score: 2, Informative
    I can remember that when I firsted started learning how to program, a common mistake would be that my programs would get stuck in infinite loops. @_@ This is not so big of a deal with a sophisticated, multitaskig operating system, but back when I was using DOS and had no way to break the code, I had to reboot!

    I think it would be interesting to know when the first infinite loop occured in the early days of programming, and how the programers dealt with it. Obviously, back then they only had single-tasking machines.

    Let's say you turned in some bad FORTRAN code to the university computer on a time share. What if nobody noticed for hours that your program was taking up all the processing time? That would make some people pretty pissed. :p

    1. Re:A common but fatal problem (most of the time) by Treeluvinhippy · · Score: 2

      What part of 'Back when I was learning howto' was difficult.

      --
      >
    2. Re:A common but fatal problem (most of the time) by gorilla · · Score: 2

      Early computers had front panels, which allowed the engineers to see exactly what was executing. An infinite loop would be easy to see as it would be repeating the same pattens over and over again. Then they'd reset it.

  36. Airbus by That_Dan_Guy · · Score: 5, Interesting

    This isn't really a programming error, but a user training error.

    In the Airbus if the pilot tries to correct (use the flight controls) while the computer is engaged the computer will correct the pilot's correction. Unlike in a car with cruise control where if you hit the breaks it just cuts the cruise control. Many China Airlines planes have crashed due to poor pilot training in this regard. They weren't trained well enough to shut off the computer control before taking control of the plane.

    I'm also sure someone can be a little more detailed than this, but it is, IMO, at least a design error that has caused hundreds of deaths.

    As a side note, my Software Engineer professor refused to ever fly on a fly by wire plane, and was opposed to SDI simply because he didn't beleive that either had been or ever would be debugged properly. (if there is one error in every 10,000 lines of code, and it has 3 or 4 million Lines of Code, how many errors is that? His answer: too many to trust)

    1. Re:Airbus by s20451 · · Score: 3, Informative

      Unfortunately, it has been conclusively proven by experience that the risk of an incapacitated pilot causing an accident is much, much less than the risk of a pilot and computer being at odds over the correct course of action in an emergency, or the risk of computer settings confusing the pilot. I prefer the Boeing design philosophy, which is that the pilot is the final authority on the operation of the airplane, not the computer. The pilot, not the software engineer, is on board the airplane, and therefore has a much higher interest in ensuring that the vehicle gets on the ground in one piece.

      --
      Toronto-area transit rider? Rate your ride.
    2. Re:Airbus by jamesl · · Score: 2, Interesting

      Most of the problems have been related to operator (pilot) error related to inadequate training. Investigators are unhappy at the number of times the Cockpit Voice Recorder transcript includes the phrase "What's it doing now?" or "Why did it do that?".

      While these accidents and incidents are chalked up to "pilot error", the industry is beginning to understand that in many cases the user interface or design of the system is at fault.

    3. Re:Airbus by it_atheist · · Score: 2, Interesting

      Another funny Airbus story I've heard was as follows: (Apologies if I'm propergating yet another urban myth). In the 90's in India or Sri Lanka (can't remember which), an airbus was being pushed across the tarmac by the usual towtruck. It had it's engines engaged and warmed up as ususal. Air trafic control instructed the pilot to stop as another another plane would soon be passing behind. The pilot attempted to call the tow-truck driver, but there was no answer. So the pilot applied the brakes. Both the plane and the tow-truck stopped. But now it becomes interesting. The tow-truck driver revs his engine and pushes harder. The plane begins to move backwards. The pilot (rather annoyed by now I imagine) applies the brakes as had as possible. The plane stops. The tow-truck drive repeats his trick, but this time there is no way that the plane wil budge. Instead the weight was taken off the front wheel. The Airbus software noted that there was no pressure on the front wheel - so clearly the plane was airborne, but after checking the flightspeed (zero) the computer decided that the situation was unacceptable, and quickly applied full power to all the engines. The plane broke free and thumped into the hanger before the pilot could shut everything down. No-one was hurt and the damage was harldy spectacular - but this is what can happen when you send in a machine to to do a human's job. My same source summed up the design philosophies of Boeing and Airbus as follows: Boeing: Provide every possible instrument and computer to assist the pilot. Airbus: Provide every possible instrument and computer to replace the pilot.

  37. Re:One Word by Helter · · Score: 5, Informative

    Come on now, that's the lazy way!

    How about citing an actual example of windows code bugs causing big problems? I'll go first. The USS Yorktown had to be towed back to harbor when the NT system that was automating most of the ship crashed.

  38. Re:Arian 5... by The+J+Kid · · Score: 2

    What? The French make exelent cars..(Peugeot, Citroen)...

    The American cars on the other hand are *completely* hopeless!

    Try a Peugeot 206 / 307 and feel how it handels the road. Then you don't even want to go back!

    --
    Moderation: +4. Modded 70% Funny and 30% Overrated. 100% Saturated.
  39. Re:already.. by Java+Pimp · · Score: 5, Insightful

    Yeah it is probably in the archives. I've read it before.

    Problem is, the slashdot search engine sucks. I haven't yet been able to query the archives and actually find what I'm looking for without needing to dig through hundreds of irrelevent discussions. Sometimes I think it might be faster to just scroll back through the "Older Stuff" section.

    Or we could just have another discussion about it. :-)

    --
    Ascalante: Your bride is over 3,000 years old.
    Kull: She told me she was 19!
  40. Bye bye credit purchases by cat_jesus · · Score: 3, Interesting

    I worked for a programmer back in the 80's who made a mistake that caused all credit card purchases to disappear from the electronic journal. This meant that their purchases were not recorded on their credit card statements. Fortunately for the company the bug did not affect the recording of the transactions on the paper journal. This bug wasn't discovered for a few days and it took quite some time to rekey all the credit transactions.

    Unfortunately this was not her first or last mistake of this magnitude. Retailers often see IT as an expense rather than an asset and are as cheap as possible. This has a tendency to cause shoddy programming since they hire as few programmers as possible and overwork them and often software is put into production without being thoroughly tested. At least this was the case when I worked in retail some ten years ago--I don't think I'll do that again.

    But I am finding that insurance companies have the same philosophy.

  41. Re:the harrr-rrrrror by s20451 · · Score: 5, Informative

    US shooting down Airbus 320

    You're referring to the destruction of Iran Air flight 655 by the USS Vincennes near the Strait of Hormuz, on July 4, 1988. For one thing, it was an Airbus A300 (bigger and older than an A320). The failure there was mostly in human decision making, not in the AEGIS radar system, which faithfully reported that the airliner was travelling at 450 knots on a steady bearing towards Vincennes, roughly four miles outside the commercial air corridor, and not broadcasting IFF information (which of course they wouldn't, as a foreign civilian airliner). It was the officers of Vincennes who interpreted this information as a threat, misidentified the target as an Iranian F14, and destroyed it.

    --
    Toronto-area transit rider? Rate your ride.
  42. Re:already.. by gmajor · · Score: 5, Informative

    http://slashdot.org/articles/02/05/02/1525210.shtm l?tid=128 - Debug your code, or else!

    Using google's serach engine provides better results for slashdot.org that slashdot's own search engine :-)

  43. Re:Challenger by Transcendent · · Score: 2

    A poor communication among the software guys that results in improper units being used in a program isn't a software problem?

    That's correct. It's a communication problem

    If that wasn't a software problem, what was it?

    A miscommunication between software guys...

    All software problems are defects in design or implementation, they all go back to a miscommunication or mistake among some software people somewhere.

    Your definition of a software problem is to vague to be proper...

    But anyway, that's only half true. The problem is that not all software bugs go back to that source... hardware plays a big role as well.

  44. Buffer overflows by Otis_INF · · Score: 2

    SELECT * FROM BugTraq_SecurityFlaws WHERE FlawCause LIKE '%buffer%overflow%' ORDER BY OSType ASC

    --
    Never underestimate the relief of true separation of Religion and State.
  45. Thanks! by Ghoser777 · · Score: 2

    I had always thought that SI was the English system; I have no idea why.

    Thanks,
    F-bacher

    --
    James Tiberius Kirk: "Spock, the women on your planet are logical. No other planet in the galaxy can make that claim."
    1. Re:Thanks! by NeXTer · · Score: 3, Funny

      Especially considering that SI is short for the French term "Système International". :P

    2. Re:Thanks! by Anonymous Coward · · Score: 2, Funny

      Funny... that's the same defense the NASA guy used during the postmortem.

    3. Re:Thanks! by flossie · · Score: 2
      English units are SI units, now. Ever since "Decimalisation" occurred in the UK in the 1970's the UK has been using the Systeme Internationale (metric) set of units (although there are a few hangovers from the old Imperial system; we still order pints in pubs).

      I have really never understood why Americans refer to their set of units as the "English" system. Although somewhat similar to the old English Imperial system, there are several differences, e.g. a US pint (16 oz) is not as big as a British pint (20 oz).

  46. Re:Challenger by snStarter · · Score: 2, Interesting

    Not ONE hardware problem...ever?

    Clearly you are forgetting the Apollo I fire which resulted from a spark in a pure O2 atmosphere. The spark was caused by a frayed wire. That's a hardware problem for sure.

  47. Re:Y2K ? by Treeluvinhippy · · Score: 2

    IIRC Germany lost some telephone service in some areas. Otherwise not a whole hell of a lot.

    --
    >
  48. not true by PissedOffGuy · · Score: 4, Informative

    the database they were using faulted on a divide by zero. nothing to do with NT.

    1. Re:not true by Anonymous Coward · · Score: 5, Insightful

      The database failure caused NT to crash. Good software design includes failure planning.

    2. Re:not true by gl4ss · · Score: 2

      " The database failure caused NT to crash. Good software design includes failure planning."

      mod parent up!

      as it happens this is what can at most cases make the software go hazardous, not taking into account something that might happen, and not having failsafes around it.

      catch exception_divide_by_zero do something_brilliant_to_get_over_it

      --
      world was created 5 seconds before this post as it is.
    3. Re:not true by PissedOffGuy · · Score: 5, Informative

      what are you talking about? the navy inquiry found no fault in NT. here, you try this: write a program that divides by zero and run it on NT. as with any other good OS, the program shuts down and the OS keeps going. user mode code cannot cause a blue screen, makes sense.

      in the navy's case the crashed program was enough to call the computers "down", and that makes sense too. the only thing that doesnt make sense is the attribution of blame to the OS for an app problem.

    4. Re:not true by rakslice · · Score: 2

      Huh? NT doesn't shut down on a divide by zero.

    5. Re:not true by Billly+Gates · · Score: 2
      ok

      Which database was running on the ship?

      MS SQL Server.

      The database should have some protection against things like this and better redundancy. MS Sql Server now displays an error message rather then crash when someone attempts to divide by zero.

    6. Re:not true by xcham · · Score: 2, Informative

      Just an update/correction, As recorded by Zappadoodle they finally DID fix it. Still, you can see from this (and the inordinate amount of time it took for them to address this bug) that Microsoft's main focus is obviously somewhere other than stability and security. Penguin POWER. :D

      --
      When life gives you lemons, you CLONE those lemons, and make SUPER-LEMONS. -- Dr. Cinnamon Scudworth, Ph.D
    7. Re:not true by len_harms · · Score: 2, Informative

      If MS is like any other company they have a list. That list gets a priorty. Currently MS has stated its top priority is security fixes. Buffer overruns and the like. Yet a bug like that would have to be coded for. So dont do that. For example I submitted a bug years ago about being able to resize download windows. Basicly a minor cosmetic issue. Yet it took 3 versions before it was even fixed. The real question is does MS know the bug is there. Or do trade rags know about it. Being in a magazine or on the web does not mean that MS automaticly knows about it. They do not have people whos job it is to go around finding bugs out on the web that people have produced but never bothered telling them about. Most of the time bugs are only addressed by MS if you have TOP level support. IE you paid them big bucks per year per incident to get it fixed. Otherwise you get the 'we might get around to fixing it in about 20 versions'. No money to fix no fix...

      Rework costs money. MS has take the venue of if you pay for it, it will get fixed now. Otherwise wait in line with everyone else. They probably have THOUSANDS of bugs. Each one with a customer yelling about it. They fix the ones that most people are yelling about first. Then next the next one and so on.

      Remember NT is a system of exes. That you put one exe with another one and it acts like this is not surprising. I bet there is no one person in this world who could tell you how the whole thing acts in every condition.

      Probably the best quote I ever heard was out of a MS book on programming. Its like a bowl of jello that is shaking. When that bowl is quivering least we ship.

      My other favorite quote is from a programmer I work with at my company. If your walking off into memory with stray pointers all bets are off.

    8. Re:not true by sg_oneill · · Score: 2

      It's hard to call it either way. The navy are going to be extremely diplomatic when it comes to US companies, particularly ones they are dependant on (Microsoft same as everyone else).
      The problem may have been partly the sysadmins fault. I *believe* that NT services have some fail over options. Ie , first crash restart db. Second crash do same, third crash reboot machine (for example).
      None the less if the divide by zero was created by the DB , but happened while deep in the bowels of a OS call it could still take out the OS. Particularly if the exception handling was goofy and , like attempted to throw up an "BUGS! PLEASE HELP!" dialog box in a windowless context or something stupid (don't laugh, this is *exactly* what windows can do to services from time to time..... or at least ones written by me :( :( )

      Thank God I don't have to write NT software anymore. rebooting everytime one tests a service (because it's crashed, lodged in NT's head and won't unload) really wears one down.

      --
      Excuse the Unicode crap in my posts. That's an apostrophe, and slashdot is busted.
    9. Re:not true by sg_oneill · · Score: 2
      Oh my god. It frigging works.
      main () {
      for (;;) {
      printf ("Hung up\t\b\b\b\b\b\b") ;
      }
      }

      That has got to be the whackiest flaw I've ever seen. Aparently yo can run that tab backspace into a file, and then simply by "type"ing the file it'll crash the NT box. Unpriveleged. Sheer barking madness.
      --
      Excuse the Unicode crap in my posts. That's an apostrophe, and slashdot is busted.
    10. Re:not true by oh · · Score: 2
      Most of the time bugs are only addressed by MS if you have TOP level support. IE you paid them big bucks per year per incident to get it fixed. Otherwise you get the 'we might get around to fixing it in about 20 versions'. No money to fix no fix...

      If you do pay them money, they can be very nice.

      While working for a former employer with a mixed NT/Unix web site we managed to get Microsoft to write a patch for part of IIS (v5 ftp) within a few weeks. From memory it was 5 weeks from the first report to us recevieing a DLL, might have been as little as 3 1/2, but it was less then 6.

      This was also a fairly marginal "bug". IIS FTP would display the filename in all capitals, and as we were using IIS to upload content inot a mixed NT/Unix environment, we cared a lot about case.

      I can't remember how much we were paying them, and it wasn't in $US, but for the monay we had access to 100 pre-paid support calls. We could use them for any microsoft related issues, including Microsoft-Unix compatibility issues, and if the problem turned out to be a bug in a microsoft product, they "refunded" you your pre-paid support call. Not that we used all 100 calls in a year, but by doing this they are nicer then a lot of other people out there.

      I can't say I really like most of their products, but their support/service division really worked hard for us. Most support calls with other vendors that encounter bugs end up with "we've recorded that probelm, and will fix it in the next release". This was the first time that a support call I was involved with resulted in a patch begin written.

      --
      Democracy isn't about no one telling you what to do. It's about everyone telling you what to do.
    11. Re:not true by pmz · · Score: 2

      the database they were using faulted on a divide by zero. nothing to do with NT.

      Well, I suppose the original problem is that Windows NT was chosen in the first place. Using a rather poor commercial-grade operating system in a military setting is simply a recipe for disaster. Hell, I'm not even sure I would trust an out-of-the-box UNIX or mainframe OS for a military setting (although pretty much anything would be better than NT).

      Whoever chose NT for a Navy ship's systems should be very publicly humiliated. Is the story that Bill Gates himself chose it true? I had read that the Windows NT choice came soon after his majority stake in the company building the ship.

  49. And these are only the problems that get past QA! by testharness · · Score: 2, Interesting

    Despite what may programmers think, they do make many mistakes. Having been in QA for more than 7 years, blimey, the stories I could tell.

    For example. Once there was a requirment for a windows program to do nothing. If it started up, it would just shut down . Simple? I would have thought so - even if it wasn't, it was simple for the developer to unit test. It took 7 attempts. Ranging from opening a window and sitting there - through several GPFs - and at least one reboot.

    Then there was one time (of many) where despite assurances from development that the product had been properly unit tested, it would core dump on start up.

    My point is that any CS student should understand the whole development process. It is more than just programming. Whilst neither of the above were life threatening, it illustrates a point. No matter how many examples of catastrophe and failure you find, there would be alot more without testing and QA.

    Of course, you could take the point that all those public failures are a result of lax QA.

  50. I can't recomend comp.risks too highly by Camel+Racer · · Score: 3, Informative

    I can't recomend the risks site too highly. (redundent I know)
    Risks To The Public In Computers And Related Systems
    http://catless.ncl.ac.uk/Risks

    On how to be 0wned by other people: Counterpane: Crypto-Gram . Shares with comp.risks the reframe of "I can't belive people don't learn from this"
    Counterpane: Crypto-Gram
    http://www.counterpane.com/crypto-gra m.html

    Don Norman's _The Design of Everyday Things_ and website also offer insight on how to avoid UI failures relating to failures.
    http://www.jnd.org/index.html

    Also, get a copy of _Code Complete_ and/or _Code Write_ by Steve McConnell [pub: Microsoft Press Which is rich irony) Lots of mistakes and how to avoid them.
    The cautionary note might be that most of these failures are human related at some level. Whether it be at the project level, or the UI level -- there are lots of ways to cause a failure.

    Finally, avoid any kind of carreer in Software QA. There is no better way to just get kicked around at the expense of the people putting the bugs in the software in the first place.

    --
    Anybody can work under ideal circumstances. -- Jeff K. (January 4, 2001)
  51. Re:One Word by seattle2napa · · Score: 3, Insightful

    I love how complete bullshit gets moderated to +5 Informative on slashdot. Why not do a tiny bit of fact checking and slam people for misinformation rather than praising them for anything negative having to do with Microsoft???

  52. Re:already.. by Anonymous Coward · · Score: 2, Funny

    Indeed. The Slashdot search engine seems to OR the search terms together, which is of course very stupid. It is a prime Example of Programming Gone Wrong.

  53. NASA software bugs by dstone · · Score: 3, Informative

    Someone here was claiming that NASA has never had a software bug. That sounded pretty unbelievable to me. And sure enough, it's not true. In the recent Mars missions alone, they had a bunch of software bugs resulting in things varying from non-fatal vehicle failures to outright loss of spacecraft.

    Regarding the loss of the Mars Climate Orbiter spacecraft, from nasa.gov: "The 'root cause' of the loss of the spacecraft was the failed translation of English units into metric units in a segment of ground-based, navigation-related mission software"

    Also, here are several "software bugs" (their words) relating to the Mars Surveyor Lander Vehicle are described. These bugs were detected and fixed in the field (ie, Mars). At least one of the bugs caused a heater failure in the vehicle on Mars. This failure was recovered from.

    Anyways, those are just two quickies, but NASA has their share of bugs. (And generally some pretty ingenious ways to reprogram and update vehicle software post-launch.)

    On a related note, here's a paper from NASA entitled "The Infeasibility of Quantifying the Reliability of Life-Critical Real-Time Software".

  54. Learning the Hard Way by sfe_software · · Score: 2

    After all, it is better to learn from the mistakes of others than from your own, right? ;)

    It is better. It is also very rare. Most people (especially programmers) that I know have to learn things the hard way, myself included. Sometimes, you can be told "no, don't do it that way" over and over and over, and still want to do it that way until you realize, the hard way, why you maybe should have listened.

    Or maybe that's just me, and the weirdo's I hang with... :p

    --
    NGWave - Fast Sound Editor for Windows
  55. Re:That is NOTHING -- 10,000 died in Bhopal, India by xA40D · · Score: 2, Insightful

    I can't believe no one has mentioned it yet -- it's probably because they don't care about the third world

    Well, I do care about the third world. But I was not aware the Bhopal disaster was down to dodgy software. I always believed it was reckless cost cutting by a faceless multi-national which took advantage of the fact that India, as a developing country, didn't have very good health & safety legislation.

    But I think the main reason disasters like this are ignored is that poor people don't make very good consumers, so the consumerist society pays little attention to their wants and desires. And their deaths are little more than statistics.

    10,000 dead? Bung them some cash.

    Now, what do you think would happen if a large number of decent hard working consumers were wiped out in a single event?

    --
    Do you mind, your karma has just run over my dogma.
  56. Re:That is NOTHING -- 10,000 died in Bhopal, India by entrylevel · · Score: 3, Insightful

    Actually I think that no one mentioned this since it has nothing to do with programmer error. (At least not according to what you linked to.)

    --
    Karma: Incomprehensible (Mostly affected by posting at +5, reading at -1, and metamoderating everything unfair.)
  57. Re:That is NOTHING -- 10,000 died in Bhopal, India by Cyno01 · · Score: 3, Insightful

    Now, what do you think would happen if a large number of decent hard working consumers were wiped out in a single event? it did, 09/11/01

    --
    "Sic Semper Tyrannosaurus Rex."
  58. Why this cant be right... by rufusdufus · · Score: 2, Flamebait

    To increase altitude in an aircraft, you add power, not pull up. Pulling up slows the aircraft down and decreases altitude.

  59. How is an app the fault of NT? by deadsquid · · Score: 5, Informative

    Much as I dislike NT, especially in critical environments, this problem had nothing to do with NT. It had everything to do with bad coding.

    As we all know, information systems are only as smart as people make them. In the case of the USS Yorktown, an admin/operator entered data which caused a divide by zero condition in the application. Because the application did not have any exception handling built into it for a divide by zero condition, it died.

    You can't blame the OS for this. The application should have had exception handling built into it in a couple of places. It probably should have checked any new entries before comitting them to ensure the new data would not introduce such a condition, and the app itself should have had appropriate error handling to prevent a panic/dump when a divide by zero condition was encountered.

    If the app was coded by the same people on another platform, the end result would have been the same.

    --
    Idiot, n. A member of a large and powerful tribe whose influence in human affairs has always been dominant
    1. Re:How is an app the fault of NT? by rakslice · · Score: 3, Informative

      Okay, but the only specific failure cited in the article has nothing to do with NT.

  60. Re:Can We Say Google? by Gordonjcp · · Score: 3, Offtopic

    Please stop all this "STFW" crap. It's easy to search the web, but there may be people out there reading slashdot who haven't put their tale of programming woe on a web page. In the time it took you to post that crap, you could have thought for a moment, then not said anything.

  61. Re:Apollo 1 / hardware fault by EvanED · · Score: 2

    Using a pure O2 environment simplifies things tremendously. The bigest thing is that when the craft is in space, it leaks. Period. You can't stop it. So they need to replace the air as the mission progresses. Running in a pure O2 environment allowed them to operate at a lower pressure, which means that they needed to take up less air with them, which meant a lighter capsule, which is very good.

    After the Apollo 1 fire, they switched to a mixed atmosphere envrionment on the ground, but only replace the leaking O2 in space. So after a while in orbit, they are actually back to a pure O2 environment. This saves the craft from having to carry replacement O2 and N2, while not really risking safety. (Fire doesn't spread well in space due to lack of convection.)

  62. Always Mount a Scratch Monkey by calyxa · · Score: 3, Insightful
    --
    Decay! Decay! Decay! -Helium
    1. Re:Always Mount a Scratch Monkey by prototype · · Score: 2

      Actually the scratch monkey is more realistic than urban legend and refers to an experiment that went horribly wrong at the U of T in the early 80's. The scrach monkey refers to the premise that you should not conduct tests while valuable monkeys are attached to a machine (test in an isolated environment).

      Here's the full story:
      http://www.mv.com/ipusers/arcade/monkey.ht m

  63. It was a bad break in C code by hayne · · Score: 5, Informative

    Actually, the switching code was in C and the crash was due to a programmer's apparent misunderstanding of the 'break' statement. See full details at: http://www.csc.calpoly.edu/~jdalbey/SWE/Papers/att _collapse.html

  64. Airbus A320-100 Altitude Reporting System by lostchicken · · Score: 2

    An Air France A320 (a new design) was doing a low-altitude fly-by at an airshow when the aircraft descended into terrain.

    The pilot, since convicted of manslaughter, claims the aircraft reported AGL (above ground level) altitude to be 100', while video shows the aircraft was closer to 30'. There is significant evidence to support this story, such as the apparent swapping of DFDRs and the issuing of Operational Engineering Bulletins to correct problems as explained by the captain of the aircraft.

    The captain claims that the throttle by wire system would not respond to increased command, so he retracted them to idle, then advanced them to Takeoff/Go Around (full). The aircraft had crashed by that point, killing 3 aboard.

    See this for more.

    --
    -twb
    1. Re:Airbus A320-100 Altitude Reporting System by spongman · · Score: 2

      i heard a story a while back (may be myth) that during hangar testing of a new aircraft's computer systems one of the engineers decided to pull the fuse on one of the 5 redundant computer systems. the computer shut down and one of its siblings took over control of the systems it had been managing. however, the default state for one of the systems assumed that the aircraft was in flight, so it dutifully retracted the undercariage. doh!

  65. Good site by dumboy · · Score: 4, Informative
    Check out this site

    http://wwwzenger.informatik.tu-muenchen.de/perso ns/huckle/bugse.html

  66. Re:Challenger by EvanED · · Score: 2

    It's not as simple as you make it out to be. NASA's Marshall Center applied a significant amount of pressure to Morton Thiokol (the contractors who designed and manufactured the solid rocket boosters) to give them the go-ahead. See, the contractors have absolute veto authority; if they want NASA to not launch, NASA can't do anything about it. However, NASA was under a TON of schedule pressure to launch. (There's even a conspiracy theory that Reagan ordered NASA to launch so he could call McAuliffe in orbit during the State of the Union Address scheduled for that evening, but there's absolutely NO evidence that this is true.) NASA passed off that pressure onto the management Morton Thiokol, who unfortunatly buckled under it.

  67. Re:Challenger by JordanH · · Score: 2
    • But anyway, that's only half true. The problem is that not all software bugs go back to that source... hardware plays a big role as well.

    The poster said they'd never had hardware problems, which I suspected as classifying problems as EITHER a software problem or a hardware problem.

    If a miscommunication among software guys that results in a bug isn't a software problem, then what exactly is a software problem?

  68. Serious System Security Failures by werdna · · Score: 2

    The most common kind of internet security failure derives, it would seem, from buffer overflows on the internet.

    These buffer overflows invariably arise from unsatisfactory bound checking -- one of the simplest kinds of bugs, and are easily exploited these days by script kiddies.

    Examples are too numerous to mention.

  69. Re:That is NOTHING -- 10,000 died in Bhopal, India by EvanED · · Score: 2

    >>I always believed it was reckless cost cutting by a faceless multi-national

    Yes, but more than that, is was a lack of communication between sections. I forget exactly what caused this incident, but it was four or five different problems that all went wrong at once. Had any of them not had problems, thye porbably would have been closer to a Three-Mile Island scare rather than any actual damage occuring. But two of their safety systems were off-line for maintainance, and a third and fourth were poorly designed. Something like that.

  70. Insidious bug from the wayback machine by rufusdufus · · Score: 3, Informative

    Back when C++ was new, there was an insidious problem with the syntax that never showed up during compilation.

    if(c=='\') //check for \
    slashfound=1; //found one, handle path
    ++index;

    Code similar to this delayed shipment of a commercial product because it caused serious instability.

    1. Re:Insidious bug from the wayback machine by rufusdufus · · Score: 4, Informative

      Perhaps I should point out the bug: the comment "//check for \" ends with a pre-processor line-entesion character (\), which effective appends the next line onto the current line, thus the code "slashfound=1" is effectively commented out and the next statment (++index) only executes if c=='\'

    2. Re:Insidious bug from the wayback machine by spongman · · Score: 2

      well there's that, and also the fact that the condition should be:
      c == '\\'

  71. Re:Apollo 1 / hardware fault by ckedge · · Score: 3, Interesting

    .
    I've read in-depth technical analyses of the Apollo fire, and I have an MSc in Physics.

    Before that, *no-one* knew that a spark in one place could cause a fire TWO FEET AWAY.

    (You get little hot bits of burnt dust floating around in a pure oxygen atmosphere, and they keep themselves hot enough to set something else afire quite a ways away. Of course things are *easier* to set fire to in that atmosphere as well.)

  72. One of the best resources I've found by PghFox · · Score: 5, Informative
    The Pragmatic Programmer: From Journeyman to Master, is one of the best resources I've found to avoid common programming mistakes. This book details many of the common errors we make as software developers and describes strategies for overcoming them. Having been in the field for close to two decades, I've found this book to be of immense value, and give it a high recommendation.

    Some of the tips, which may appear obvious to some of us, include:
    • Always Aim for Simplicity, Clarity and Generality
    • Treat all of your code as if you're going to release it
    • Keep subroutines small; break-up code as you go
    • Document as you go, not after the fact
    • Write tests as you go, not after the fact
    • Fix bugs immediately; do not delay fixing them
    • Do not duplicate any code, anywhere
    • Separate form and functionality
    • Subroutines should do one thing and do it well
    • Make your work easy to reuse
    --
    --- Fox
    1. Re:One of the best resources I've found by PghFox · · Score: 2, Interesting

      I appologize for the confusion, I'll attempt to make it more clear. These two goals are actually not contadictory. One of the methods by which a chunk of code can be made easy to re-use is by abstracting it out into a separate module or subroutine. In this manner, anything that needs the functionality that that chunk of code provides, at any time in the future, can simply call it. In other words, you don't want to "cut and paste" any given chunk of code into several places, since if you need to make a change to it you'd have to change the same code in several places instead of just one. The idea here is that we want to save time, and increase maintainability.

      Think about it like this. Let's say you want to read a book (use some chunk of code). You have two choices. You can get one copy of the book and keep it in a central location (abstract the code out to one subroutine or module), or you can get a dozen copies of the book and place it at seemingly convienient locations around your house (cut and paste, i.e. duplicate, the code in many different places). You start at the beginning and read a chapter or two. If you have one book you can simply place a bookmark (modify the code) where you left off. If you have a dozen books you're forced to place twelve bookmarks. Now, what would happen if the author puts out a revised edition of the book? Would you rather replace twelve books or one?

      Ostensibly, the above example is somewhat contrived, but hopefully it answers the question.

      --
      --- Fox
  73. Cambridge University and CAPSA by 26199 · · Score: 2, Interesting

    It was a new financial system, and it was a real mess - something like £9m initial cost and £20m due to its flaws. According to Anthony Finkelstein, who's written a very detailed report on the fiasco:

    • Significantly more costly than had been anticipated (worse than it appears because of hidden costs)
    • Substantial disruption to working of the University
    • Placed staff under undue pressure
    • Placed the finance of the University at risk and may have prevented the University and its staff from fulfilling their legal responsibilities

    You can read his full report here (pdf) or here (google html version). There are also news reports on the system here and here.

    Basically, it was bad management throughout... a classic case of a big software project gone wrong.

  74. A more useful angle... by EasyAs314159 · · Score: 2, Interesting

    Horror stories (lost rockets, etc) are certainly attention-getters, but a more useful question might be what kinds of errors got made, regardless of how severe the outcome.

    For example, I once helped a newbie employee with a program that was working fine in a simple test case, but was blowing up when it tried to crunch through a production file.

    After digging a little, I noticed that she was using recursion in her "GetNextInterestingRecord" routine! The logic was:

    1) Get a record
    2) See if it's the kind we want
    3) If not, Call self
    4) return record to main

    I'm not sure why she chose to use recursion (too many classroom lectures on "cool" stuff and too little experience with getting useful stuff done?), but the program needed "interesting" records every so often to keep from overflowing the stack.

    Clearly recursion should be confined to those problems where it's really needed, and not used just because you can find a way to state the problem using recursion. And even then, you need think about how big the stack will get, and what sorts of scenarios could cause it to get too big.

    1. Re:A more useful angle... by mOdQuArK! · · Score: 2

      Actually, I would say that it is more important to make sure that your recursive algorithm is provably bounded, i.e., each level of recursion can be shown to work on a smaller piece of data until all of the data has been consumed.

      Tail recursion is just an efficiency optimization for a certain kind of recursion. It wouldn't stop a compiler from an infinite recursion though.

  75. Re:That is NOTHING -- 10,000 died in Bhopal, India by Forager · · Score: 5, Insightful

    From the site:

    "In 1969, as part of its global empire, Union Carbide Corporation set up its pesticide formulation unit in the northern end of the city of Bhopal in central India. Initially it mixed and packaged pesticides imported from the US but was gradually expanded. In December 1979 its Methyl Iso Cyanate (MC) plant with an imtalled capacity of 5000 tonnes went into production.

    On the night of December 2, 1984, during routine maintenance operations in the Methyl Iso Cyanate (MC) plant, at about 9.30 p.m., a large quantity of water entered storage tank no. 610 containing over 60 tonnes of AEC.

    This triggered off a runaway reaction resulting in a tremendous increase of temperature and pressure in the tank and 40 tonnes of MIC along with Hydrogen Cyanide and other reaction products burst past the ruptured disc and into the night air of Bhopal at around 12.30 a.m. Safety systems were grossly under-designed and inoperative. Senior factory officials knew of the lethal build-up in the tank at least one hour before the leakage, yet the siren to warn neighbourhood communities was sounded more than one hour after the leak started.

    By then, the poisons had enveloped an area of 40 sq.kms. killing thousands of people in its immediate wake. Over 500 thousand suffered from acute breathlessness, pain in the eyes and vomiting as they ran in panic to get away from the poison clouds that hung close to the ground for more than four hours."

    Nothing to do with programming errors here that I can see. Sounds more like gross negligence and incompetence to me.

    -A.

    --
    student of animation and the fine arts
  76. Re:That is NOTHING -- 10,000 died in Bhopal, India by FattMattP · · Score: 2
    it did, 09/11/01
    You honestly believe that 09/11/2001 was caused by a programming mistake? I'd love to hear you justify that.
    --
    Prevent email address forgery. Publish SPF records for y
  77. Re:Challenger by GileadGreene · · Score: 4, Insightful
    NASA hasn't ever had a hardware problem. Or a software problem. Ever.

    Well, except for Mars Polar Lander, where the failure review board determined that the lander crashed because a flag indocating contact with the ground was not intialized to zero prior to the start of the retro-thruster loop. So the flag got set by the shock of deploying the landing legs, never got reset, and caused the thrusters to switch off as soon as they were on.

    I guess maybe you forgot about Apollo 13 as well (hardware)? Or the Galileo High Gain Antenna that failed to deploy (hardware)? Or the serious telemetry system problems they had with one of the Voyagers (hardware)? Or the faulty landing bag on one of the Mercury flights (hardware)? (was it Glenn's? I don't remember) Or that funky glitch in the landing computer during Apollo 11 (software)? You know, there's a reason that most space mission tend to be heavy on redundant hardware, and invest a lot of time and effort in fault protection software.

    Every problem can be directly tied to one specific person being a fscking moron.

    Well yeah, but that's the case with a lot of bugs, isn't it? Mistakes tend to be people issues.

    The closest you could come is that Mars probe that crashed because of mismatched units. And that was just poor communication among the software guys.

    You are at least correct about that - the problem was not a software issue. Lockheed Martin Astronautics was on contract to supply everything to NASA in SI units (which is what NASA uses for everything). LMA - or at least the part the caused this problem - uses English (Imperial) units internally, and neglected to perform the appropriate conversion before they sent the data on to NASA.

  78. Re:Challenger by the+bluebrain · · Score: 2, Interesting
    • [...] Mars probe that crashed because of mismatched units. And that was just poor communication among the software guys.
    So if it's not a bug, it must be a feature :) ? If you had been responsible for that piece of software, would you have sat together with the NASA guys after the analysis, and claimed it wasn't a bug? Errr....

    Have an article on the guys who write the stuff. They're damn good, but they say themselves their programs contain errors: "the last three versions of the program [...] had just one error each. The last 11 versions of this software had a total of 17 errors." Apparently never caused a problem, but not bug-free.

    Then there was the Canadarm2 issue. Or wasn't that a bug either :) ?
    --
    yes, we have no bananas
  79. Re:Challenger by jcsehak · · Score: 2

    Actually, it was more a case of bad presentation skills. Check out Edward Tufte's "Visual Explanations" for a complete rundown, but basically, IIRC, one guy (or group) knew of the danger and spoke up about it. His supervisors said "Okay, write me a report detailing excactly why we should delay the launch." He did, and it was a very confusing report. So they went on with it, and, well, you know the rest.

    --

    c-hack.com |
  80. Re:That is NOTHING -- 10,000 died in Bhopal, India by Cyno01 · · Score: 2

    no, i was just saying that we do have an example of what happens when you lose several thousand consumers in one fell swoop, and the aftermathof such an event, not a whole lot happened after bhopal, i dont feel like researching much, but i'm willing to bet the only changes were stricter regulations on plants like that, after the 9/11 attacks our entire country changed(not for the better)

    --
    "Sic Semper Tyrannosaurus Rex."
  81. Re:Apollo 1 / hardware fault by EvanED · · Score: 2

    >>looking back I realized I was too critical

    It's easy to be critical; hindsight is 20/20. I think NASA goofed badly with the Challenger, both in not requiring a redesign of the joint and by launching in the cold weather. I did a report on this for which I read through the Presidential report on the disaster, and NASA goofed on both these counts and should have seen the incredible danger in both these decisions. In both, people within NASA and Thiokol were continually raising red flags over the decisions, but nothing was done.

    On the other hand, the Apollo 13 incident was almost unforceable. In retrospect, it should have been prevented, since it was agin caused by a design change that wasn't throughly implemented. (It was caused by a change in voltage, causing a thermister made for the older, lower voltage to fuse shut. This then didn't turn off the heating elements, which led to the insulation on the wires inside the O2 tank to melt off. It then sparked during a cryostir.) However, the Apollo system was so complex that it's easy to see how the change was overlooked for the tanks, and it's possible to forgive NASA for it. The rest of the chain in the problem was pretty much unpreventable and unpredictable.

    Apollo 1 was somewhere in between. While the problems related to the fire (the inward opening hatch, the pure O2 environment) were forgivable, the whole capsule had problems which people had been complaining about. Gus Grissom had once hung a lemon from the top of the craft to show what he felt about it. So in general, NASA should have been more through with their safety concerns.

  82. What about Office Space? by lowtekneq · · Score: 2, Funny

    A period in the wrong place and they steal to much money?? Who can leave that off their list?

    --
    Carpe meam simiam!
  83. 10,000 dead in Bhopal, India != Concern by Sean+Clifford · · Score: 3, Funny

    When something like this happens, it's little more than an embarassing public relations problem. If the news can't be completely supressed through advertising, perhaps it can be kept off the evening news and relegated to the back pages. It requires a well-coordinated PR firm, but hey that's what they're around for.

    Sure, a few independent news agencies might pick it up and make a big deal about it - until someone goes whaling or starts cutting down redwoods. Few people pay much attention to the independent media anyway. Joe Sixpack doesn't subscribe to The Progressive.

    On the local front, shut down the plant, and evacuate your American/European workers. Split them up and transfer them around. If someone makes noise, force them to sign an NDA for their severance packages. Spread liberal bribes on the local front, write the whole venture off, and wait for the hubbub to die down. If you want to stay in the region and resume operations, do so under the umbrella of a subsidiary. If it's too risky, simply relocate to another third-world region. It's not like there's a limited supply.

    Unless you stay in the region, you really don't have to worry much about the local population. They're too poor to pursue legal action or be a security threat.

    Besides, it's not as if they're white Christians, is it?
    </sarcasm>

  84. Read this book by nsayer · · Score: 2

    The quintessential book about stories like this is called "Set Phasers on Stun" by Steven M. Casey (ISBN 0963617885). If you're interested in tales of this sort, this should be your starting point.

  85. OT: Scuds and Patriot missile defenses by GuyMannDude · · Score: 5, Interesting
    People keep pointint to the floating point error as the cause for why the Patriot system at that time (the PAC-2) let that scud go through. But as I've already pointed out in an earlier post, the PAC-2 did a crappy job (far worse than is generally known) intercepting scuds not because of coding errors but because the problem of hitting an erratically moving missile was so difficult. I think it's important to get the word out as we approach a new war with Iraq and consider a national missile defense shield. This recent article briefly discusses Israel's own attempts at missile defense because they don't trust the PAC-2 (for good reason) and it's questionable whether the US is going to give them some PAC-3 batteries.

    Bottom line: that stuff about the floating point error in the PAC-2 system looks neat on paper but it's not at all clear that the faulty calculation was responsible for the loss of life.

    GMD

  86. Airport flight schedules by PyroX_Pro · · Score: 5, Funny


    Here are some of the best examples of windows crashing on high visibility systems that are relied upon:

    in the street
    At the airport
    at the atm
    on CNN
    At disneyland
    On your phone
    In an airplane
    At the bus stop

    1. Re:Airport flight schedules by thopo · · Score: 2

      the airplane pic is also faked.

      --
      keep it simple.
    2. Re:Airport flight schedules by bLanark · · Score: 2

      The message comes from the server. I see it on lots of MS/ASP/MSSQL web sites from time to time.

      I don't think it should be included with the above, as it's not really on the phone, as you point out.

      --
      Note to ACs: I won't mod you up, even if you are being funny or insightful. So take a chance! It's not real life!
  87. Re:already.. by Anonymous Coward · · Score: 2, Funny

    And why do you think that everyone should spoon feed you?

    I agree! What's the point of having people spoon feeding us information like little babies when we can just go out and find it ourselves. "News" sites like Slashdot are the worst at it, "spoon feeding" us entire stories and links to relevant information. The laziness! Everyone should just pick a topic of the day when they get out of bed and proceed to Google to find all relevant information. People that research, distill, and provide useful information in an organized manner are just exaserbating the problem. Bravo to you, sir, for saying what needs to be said!

  88. Re:Why this cant be right... by cybercuzco · · Score: 4, Insightful

    Thats not entirely true. Adding power will inccrease your altitude, but pulling up will too. When you pull up, you trade altitude for speed. In other words, youll go higher but your plane will be goins slower. Eventually you arent going fast enough to maintain level flight characteristics, so you have to add power or stop trying to go higher. In some cases youre right though, if you already are only going fast enough to maintain level flight, pulling back on the stick will slow you down and decrease your altitude, but this isnt always true. As for the person who didnt understand how adding power increased altitude, when you go faster, you increase the lift coming from your wings (since lift is a function of speed and angle of attack) so there is a net upward force on the aircraft, causing it to go upwards.

    --

  89. Re:Why this cant be right... by gilroy · · Score: 2
    Blockquoth the poster:

    Please explain to me, a non-physicist, how increasing power will do anything but make you fly faster in the same direction and at the same altitude you were already flying at.

    Well, if you apply more forward thrust, you increase the speed differential of the air flowing over the airfoil... Bernoulli should say that this increases your lift and so you go up.
  90. This would be better by csnydermvpsoft · · Score: 2

    How about this:

    if altimeter1 not working
    {
    if altimeter2 not working
    {
    while (1)
    {
    height = 1;
    while (height 99999)
    {
    height++;
    }}}} (sorry for the bad code, but the lameness filter got me)
    There, a nice spinny altimeter. :-)

    1. Re:This would be better by smallstepforman · · Score: 2

      Buddy, dont quit your day job. Your code will kill someone. Geez, 2 tight loops, 4 syntax errors . . .

      --
      Revolution = Evolution
    2. Re:This would be better by the+way,+what're+you · · Score: 2
      Buddy, dont quit your day job. Your code will kill someone. Geez, 2 tight loops, 4 syntax errors . . .

      Yeah, obviously the lameness filter doesn't work well enough if that got through. ;)

      --
      example.org - powered by Linux!
  91. F-16 (or maybe one of the other fighers) by bmwm3nut · · Score: 2, Interesting

    my cs teacher told me this one back in college...he said one of the first runs of the f-16 (or maybe another one of the computer controlled fighers in the air force) they were flying and everything worked just fine. however they took it across the equator and the plan flipped upside down. so the pilot corrected it and everything went back to normal. then he flys across the equator again and it flips.

    so they took a close look at the software, and there was a bug in their sin function so that when they went across the equator they angle changed from positive to negative and the sin function didn't have the negative incorporated. so basically when the plane went over the equator it thouht it was upside down and corrected itself by flipping itself upside down.

    i think it's a funny example of a stupid mistake possibly making a catastrophe. i've never seen this mentioned elsewhere, so i'm not to sure about this. but i do trust the cs prof who told me, before coming to my school he did a bunch of government contract work.

  92. Personal Example by MadocGwyn · · Score: 2, Interesting

    Was working for a small isp. Sitting at work developing a script to blank the accounts off our old mail server (outsourced) for when our new mail server is completly online and ready to go. Its done, i remove my debugging code and the limites I had placed (i had limited it to work with only 2 test accounts) Congradulating myself on a job well done I head to the hall to grab myself a coke, i come back and my boss is at my comp, now the program was written in VC++ so the 'play' button is pretty obvious and hes seen me use it before, the idiot wanted to see what i was working on and ran it, blanking all accounts off of the mail server. Took us 3 days to get the outsourceing company to restore from a backup (one of the reasons we were co-locating our own), and even then all mail recieved after the backup (the night before) was gone ofc. I just about strangled my boss, on the upside, he never touched my workstation again.

    --
    Jesus saves, everyone else takes full damage from the fireball.
  93. Lets Not Forget the Best... by Hott+of+the+World · · Score: 5, Funny

    Slashdot Math!

    cause we all know 50 + 1 - 1 = 49!

    Ok, that was lame, go ahead and mod me down...

    --
    | - | - |
  94. Wind was the *cause*. . . by kfg · · Score: 5, Insightful

    of the Tacoma Narrows bridge falling. The *fault* was with the design, and hence, the designers.

    An extended bolt puncturing the gas tank during a rear end collision was the *cause* of Ford Pintos exploding. The *fault* was with the design, and hence, the designers.

    Both of these items could have been claimed to be perfectly free of design flaws while being used as "intended."

    This argument did not help the designers in not being found liable for their design flaws.

    The divide by zero error was the *cause* of the operating system's failure. The *fault* was with the operating system. The *operating system* crashed. An operating system failure is *always* the fault of the operating system, and hence, its designers.

    Read any textbook on the design of operating systems and in the first page or two you find some sort of statement along the line of, " A faulty app should never cause the operating system to fail." This is correct design.

    Let me repeat. If an app fails, it is the fault of the app. If the operating system fails, no matter what an app has done, it is the fault of the operating system. An operating system must *assume* apps badly written by complete incompetents.

    It doesn't matter what operating system. Windows, Linux, Mac or just the beads on your abacus.

    * It is the responsibiltiy of the operating system not to fail.*

    The fact that such failures can be explained away as the fault of the app by people who should know better makes me grieve for the state of engineering these days. It can only result in products being produced with greater and greater "craposity" factors eventually resulting in a culture of complete "crapitude."

    KFG

  95. Schadenfreude by neiljt · · Score: 2, Funny

    After all, it is better to learn from the mistakes of others than from your own, right?

    Not better, but more comfortable. You will generally remember better what you learn from making your own mistakes.

    Not that I would discourage your approach (or curiosity).

  96. Re:Why this cant be right... by bongholio · · Score: 4, Informative

    You're all sorta right.. here is one of my favorite aviation pages It'll tell you more than you ever wanted to know about airplane physics (from a pilot's point of view). Chapter 1 covers these altitude/speed/power concepts...

  97. Mars Pathfinder by Kerg · · Score: 3, Interesting
    The little "RC" NASA sent to explore the surface of Mars had a nasty bug in its threading system (priority inversion problem in critical code section) that caused total system resets every 20 minutes or so.

    You can read about it from James Gosling's home page (also has info on Arianne 5).

    Luckily the engineers were able to upload a patch to Mars. That's remote debugging/patching for you :-)

  98. a good resource by Herotodus · · Score: 2, Interesting

    Back issues of "Communications of the ACM" are a gold mine for such blunders of the art. Most issues have a back page column "Inside Risks" that are or were written by Peter Neumann but various others have contributed. Usually each covers a theme since the subject material is so broad and seemingly unending.

  99. F-16 AOA and WOW by taaminator · · Score: 4, Interesting

    "Flight instruments don't lie"

    First, BEFORE YOU LEAVE THE GROUND, pilots are taught that instruments don't lie. Specifically, when the human inner ear is placed in flight, things go wrong (the inner ear canals are static, not dynamic, devices; the fluid has no dampening or rate sensors). When there is no external reference, the inner ear canals adjust to the eye's visual presentation. It's called the 'leans.' Bad joo-joo. Many a perfectly good aircraft has been flown into the ground because the pilot believed his ears and eyes and not his instruments.

    Second, IN FLIGHT, angle-of-attack (AOA) is a spectacular indicator of where your airfoil exists within (or outside) the flight envelope for your aircraft. Inside the flight envelope, you can seek best range (mpg) or best endurance (loiter) or best climb.

    In most aircraft, the angle-of-attack indicator is a manual instrument (on the skin is a sensor which looks like a big euro-style handle and it runs to an indicator in the cockpit).

    Many pilots are correctly taught to 'fly' the angle-of-attack.

    Third, ON THE GROUND, when you land, you use the aircraft shape as an airbrake. You hold the aircraft nose off the ground as long as possible to create drag.

    Fourth, ON THE GROUND, when you land, you do not want to hold the aircraft nose too far off the ground or the tail will scrape the runway and your fitness report will reflect and you'll be the butt of bad jokes at Snopes for eternity.

    The AOA is used to assist in the performance of aerodynmic braking. The aircraft performance manual publishes the tried and true range of AOAs for aerodynamic braking. [It also indicates when too much AOA will ding the aircraft.]

    Aerodynamic braking is part art and part science and requires accurate instruments.

    Enter the F-16 ... it has an electronic AOA.

    F-16 pilots were taught to fly the flight direction indicators to land.

    However, many old and new pilots fell back on the old AOA once the wheels touched the ground to do aerodynamic braking.

    Suddenly, F-16 tails were scraping along the runway at an alarming (and expensive) rate.

    [As an aside, the problem was probably ignored until a senior officer ground off a few inches of aluminum THEN there was a problem.]

    The programmers who wrote the AOA routines were rightly told that the AOA is used in flight. So, when the AOA detected that the aircraft had placed weight on the wheels (weight-on-wheels - WOW), it was programmed to quit working. Unfortunately, it kept the last AOA reading ... no matter what the real AOA was.

    Pilot flies, pilot lands, pilot believes instruments, pilot scrapes multi-million dollar aircraft's tail along runway.

    The programming solution was simple: when there was WOW, fade the AOA.

    This was another case when contracts pit spec wording against spec intent against functional application and understanding of how it's supposed to work ... Fortunately, it was expensive and not lethal.

    "Why did they call you 'sparky' and why are you driving school buses in North Topeka?"

  100. Re:Code Vaults by sg_oneill · · Score: 3, Funny

    Oh yeah...
    At a previous job , we where having some after work drinks, and I started fking around with a RAD app we had developed for a military contract. In a fit of semi drunken bordeom we whacked in lots of pink fluffy clouds and a "my little pony" logo on the boot up screen.

    Forgot to restore it.

    Next morning the mil guys came in to look at how the prototype was going, and on boot up, up pops "my little pony" with all the little clouds and all. Extremely campy.

    Khaki guy not impressed.

    --
    Excuse the Unicode crap in my posts. That's an apostrophe, and slashdot is busted.
  101. Re:That is NOTHING -- 10,000 died in Bhopal, India by jgaynor · · Score: 4, Informative

    A "large quantity of water" entered the storage tank because an employee who had just been fired dropped a hose into it out of spite (he didnt know what would happen, he just wanted to ruin something). Yes the safety precautions were under-par, but when someone with legitimate access wants to destroy something its pretty hard to prevent.

    And yes, this has nothing to do with programming error :).

  102. Re:Madcap Marsupials by sg_oneill · · Score: 2

    Ok.. I remember reading that one in the paper as US military guys that where being shown the system by ADI (Australian Defence Industries). I also remember nearly falling off my chair laughing.

    You may be right tho. Fsking funny.

    --
    Excuse the Unicode crap in my posts. That's an apostrophe, and slashdot is busted.
  103. Re:Y2K ? by Sivar · · Score: 2

    Perhaps the Y2K problem passed without incident exactly because of these fixes. There was software that remembered the data as only two digits, and some of it did need to keep track of the entire year, though the "19" was assumed.
    We will probably never know.

    --
    Computer Science is no more about computers than astronomy is about telescopes. --E. W. Dijkstra
  104. Not programming story but.. by phorm · · Score: 2

    My college program involved several co-op workterms, in which students would be placed in paying jobs as part of their education. One of our teachers regaled us with stories of co-op placements gone bad. In one case, a student at the local lottery office (where the prof used to work) apparently sat on a keyboard and apparently managed to butt-type a sequence of keys that knocked out the lottery system for awhile across the province (apparently while trying to flirt with a female co-workers).

    From what I remember, he was blacklisted for quite a while with local employers, probably didn't get a date from the female co-worker either...

  105. My favourite quote on the subject by iapetus · · Score: 3, Funny

    The most likely way for the world to be destroyed, most experts agree, is by accident. That's where we come in; we're computer professionals. We cause accidents.
    -- Nathaniel Borenstein

    --
    ++ Say to Elrond "Hello.".
    Elrond says "No.". Elrond gives you some lunch.
  106. Re:Why this cant be right... by spongman · · Score: 2

    unless your pointing at the ground. an if you've even been in an acrobatic plane (such as a jet fighter) then you'll know it's oftern extremely hard to know intuitively which way is up - especially when you're in the clouds.

  107. New Slashdot Category? by po8 · · Score: 3, Insightful

    Could we have a new Slashdot category entitled Ask Slashdot To Do My Research/Homework For Me? Then I could mark this category unread and avoid some annoyance.

    There is so much information readily available on the subject of software failures online and in scientific and popular publications. (See other responses to this question for examples.) IMHO, the questioner should go look for the answer to this kind of question directly before bugging the entire Slashdot audience; the editors should enforce this policy.

    1. Re:New Slashdot Category? by evilviper · · Score: 2

      Isn't that what the whole ASK SLASHDOT section is for? Please point out one example where someone isn't trying to get readers to help them choose the best product, or otherwise solve a problem that they have.

      Yes, I'm guilty. I haven't you eliminated the section from my own preferences, yet...

      --
      Slashdot gets worse every day... Pipedot: News for nerds, without the corporate slant
    2. Re:New Slashdot Category? by Mac+Degger · · Score: 3, Insightful

      I'm kinda sick of seeing this kind of comment. If it where to hold any merit, WTF would 'ask slashdot' be for? To me, the whole purpose of the 'ask slashdot' catagory is to plumb the experience of the people who frequent this place. If you're not allowed to do that, what would you use it for?

      --
      -- Waht? Tehr's a preveiw buottn?
  108. London Ambulance disaster by os2fan · · Score: 3, Insightful
    There was a disaster in the dispatcher software that was written for London Ambulance. This was documented in a book on computer disasters.

    The system did not collapse per se but progressively became bogged down by a series of poor design issues and implementation issues.

    What happened was there was a memory leak, in that not all the memory used when a call was processed was released. This meant that each call chewed up a small part of core.

    As the day wore on, this loss of memory started to make the system run slower, and created more calls as users started to worry about the non-show of the ambulance.

    Meanwhile, back at the control centre, the operators started getting blasted by messages about over-due ambulances, and other system warnings. They were spending time simply dismissing Error dialogues.

    By the end of the day, they were still dealing with the emergency issues notified at 12.00.

    Of course, in the inquiry, there were many different management and design issues to be addressed, including the reliability and scalability of the software. [It was a Visual Basic program.]

    I have seen a number of instances personally, most of these tend to be ignored by management keen to see the system up and running. The most often case for dismissal of problems is "teething problems", and "Luditism".

    In practice, the real issue here is the UI. Not so much "flash chrome", but that the buttons and so forth will actually do what the user expects them to do. The user must be able to understand how to process and correct errors in relation to the application data itself. That is, if I enter 1200, and I mean 1130, I should be able to correct that.

    The other disaster happening out there is that the program must be useful to the operator. So apart from entering data, the operator must be able to extract useful information from it. What the back end does does not really matter.

    For example, a clerk who has to enter data on the screen each sale, in addition to operating the till, would be reluctant to use it. On the other hande, if the program is part of the till operation, and it provides information on how much stock is left, the clerk is more accepting of the change.

    Implementing a system is not about plonking a pc with a program on a user's desk. It's about a user process. Users are looking for outcomes, not process. So if you want to go to a shop, you want to buy something, and the clerk wants to sell it to you. All the rest is administrivia.

    Software design is important. So is user training.

    --
    OS/2 - because choice is a terrible thing to waste.
  109. Computer-Related Risks by Peter G. Neumann by Malic · · Score: 4, Informative

    I think I've recommended this book serveral times on Slashdot. Simply put, THE collection of computing related horror stories.

    http://www.amazon.com/exec/obidos/tg/detail/-/02 01 55805X/qid=1035769692/sr=8-13/ref=sr_8_13/104-4078 673-1863905?v=glance&n=507846

    --
    I swear by MacOS X. Although I use to swear *at* MacOS 9...
  110. Er... more than that... by leonbrooks · · Score: 2

    The NT crash brought down every other NT box on the ship, not good news on a ship powered entirely by NT, is it? (-:

    I have a friend (who still works for IBM) who was learning to program on mainframes, ran his app, killed it after 2.5 seconds, and went down to collect his print run. One and a half boxes of paper. He thought that was expensive... but consider running an app on your smartship while it's manouvering in close quarters, and bringing down NT. One and a half boxes of sailors. A bit expensive...

    --
    Got time? Spend some of it coding or testing
  111. _Complete_ imcompetents? by leonbrooks · · Score: 2
    An operating system must *assume* apps badly written by complete incompetents.

    It must also be expecting programs written by incomplete incompetents, ie, people who are clever enough to get most of the coding right, then put in a weird twist on the last call that guts the OS. Programs writen by complete incompetents are often disqualified (GPF) before they get so far.

    --
    Got time? Spend some of it coding or testing
    1. Re:_Complete_ imcompetents? by leonbrooks · · Score: 2
      copy it out of a textbook maybe? You'd probably get that wrong.

      I was given a C program to work on once, typed in from a book by a receptionist `to save money'. The results were whimsical, to say the least. `||' became `ll', `;' and `:' were more or less interchangeable, and you don't want to know about `--'. Plus a few words got misread. It was worse than bad OCR.

      --
      Got time? Spend some of it coding or testing
  112. Re:Apollo 1 / hardware fault by EvanED · · Score: 2

    I did run acroess that title, but for some reason I did not read it. It's very possible that no local libraries had a copy (in fact, a run of Penn State's library search engine yields no results, so this was almost certianly the case). As it was not a huge paper in general (just for a high school class, albeit a *major* paper for high school), I didn't feel compelled to go looking for tons of secondary sources when Penn State had the Commission's Report. As this report is the basis for most of the information out there on the Challenger, it was by far and away my biggest source.

    One book that may be of particular interest to /.ers is Richard Feynman's "What Do You Care What Other People Think?" Feynman was one of the members of the commission that investigated the accident, and he gives his story in the second half of the book. Feynman is a fun guy and the book is a very good and easy read.

    In general, there are certain sacrifices that you have to make in terms of safety. Having to cart a one-piece booster just wouldn't have worked, period. This is especially true at that time because NASA was running another launch pad in Califiornia at an Air Force base (I forget which, and also forget if it was ever used) in addition to the one at Cape Canaveral. I suspect a barge in that case would have necessitated a trip all the way through the Panama canal to get between the launch sites. My point is that you can't always take the safest option. However, that doesn't mean you ignore blantant safety issues. NASA was negligant in its inaction concerning a joint redesign. (And this is true legally as well as IMHO; the families of the astronauts I believe got a fairly substantial amount of money in a wrongful death suit, though I forget if it was settled out of court.) The decision to launch in cold weather was, in my mind, far secondary to the lack of any progress regarding the design of the joint.

    If anyone is curious, my report is online as a PDF and HTML. The PDF version has a couple more pages that I didn't splice into the HTML file, including a VERY interesting and revealing memo starting on page 40. Try to ignore the numerous technical errors (I have a couple dozen typos and horrible tense consistancy). I wish that I had had the time to proofread it, but it was too long for the time I had avaliable. But I don't think ym teacher bothered to read it anyway, because he made no comments on it.

  113. Re:That is NOTHING -- 10,000 died in Bhopal, India by rhadamanthus · · Score: 2
    I am not sure if the other replying slashdotter is correct about the water-hose or not, but Chemical Process Safety by Daniel A Crowl, does mention that the Bhopal incident was the result of a labor dispute, and not necessarily "gross negligence" on the part of Union Carbide. The labor dispute resulted in the unoperational status of the air-scrubber/flare sytem following the pressure relief valve on the MIC tank. Becuse of this, the rapidly venting MIC was released unaltered to the atmosphere, killing 2000 people and injuring about 20,000. Incidentally, it does list the cause of the accident as unknown.

    -----rhad

    --
    Slashdot needs to interview Natalie Portman.
  114. About that automatic ship leveling system of yours by ibi · · Score: 2, Interesting

    From the Pacific Northwest, home of "innovative" approaches to software reliability, comes:

    http://seattletimes.nwsource.com/html/localnews/13 4563661_ship27m.html


    "Officials could not say for certain what caused the ship to heel, but they think the ballast system was probably at fault. A malfunction became evident about 3:30 a.m., when the 653-foot ship started to tilt. The crew was evacuated and no one was hurt. ...

    The ship, in operation since June, has an automated ballast system that adjusts water levels in 28 compartments to keep it righted on the high seas."

    Kind of frightening - wonder if the crew even knows how to do a manual override. (Also weird that evacuating the upper port balast chamber would cause it to list to port...)

  115. You just can't win, can you... by achurch · · Score: 4, Insightful

    If the Y2k bugs hadn't been fixed, things would have broken left and right, and we would have been blamed for not fixing them ahead of time.

    Since the Y2k bugs were fixed, very few things broke, and we got blamed for wasting tons of money to no effect.

    C'est la vie, I guess.

    1. Re:You just can't win, can you... by refactored · · Score: 2
      Nah! Things broke at Y2K left right and center.

      Nobody noticed it above the usual level of computer brokeness!

  116. Flag inversion considered harmful by steveha · · Score: 2

    At a place I used to work, they made burglar alarms. One burglar alarm, the "8112", had a feature where you could lock out sensors so they would not report. This had two possible uses: the alarm company could lock out a defective sensor, or the alarm company could lock out all sensors if the customer wasn't paying the alarm bills.

    Anyway, there were 8 possible sensor "zones", and there was a byte that could lock out any or all of them. You set a bit, one zone was locked out.

    An upgraded version of the 8112 came out, where you could replace two of the 8 zones with serial data loops, and you could have over 100 individually reporting sensors instead of 8. This optional feature was called "Zonex" (for "Zone expander" or something like that). For no good reason, when Zonex was running, the sense of the lockout bits was reversed: instead of being lockout bits, they became enable bits.

    I want to emphasize this. If Zonex was running, you had to set all the bits; otherwise you had to clear all the bits.

    So the setup software knew to check the Zonex bit, and set up the lockout byte accordingly.

    This worked great until a new version of the 8112 came out where Zonex was always running, whether or not the Zonex bit was set. If the user didn't happen to set the Zonex bit when setting up that version of the 8112, the burglar alarm would silently ignore all the sensors. Eeeek!

    Once we figured that out, we added a check for the version of the 8112 and all was well again with the setup software.

    The moral of this story is: don't randomly invert the sense of settings!

    steveha

    --
    lf(1): it's like ls(1) but sorts filenames by extension, tersely
  117. Programming Gone Wrong Sources by DorAgaznog · · Score: 2, Informative

    From my Software Engineering textbook (author: Vliet if you're interested), a few references you might like: - http://www.csl.sri.com/users/neumann/neumann-book. html - http://www.rothstein.com/slbooks/sl296.htm Also, you might like: "Design Paradigms: Case Histories of Error and Judgment in Engineering" by H. Petroski (not restricted to Software Eng) Enjoy, Rod

    --
    "I respect faith but doubt is what gets you an education." --who knows
  118. the RISKS mailing list by mosch · · Score: 2

    The RISKS mailing list (aka comp.risks on usenet) deals with this topic quite thoroughly. Go forth and read this fine forum on risks to the public through computers and related systems. Learn about the problems faced by planes, trains, automobiles, banks, websites, electronic voting machines and more.

  119. Sleipner A by RallyDriver · · Score: 3, Informative

    On a slightly different tack - the
    Sleipner A oil platform sank because of a bad design, caused by inaccurate computer based modelling (using an FEA tool inappropriately). In this case it was the data not the software.

  120. Kuberick never saw this one coming! by donscarletti · · Score: 2
    If windows became self aware I would assume that they may get a humanitarian attitude and shut itself down without request regually to save us the pain of using it

    Hang on... My win98 box already does that! And to think, I critisise mircrosoft for shody coding!

    Come to think of it... I wondered what that big rectangular prismatic monilith was doing next to my box, next thing I know it will become a star child.

    --
    When Argumentum ad Hominem falls short, try Argumentum ad Matrem
  121. Most important thing by mnordstr · · Score: 2

    Just remember that if (a = b) is not the same as if (a == b)... Every time I write that wrong it takes me hours to find the damn bug, cause it might not appear immediately.

    1. Re:Most important thing by mnordstr · · Score: 2

      Why would they issue a warning? I often assign variables within if-clauses. Makes much cleaner code.

    2. Re:Most important thing by Frobnicator · · Score: 2
      Many C++ compilers issue errors (things that make it impossible to compile), warnings (things that you may have done wrong) and remarks (things you should be aware of), especially when you turn on all warnings.

      Good warnings and remarks include 'operations performed in undefined order' and 'assignment occurs where comparison is expected'.

      The first catches the form

      *ptr++,*ptr++
      and the second catches the form
      if(a=b)
      . The compiler shouldn't complain about
      if( (ptr=fopen(...) == NULL)
      , since it DOES have a comparison. In the first example you have problems because of equal precidence and no defined order (RTL or LTR). The second example may work on some compilers and CPU's, like the Intel x86 would assume 'true' if b were non-zero, but would not work elsewhere (M86k, for example).

      The point of these warnings and remarks isn't to tell you that you did something wrong (that's an error) but to tell you that your code may not work as expected on all machines.

      --
      //TODO: Think of witty sig statement
  122. JAS by Jhan · · Score: 2

    The SAAB JAS-39 Griffon crash you mention was in fact caused by the pilot not being warned about "pilot induced oscillations" (though there was a crash in testing that was attributed to the control systems). Basically, the plane started to weer left, the pilot quickly compensated as did the control system, leading to overcompensation. So, the pilot compensated back the other way, as did the plane...

    Rinse, lather, repeat. End result: plane rears up, suffer complete loss of air speed, falls like a brick into a crowd of about 200 000 spectators (this was an airshow over central Stockholm!), and through divine intervention happens to hit to one empty spot in a sea of people.

    Interesting fact 1: footage shows the plane stabilizing back down into a correct flight attitude once the pilot ejected. Not much use without airspeed, though.

    Interesting fact 2: SAABs division for Flight Control (presumably the same guys who did the Griffon control systems) also programmed the flight control systems for the Ariadne...

    Interesting (or at least humurous) fact 3: This is the monument marking the spot where JAS crashed.

    --

    I choose to remain celibate, like my father and his father before him.

  123. Re:OT: Scuds and Patriot missile defenses by Kynde · · Score: 2

    Bottom line: that stuff about the floating point error in the PAC-2 system looks neat on paper but it's not at all clear that the faulty calculation was responsible for the loss of life.

    Dead on! There's been loads of evidence that NONE of the patriots EVER hit a signle scud. Luckily the scuds had problems of their own with some wing design when going neg-G or something,
    I can't remember what it was, but anyway quite often they just simply blew up when decending towards a target.

    Even I remember Bush the elder boasting (numbers may be inaccurate, but gap was 1) "37 missiles engaged, 36 intercepted". Naturally that raised a few questions about what was this "intercepted" as none of the Patriots ever hit a scud. And...
    I saw this rather hillarious documentary about
    all this Patriot fuzz where some US general telling in court what they ment with "intercepted". He said that "intercepted" meant only that at SOME point the patriot's flight path / trajectory crosses that of the scud's.

    --
    1 Earth is warming, 2 It's us, 3 it's royally bad, 4 we need to take action NOW
  124. Re:Nextance by King+of+the+World · · Score: 2

    That's fucking cool. Any more information?

  125. Typos by pommiekiwifruit · · Score: 2

    My university used to offer distance learning for computers. The students would post their programs in, secretaries would type them in, and the listings of compiler errors would be posted back to the students. At 2-3 weeks turnaround, the students were inclined to think before coding a bit more, and hoped the typists were good... Soon after I left, the university made having access to a PC a requirement for the course, taking all the fun out of it :-)

  126. Re:OT: Scuds and Patriot missile defenses by trveler · · Score: 2, Informative
    Dead on! There's been loads of evidence that NONE of the patriots EVER hit a signle scud

    Of course they didn't. The patriot was specifically designed to detonate itself CLOSE TO the offending missile and, hopefully, in the process destroy the latter. This is, in fact, what happened: Tel Aviv and surrounding areas were rained on by falling scud parts. These were pieces of the scuds intercepted by the Patriots.

    The problem of intercepting a moving target is difficult, but it becomes much easier when the goal is to simply get "near enough" to disable it with an explosion.

    --
    ... is whot bwings os tugevza tsuzay.
  127. a semicolon worth about $40K by one_who_uses_unix · · Score: 2, Interesting

    Almost a decade ago when I worked for a differect credit card company that shall remain nameless, a member of my team (I was the lead) introduced a defect that was responsible for about $40K is mis-applied credits. I am not sure whether we ever got the money back.

    The program was written in C, and he had changed a do-while loop to a for loop, in editing he had kept the line that contained the original condition (including the trailing semicolon). As many of you C-ers out there are aware, a semicolon following a for() statement will not execute the subsequent code block in the loop!

    A very memorable lesson in the value of lint and thorough regression testing!

    This may not qualify as a disaster, but I distinctly remember having to give an account for the defect to the corporate controller with an aufience of grand and exalted poobahs. She was a very intolerant and technically ignorant person that actually intimated that this had been done maliciously.

    --
    KK4SFV
  128. My person #1 by Nailer · · Score: 2

    CDE

    Cheers :)

  129. The REAL site by Coppit · · Score: 2

    Sigh... If someone is going to rip all the pictures, I wish they'd at least give proper attribution. Visit http://www.windowscrash.com for the original collection. I always give attribution.

  130. Re:Challenger by pz · · Score: 2

    Indeed, there was a *slew* (pun intended) of timing problems with the initial software to run the shuttles (does anyone else remember the frequency of early launches scrubbed due to software?). From my understanding, the bugs were traced to race conditions amongst the (then large) array of onboard and ground computers.

    --

    Put my fist through my alarm clock with its ding-dong death inside my ear. - The Blackjacks.
  131. Look out.... by r_j_prahad · · Score: 3, Funny

    Hey we sold you this! Top of the range! But it's broken, even before we sold it to you. If you pay us £500000 we'll fix them all, but if you don't your blood will boil and your head will explode, all your kids will die of pestilence, your wife will sleep around, your plane will try to reach the moon and all your elevators are belong to us.

    Careful. Quoting from a Microsoft EULA like that without proper attribution could get you tossed into jail for a DMCA violation, sport.

  132. Re:In fact this has raised some interesting resear by Frobnicator · · Score: 2
    systems whose functioning could decide the life of death of people can not tolerate any kind of misbehavior; systems like ... airplane controllers
    Um, actually the control decks inside most jets, including military jets, routinely crash. Air-traffic control towers, especially the old ones, also black out more often than most people think.

    In talking with programmers and fighter pilots at Hill AFB, I learned that the pilots usually have to restart some computer systems several times every flight.

    frob.

    --
    //TODO: Think of witty sig statement
  133. SImilar post by Embedded+Geek · · Score: 2

    Check out http://ask.slashdot.org/article.pl?sid=01/10/31/19 27246&mode=thread&tid=156 for this same discussion with an emphasis on embedded computing.

    --

    "Prepare for the worst - hope for the best."

  134. Re:HAL? by greenrd · · Score: 2
    It's not an oxymoron at all. You only think it is because the definition of "algorithm" you are using is a wrong one, frequently given to beginning students in computer science. Heuristic algorithms exist.