Slashdot Mirror


What is the Best Bug-as-a-Feature?

Bat Country wonders: "The workflow system, at the department I develop for, was hand-coded by my predecessor in a rather short amount of time, resulting in somewhat unreadable code with a number of interesting 'features.' When I took over maintenance of the code base, I started patching bugs and cleaning up the code in preparation for a new set of features. After I was done, I got a pile of complaints about features that had disappeared, which turned out to be caused by the bugs in the code. So, that leads me to ask: what is your favorite bug that you either can't live without or makes your life easier?"

52 of 861 comments (clear)

  1. The best by Anonymous Coward · · Score: 5, Funny

    Windows Genuine Advantage

    1. Re:The best by TerranFury · · Score: 5, Funny

      >Windows Genuine Advantage

      No, that's a feature that acts like a bug. ;-)

  2. 404 by Jordan+Catalano · · Score: 5, Funny

    My favorite:

    "404 File Not Found
    The requested URL (askslashdot/07/03/30/0116246.shtml) was not found."


    That little error saved me from having to read a bunch of replies.

    1. Re:404 by Anonymous Coward · · Score: 5, Funny

      From DOS:

      Keyboard not found.
      Press to continue.

  3. Whenever I boot my windows machine by antifoidulus · · Score: 5, Funny

    it pops up all sorts of porn pages I never even asked for!

    1. Re:Whenever I boot my windows machine by nick_davison · · Score: 5, Funny

      Not sure it's my favorite... but props to Microsoft for having the balls to market Windows ME as one giant bug-as-a-feature.

  4. rm by KillerCow · · Score: 5, Funny

    rm * .old

    1. Re:rm by LihTox · · Score: 5, Informative

      One way to lessen the chance of mistakes when using "rm" is to always use "ls" in place of "rm" first, then when the list of files looks right, replace the "ls" with "rm".
      I have a script "lrm" which does this: ls the files, ask for confirmation, and then delete (if confirmed).

    2. Re:rm by hal-j · · Score: 5, Informative

      ug. You should always make a file named "-i" in important directories to prevent this. That way when you do something dumb, like "rm * .old" the "-i" gets seen as a command line switch to "rm" and you get asked for confirmation.

      --

      -Hal
    3. Re:rm by cswiger · · Score: 5, Insightful

      Nice. Perhaps having rm look at a filename called "-i" and interpret that as a command-line flag is probably the best "bug as feature" offered so far. :-)

      --
      "The human race's favorite method for being in control of the facts is to ignore them." -Celia Green
  5. The money lender bug in Taipan by Anonymous Coward · · Score: 5, Interesting
    Great game! Here.

    The guy who wrote the Windows version actually allows you to turn it on! Overpay the money lender and your money grows at 10% a month! The bug was in the original Apple 2 version and then subsequent ports, like the one to Palm, removed it.

  6. buffer overflow by virtualXTC · · Score: 5, Insightful

    buffer overflows are great - they allow you to get root on all sorts of devices that some bastard tried to lock you out of.

  7. ModeX graphics? Buffer overflows? by Kufat · · Score: 5, Insightful

    The famous undocmented 320x240 VGA video mode, pre-VESA, and other tweaked VGA modes.

    I've heard the 6502 (or, more specifically, RP2A03) had some useful undocumented opcodes. I think they weren't intentional, so they might count.

    On the software side...how about exploitable buffer overflows on the Xbox and PSP to enable execution of arbitrary code?

  8. Not a software bug but a design flaw by jimicus · · Score: 5, Funny

    Not a software bug but a design flaw in a car I used to own.

    The Vauxhall Astra Mk.2 (Opel Kadett E) had a design flaw in the steering column. Specifically, the steering column was rather weaker than the steering lock.

    The upshot of it was when some little scrote decided to try and steal my car (this was way before cars were fitted with immobilisers), when he tried to break the steering lock the steering column snapped and the steering wheel came straight off in his hand.

  9. Linux by stratjakt · · Score: 5, Funny

    It was supposed to be a unix clone, but actually came out useful in the end.

    --
    I don't need no instructions to know how to rock!!!!
  10. "Subscribe to view" pages visible to Googlebot. by Behrooz · · Score: 5, Interesting

    "Subscribe to view" webpages that are still visible to users browsing as GoogleBot.
     
      User agent switcher extension + Browse pretending to be GoogleBot = Annoying "register/pay to see me!" pages go away. I have no idea how many sites it works on now, but I think it still gets into a lot of archived newspaper articles and suchlike.

    --
    "We have to go forth and crush every world view that doesn't believe in tolerance and free speech." - David Brin
    1. Re:"Subscribe to view" pages visible to Googlebot. by apathy+maybe · · Score: 5, Interesting

      Personally I use the modify headers extension to do the same thing. But I have "I am not a Googlebot/2.1", rather then the full Googlebot string. But I sometimes come across pages that say something along the lines of "You appear to be pretending to be a major search engine when you are not", for those pages I change the header to "I DIDN'T CLAIM TO BE A MAJOR FUCKING SEARCH ENGINE".

      Of course, both are examples of why you shouldn't use "User-Agent" to try and detect what browser or bot is using your webpage. The first allows "illegitimate" users access, and the second blocks legitimate users.

      In fact, you shouldn't trust headers for anything unless you have a secure session. To control access to your webpage to robots, use ROBOTS.TXT or a meta tag, and to control access to other users, password protect. But the trouble is that sites are trying to eat their cake (be crawled and indexed) and have it too (control access to ordinary users).

      --
      I wank in the shower.
  11. Skiing in Starsiege: Tribes by Manatra · · Score: 5, Interesting

    For me, the physics bug that enabled "skiing" in Starsiege: Tribes was the best bug as a feature. It's a bug that became a key defining point of the series.

    A description of skiing is here.

  12. My Karma isn't low enough... by EWIPlayer · · Score: 5, Funny

    Sendmail

    --
    This sig used to be really funny...
  13. Perl versus Python by goombah99 · · Score: 5, Interesting

    Perl is perhaps one large bug that works so well that it's a great feature. For example in perl when you compare two things you get an answer that is stable no matter what the items are. In python you can't and even when you can the answer is not stable. The order of a sorted list can depend on it's orginal ordering! You cant compare floats to Complex numbers but you can compare strings to complex numbers. Sets are grouped by equality not identity so 4.0 and 4 are the same thing for a set. Which one stays and which one get added to the set depends on the ordering of the lists that were put in the set.
    it's nuts. And the origin of the nutty ness is an obsessive desire not to have default behaviours. Whereas perl is all default behaviours. In the end perl does what you really meant, and python does what you told it.

    in case you think I'm python bashing google what python evangelist david mertz says about python warts.

    --
    Some drink at the fountain of knowledge. Others just gargle.
    1. Re:Perl versus Python by badfish99 · · Score: 5, Funny

      As a mathematician, I'm always surprised by people who think that 4 and 4.0 should not be equal.

    2. Re:Perl versus Python by zappepcs · · Score: 5, Funny

      As a mathematician, I'm always surprised by people who think that 4 and 4.0 should not be equal. Well, one is just a number, the other is the SP version identifier that tells you when its safe to upgrade to a new version of windows.
    3. Re:Perl versus Python by rootofevil · · Score: 5, Funny

      As a programmer, I'm always surprised by mathematicians who think that 4 and 4.0 should be equal.

      --
      turn up the jukebox and tell me a lie
    4. Re:Perl versus Python by IMarvinTPA · · Score: 5, Informative

      As a programmer, I'm amused by both.
      4 and 4.0 are equal by value but not in precision. 4 has one significant digit, while 4.0 has two. This is important because multiplying it by 1200 (which has two significant digits), yields two scientifically different answers. 4*1200 yields 5000 (5 x 10^3) while 4.0*1200 yields 4800 (4.8 x 10^3).

      So, in the end, it depends, just like everything else.

      IMarv

    5. Re:Perl versus Python by zippthorne · · Score: 5, Insightful

      As an engineer, I'm also amused.

      4.0 is definitely a 2 sig dig number, but 4 could be 1 sig dig or it could be "exact." You wouldn't say the 2 in 2*pi*r is only one significant digit, would you? Of course not, it would render any precision in pi or r meaningless.

      Also, 1200 could have 2, 4, or be exact depending on the context. It's best to always use a notation that includes the fraction mark for non-exact quantities.

      --
      Can you be Even More Awesome?!
    6. Re:Perl versus Python by Eicosane · · Score: 5, Interesting

      The broke broke piece of crap he is using is found here: http://en.wikipedia.org/wiki/Significant_figures

      The rule in his example is:

      4(1 sig fig) * 1200 (2 sig figs) = 5000 (1 sig fig & rounded up since 4800 is closer to 5000 than 4000)

      4.0(2 sig figs) * 1200 (2 sig figs) = 4800 (2 sig figs)

      As far as software using sig figs, well...if you are using real world measurements, you should be using sig figs. You can not tell from a general ruler if you are at 0.526876". You can tell that you are between 0.5" and 0.6", so you say 0.56" Past two sig figs, you would really be pulling that out of your bum. Therefore in all the calulations that use the 0.56", you can only have a max of two sig figs in the result. Anything more would rely on you knowing up to say 3+ sig figs in all the numbers used to get the result.

      Point: The number of sig figs you have makes a difference in your result. Sig figs are generally used with real world measurement systems. Computer calculations may not fall into this category, but it would depend.

    7. Re:Perl versus Python by twistedsymphony · · Score: 5, Informative

      Heh, thank you. As an engineer I was also going to make this point, I'm glad I'm not the only one who realizes that the number of 0s after a decimal carries with it some hefty implications in the manufacturing and engineering realm. Working for a bearing manufacturer I can tell you that the difference between a part with a diameter of 4.00cm and a part with a diameter of 4.00000cm is a few hundred dollars.

    8. Re:Perl versus Python by Zabu · · Score: 5, Funny

      As a hooker, I can tell you that anything with a diameter of 4.00cm or 4.00000cm is always a few hundred dollars

      --
      It's all good.
  14. Nameless Firefox Bookmarks by Headcase88 · · Score: 5, Interesting

    This barely qualifies as bug, more on an inconsistency, but...

    In Firefox, when you make a new bookmark, you need to give it a name. FF grays-out the OK button until you do. This implies that bookmarks weren't meant to be nameless. Here's the "bug": if you go to rename the bookmark, you can make it blank and the OK button remains active.

    So what good is a nameless bookmark? I place all of my frequently-visited bookmarks on the menu bar, to the right of the menus (it's normally wasted space). I have over 25 bookmarks marks there, and if they had names (even one-letter names), they wouldn't fit by a long-shot. The favicons are all I need, so this ability is pretty helpful, and isn't likely to be fixed.

    --
    "When the atomic bomb goes off there's devastation...but when the atomic bong goes off there's celebraaaaation!"
    1. Re:Nameless Firefox Bookmarks by casualsax3 · · Score: 5, Informative
      Combine this with Favicon Picker 2 - a plugin that lets you set your own favicons for the bookmarks and you can have a pretty toolbar:

      https://addons.mozilla.org/en-US/firefox/addon/3 176

  15. Second Life camera by LinuxHam · · Score: 5, Informative

    In Second Life, if you zoom your camera up to a wall, you will normally just zoom in to see closer detail of the wall. But once up against the wall, swing the camera around to the side, and you can "back your way in" through the wall. Release and click again, and the camera is now "mounted" inside the house. Its so much fun to watch people inside their homes, especially when your avatar is prevented from entering the property. Some even pay for a little orb that still tells them that no one is detected within 30m. Its fun because the clicks still work, too, like right clicking on someone and IM'ing them.. to tell them that you liked their last outfit more than this one, or the couch looked better in the other corner.. really freaks them out. That is definitely a "bug" (or feature) I couldn't live without... not in SL at least.

    --
    Intelligent Life on Earth
    1. Re:Second Life camera by Mike+Micelli · · Score: 5, Funny

      I don't know what's creepier, the fact that he's a virtual peeping Tom, or that he has a Second Life account.

  16. VW close the sunroof bug by Ancient_Hacker · · Score: 5, Interesting

    There were two oversights in the older VW's electrical system:

    (1) You needed the key to close the sunroof.

    (2) But.. a sneak path in the headlight wiring meant you could instead just turn on the headlights and pull on the high-beam flasher (on the turn-signal lever). Enough electricity would flow backwards through the sneak path to operate the sunroof motor. ... ooops, that's more hardware than software. sorry.

    1. Re:VW close the sunroof bug by sconeu · · Score: 5, Funny

      Back around '79 or so, a buddy of mine had a VW Bug with a different bug in it. It had some kind of short, so that if you touched the steering column with another key on the same ring as the one in the ignition, it sounded the horn.

      --
      General Relativity: Space-time tells matter where to go; Matter tells space-time what shape to be.
  17. telnet -l "-froot" by mmell · · Score: 5, Interesting
    More than once, I've rescued SUN servers where somebody hosed up PAM (or even /etc/passwd /etc/shadow) by breaking in this way.

    A related "bug" is the ability to boot Linux "fail safe" with the notation 'initrd=/bin/sh' on the boot line. As MVS would say, "Thou art God!"

  18. One of my favorites, from console gaming... by foxtrot · · Score: 5, Funny
    From the Blue Sky Rangers website:

    FUN FACT: While testing the game, Bill came across a bug: every now and then, the game would, seemingly at random, hyperspace you. He and his boss, Mike Minkoff, went over the code with a fine-tooth comb before realizing what the problem was: the Intellivision hand controllers encode button presses in such a way that an action (side) key pressed at the same time as particular directions on the disc will be interpreted instead as a numeric key being pressed. There was no software way around this; shooting while moving would occasionally be interpreted as pressing 9 -- the hyperspace button.

    After several days of puzzling over a solution, the bug was ultimately "fixed" by including the following note in the instruction manual:

    "Every once in a while, your space hunter will move near a 'black hole,' and the computer will automatically put him into HYPERSPACE. This will cost you the same number of points as if you had pressed the HYPERSPACE key yourself. On the other hand, it will save your hunter."

    This led to an axiom frequently heard around Mattel: If you document it, it's not a bug -- it's a feature. Anytime a game in development crashed -- no matter how badly or bizarrely -- witnesses would invariably turn to the frustrated programmer, shrug, and calmly say "document it."


    -JDF
  19. Quake2 strafe jumping by pak9rabid · · Score: 5, Interesting

    I'd have to go with strafe jumping in Quake2. What better way to get the 100 health pack in q2dm1 w/out having to sacrifice precious life w/a rocket jump. w00t!

  20. I dunno by Chris+Burke · · Score: 5, Interesting

    In high school I wrote a program for a physics project that showed electromagnetic wave propagation and interference. Nothing that special, the end result was basically a pretty screensaver with some relevence to physics. In light of that, one of the features I added was a pull-down menu for selecting what color you wanted to use. This was back in the VGA days with a 256 color pallette and manually poking the VGA frame buffer. Due to an off-by-one error in calculating the bounding box of the pull down menu, it was possible to select an invalid index for the color, so instead of selecting a row of the pallette with my nice color gradients set up, it was one of basically random colors. The result was really trippy, so when I discovered the bug, I decided to leave it in. At the open house where my program was running through a projector some bystander discovered the bug and thought it was indeed cool and trippy.

    That's about it. Most of my bugs just break shit. :)

    --

    The enemies of Democracy are
    1. Re:I dunno by DedWisdom · · Score: 5, Interesting

      I had a similar experience when I was younger. I was learning C++ graphics programing on windows (95), and I was trying to simply make a static screen that showed a monochrome random gradient. Well I had some bug in my algorithm, and the screen went crazy, showing this massive arch with these beautiful repeating patterns within the arc, but random static outside of the arc. Okay, weird, changed some +s and some -s, and got it working, fine.

      Years later I started learning about chaos theory and fractals, and something in my head clicked. I instantly had a vivid memory of that bugged screen and realized that it was a fractal. I had accidentally created a rather complex fractal. Blew my mind clean up.

  21. If You Can't Fix It, Feature It by adavies42 · · Score: 5, Funny

    A couple of friends of mine in high school CS wrote a Tetris clone for class, but they had a bug where occasionally, blocks would spontaneously appear or disappear. They couldn't figure out how to fix it, so they claimed (in the docs, not to the teacher) that they had AI adjusting the difficulty to match the players' skills.

    --
    Media that can be recorded and distributed can be recorded and distributed.
    -kfg
  22. Date library by isj · · Score: 5, Interesting

    Not me, but one of my colleagues took over maintenance of a system which included a date library. The dates and times were treated as floating-point, leading to much conversion and adjustinging. Eg. 12:30 was 12.30, so when adding 40 minutes getting 12.70, and then adjusting that to 13.10, No input validation was done. My colleague tried cleaning that up, but then got complaints from the users. They had discovered the "features" and were now using eg:
        January -6th
    meaning december 24th the previous year.

    My colleague had to remove the input validation again and keep the features.

  23. Re:Not sure if this is a bug... but by badfish99 · · Score: 5, Informative

    I think you're describing the Unix feature that you can replace an executable file while it is in use; the program that is using it will continue to see the deleted version of the file, and new programs will see the new version.

    That's not a bug, it's a feature. It's the reason why you don't have to reboot Unix machines after a software update, as you do for Windows.

  24. Re:ModeX graphics? Buffer overflows? by greed · · Score: 5, Informative

    The Rockwell 6502 was a hard-wired processor; there was no "illegal instruction" check. So, any bit-patter you loaded as an instruction would try to do something. Sometimes, because of the internal open-collector busses, you'd get neat "something OR something" that wouldn't normally happen.

    Here's the I'm Feeling Lucky hit on it: 6502 Opcodes.

    Thing is, the results might vary from implementation to implementation. So they might not work usefully on the 6510, which was otherwise a 6502 with an I/O register at $0000-$0001.

  25. BMW MINI CD player as burglar alarm trigger by mccalli · · Score: 5, Interesting

    This was a fun one. I had one of the first MINI Coopers, and ordered it with the CD player ('Wave' option? Seem to remember that name). I forget exactly when I took possession of the car, but I think it was around September or October. Something like that.

    Anyway, at roughly 2:00am every morning the car alarm would go off, much to the 'delight' of myself, my neighbours and everyone in the vicinity. I'd go out, stop the alarm and then try to sleep. After which it would go off again, every hour or so.As if we weren't losing enough sleep with our then new-born daughter.

    The cause was eventually traced, and it's one of the more obscure bugs I've ever come across. Turns out that the car had a low-power rather than completely off mode, and the CD player retained a tiny amount of power going through it. When it was cold, say at 2:00am on an autumn morning for example, the CD player would detect that condensation was forming and would wake up the car's electrics to create some warmth to clear the condensation. This is deliberate, and quite clever I think.

    However, the problem came in that it did this too often and started causing a big drop in battery reserves. The security system interpreted this as an attempt to start the car by hotwiring it, and so the alarm would be set off. I'd come out to switch it off, then go back to bed on the cold autumn night at which point condensation would form again, the CD player would switch itself on again, the security system would sound the alarm again and a bleary-eyed version of me would stagger out to turn the alarm off again. At which point condensation would start to form again and...

    Bah.

    Cheers,
    Ian

  26. Re:Personally, I like... Actually... by Anonymous Coward · · Score: 5, Funny

    Guess he didn't get the memo...

  27. Re:Yes by pilgrim23 · · Score: 5, Insightful

    though Windows does this with flying (Blue) colors, I would nominate DRM. it screwed music and spurred development of P2P

    --
    - Minutus cantorum, minutus balorum, minutus carborata descendum pantorum.
  28. Elevator bug by Col.+Klink+(retired) · · Score: 5, Funny

    My college dorm elevator had bug/feature. If you briefly pulled and then reset the "emergency stop" button as the elevator was stopping at a floor it would skip that floor. I lived on the third floor and we routinely skipped folks on the second floor waiting for the elevator. This was a great time saving feature (except, of course, when the fourth floor residents would skip the third floor).

    The only misfeature of this bug was that the bell would briefly ring alerting those waiting that they had been skipped. One time, some second floor residents heard us skip their floor and we heard them running down after us. We skipped the lobby and went back to the fourth floor. We could have kept it going all night if they tried chasing us, but they didn't. Anyone too lazy to walk to the lobby from the second floor sure isn't going to race up to the fourth floor.

    Eventually, they upgraded the elevator and we had to stop for the second floor whenever they wanted.

    --

    -- Don't Tase me, bro!

  29. Ah, Units by EgoWumpus · · Score: 5, Insightful

    As a programmer, and a former student in at least one other math-related discipline, it's clear to me that 4 and 4.0 are equal. But they are not equivalent. Knowing 'Accuracy', 'Precision' and 'Proper Use Of Units' like the back of your hand will help you in any career.

    --

    [Ego]out

  30. Software developer here by hotsauce · · Score: 5, Funny

    As a software developer, I am amused by you all. "4" is quite obviously a string, and can not be compared with 4.0 without a set of business rules.

    Multiplying it in silly ways will not help you either. :)

    1. Re:Software developer here by jimbojw · · Score: 5, Funny
      In case you were wondering, "4" * 4.0 yields:
      • "4444" in Ruby
      • 16 in PHP and JavaScript
      • Exception:The operator * is undefined for the argument type(s) String, double in Java
      ... And "4" + 4.0 yields
      • TypeError: can't convert Float into String in Ruby
      • 8 in PHP
      • 44 in JavaScript
      • "44.0" in Java
      Which I just find amusing all around.
    2. Re:Software developer here by cjjjer · · Score: 5, Funny

      As a project manager I am amused by how much time has been spend talking about this. Clearly developers need more work and shorter deadlines.

  31. Automotive Bug by wramsdel · · Score: 5, Informative

    I always enjoyed cars with "child-safe rear windows" which don't roll all the way down. In many cases, this is because the rear wheel well cuts into the door, reducing the space available for the window.