Slashdot Mirror


The 25-Year-Old BSD Bug

sproketboy writes with news that a developer named Marc Balmer has recently fixed a bug in a bit of BSD code which is roughly 25 years old. In addition to the OSnews summary, you can read Balmer's comments and a technical description of the bug. "This code will not work as expected when seeking to the second entry of a block where the first has been deleted: seekdir() calls readdir() which happily skips the first entry (it has inode set to zero), and advance to the second entry. When the user now calls readdir() to read the directory entry to which he just seekdir()ed, he does not get the second entry but the third. Much to my surprise I not only found this problem in all other BSDs or BSD derived systems like Mac OS X, but also in very old BSD versions. I first checked 4.4BSD Lite 2, and Otto confirmed it is also in 4.2BSD. The bug has been around for roughly 25 years or more."

23 of 213 comments (clear)

  1. more proof by Anonymous Coward · · Score: 5, Funny

    ...of the superiority of Microsoft.

    1. Re:more proof by rubycodez · · Score: 3, Funny

      that's funny, since Microsoft has used gobs of BSD code over the years

    2. Re:more proof by kabloom · · Score: 2, Funny

      Of course. Because they keep 25 year old bugs as compatibility features, while we break compatibility and fix them.

  2. the developers probably knew about it by Anonymous Coward · · Score: 5, Funny

    but they had more important things to do. At least until Balmer started throwing chairs.

    1. Re:the developers probably knew about it by Cheapy · · Score: 4, Funny

      At that point they had far more important things to do.

      Such as dodging chairs.

      --
      Would you kindly mod me +1 insightful?
  3. Re:Wait... Would you ever hit this? by ivan256 · · Score: 4, Funny

    Of course, now that I've R'd the FA, I understand that it's the first entry in the block (of which a directory with a sufficient number of files would have multiple), and not the first entry in the directory. Kindly ignore my previous response... Nothing to see here...

  4. Re:Wait... Would you ever hit this? by youthoftoday · · Score: 2, Funny

    an existential philosopher turned empiricist perhaps?

    --
    -1 not first post
  5. See? SEE? by Frosty+Piss · · Score: 4, Funny
    See? See?

    This is the power of Open Source!

    With all those eyes looking at the code, stuff like this gets ID'd and fixed LICKITY SPLIT!

    (runs and hides)

    --
    If you want news from today, you have to come back tomorrow.
    1. Re:See? SEE? by driftingwalrus · · Score: 2, Funny

      In comparison, Microsoft has been around for what... 20 years? And who knows what bugs in Windows are there, lurking, just waiting to bite us? Microsoft was founded in 1988?!
      --
      Paul Anderson
      "I drank WHAT?!" -- Socrates
  6. Trac by extirpater · · Score: 5, Funny

    Bug tracking software missed this because it's bug #1. lol.

    1. Re:Trac by chooks · · Score: 4, Funny

      I program in FORTRAN, you insensitive clod!

      --
      -- The Genesis project? What's that?
  7. Would this be a "Critical" or "Important?" by FurtiveGlancer · · Score: 2, Funny

    If no one has cared enough to fix it for 25 years, I'm guessing this should be rated as "inconsequential."

    Must have been a really slow news day at OSNews.

    --
    Invenio via vel creo
  8. BSD is Dying! by Doc+Ruby · · Score: 4, Funny

    If you define BSD as a collection of bugs, this story proves that BSD is dying.

    --

    --
    make install -not war

  9. After this long by Hawkeye477 · · Score: 4, Funny

    After this long would this not be considered a feature? :)

    --
    My Web Site - www.ocean-liners.com
  10. bug blassification, side effects and Insults! by JonTurner · · Score: 4, Funny

    3 thoughts on this:

    1. I think this bug would be classified "archeological".

    2. The question now is what happens to the Samba work-around patches. Now that the bug is fixed, do the patches cause a side-effect (i.e. "a new bug")?

    3. This gives rise to a new meme of nerd insults. "You call yourself a programmer? Why I've fixed bugs older than you!" Of course, only one man is entitled to use that line.

  11. Re:BSD is Dying! by MillionthMonkey · · Score: 3, Funny

    No, this story proves that BSD is dying because there was a bug in it and no complaints were heard for 25 years.

  12. Re:Old Code by gweihir · · Score: 2, Funny

    Indeed. Not surptisingly nobody was really interessted.

    --
    Most ACs are not even worth the keystrokes to insult them. Be generically insulted by this and ignored otherwise.
  13. Re:Many eyes make bugs shallow... by ahem · · Score: 1, Funny
    My parent said:


    (In other words, I believe in all things moderation and think zealotry is absurd and I probably shouldn't be confused with an open source zealot or even an advocate.)


    Sounds like you're a bit of a moderation zealot...

    --
    Not A Sig
  14. Re:This couldn't have happened with Linux... by AlgorithMan · · Score: 2, Funny

    except for the code parts from Xenix (which is 28 years old) that was renamed to "SCO Unix" in 1989, which was - as we all know - stolen and illegally put completely into linux... (we have a suitcase full of evidence!!!)

    --
    The MAFIAA is a bunch of mindless jerks who will be the first up against the wall when the revolution comes
  15. Re:This couldn't have happened with Linux... by driftingwalrus · · Score: 2, Funny

    except for the code parts from Xenix (which is 28 years old) that was renamed to "SCO Unix" in 1989, which was - as we all know - stolen and illegally put completely into linux... (we have a suitcase full of evidence!!!) And, no, you may not look within the Evidentiary Suitcase!
    --
    Paul Anderson
    "I drank WHAT?!" -- Socrates
  16. Re:Many eyes make bugs shallow... by auric_dude · · Score: 4, Funny

    Surly a bug this old should be reclassified as a scrab beetle?

  17. Re:Many eyes make bugs shallow... by joshv · · Score: 5, Funny

    That's "scarab" beetle, and don't call me Surly.

  18. Re:BSD is Dying! by Anonymous Coward · · Score: 1, Funny

    But complaints are heard NOW !
    What does this mean ?
    Resurrection ?