Stories
Slash Boxes
Comments

News for nerds, stuff that matters

Slashdot Log In

Log In

Create Account  |  Retrieve Password

Blue Screen of Death for Mac OS X

Posted by ScuttleMonkey on Mon Sep 11, 2006 06:07 PM
from the creative-wastes-of-time dept.
An anonymous reader writes "Possibly nothing in the OS world has as much of a bad rap as the infamous BSOD (blue screen of death) in Microsoft Windows. On the other hand Apple hides the ugly kernel panics behind a nice looking GUI which only tells you its time to restart your dead system. Interestingly Mac OS X kernel has a secret API which lets you decide what your kernel panics are going to look like! In this Mac OS X Internals article Amit Singh explains how to use this API. Apparently you can upload custom panic images into the kernel and there's even a way to test these images by causing a fake panic. The article also shows the ultimate joke is to upload an actual BSOD image for authentic Windows looking panics right inside of OS X."
+ -
story
This discussion has been archived. No new comments can be posted.
The Fine Print: The following comments are owned by whoever posted them. We are not responsible for them in any way.
 Full
 Abbreviated
 Hidden
More
Loading... please wait.
  • by ackthpt (218170) * on Monday September 11 2006, @06:09PM (#16085345) Homepage Journal

    It's not like Microsoft invented it, either. I remember these [wikipedia.org] quite unfondly. Before that I had a frozen screen on a C64. And before that I had stopped lights on the PDP-11 display. And before that we had random characters all over the screen of Ohio Scientific (OSI) computers.

    But Microsoft is widely credited with perfecting the BSoD and giving it fame.

    A system crash with a tasteful little box can be as easily dispised as all the the preceding. I suppose, like everything Apple is doing these days, they've given it a certain panache and now everybody will want one.

    • Keep it simple (Score:4, Insightful)

      by EmbeddedJanitor (597831) on Monday September 11 2006, @06:24PM (#16085442)
      If you have an unstable system (BSOD-worthy), then it is probably best to rely on as few system resources as possible. THis includes GUIs etc. That's why a simple text-based BSOD or oops handler is a better idea than something that tries to do a whole bunch of cute graphics etc (which relies on a whole lot more hardware & software to be working properly).
      • by Sqwubbsy (723014) on Monday September 11 2006, @06:57PM (#16085632) Homepage Journal
        THis includes GUIs etc. That's why a simple text-based BSOD or oops handler is a better idea than something that tries to do a whole bunch of cute graphics etc (which relies on a whole lot more hardware & software to be working properly).

        You are so not a Mac owner based on these statements.
        • Re:Keep it simple (Score:4, Informative)

          by blaster (24183) on Monday September 11 2006, @08:48PM (#16086073)
          The graphical version takes slightly fewer resources. You have to run a single buffer through an RLE decompression routine directly out into a linear mapped framebuffer. To display text you actually have to use all of the console code. Remember, there is no hardware console, so you have to actually do all the text element positioning in software, and the graphics card is in exactly the same mode either way.

          It does not take appreciably more resources either way, and both code paths are fairly simple and well tested.
        • Re:Keep it simple (Score:5, Interesting)

          by Jahz (831343) on Monday September 11 2006, @08:56PM (#16086117) Homepage Journal
          Keep it simple AND keep it informative. A real BSOD will include information about the stop code and arguments at the time of death. If the system knows which driver caused the crash it will tell you this as well.
          The Mac panic screen not only takes more resources to display but they tell you far less. "Please restart" in 23 different languages is not helpful. The 10.0 and 10.1 version looked much better.

          Obviously you are NOT ready for the Mac. Come see the light, friend.

          Do you really think that Apple have decided error codes and detailed crash reports are not important?? No, of course they have not. There are two reasons Apple does this.

          1) The truth is that the infamous blue page of kernel farts that windows spews out are only to technicians or sysadmins. The home user, and in fact, the power users, can do nothing with it. Nothing, of course, except Google for the stop code and hope Microsoft has a techhelp article on what it means. You can reply to this and say that

          STOP: 0x0000008E (c0000005, bf875fc3, f07bcd48, 00000000)
          KERNEL_MODE_EXCEPTION_NOT_HANDLED

          makes perfect sense to you... but you'd be lying. I know that the relevent part is 8E but 99% of users NEVER NEED TO SEE THIS and will NEVER USE IT.

          Back to Apple. Apple has a little ditty called the "CrashReporter" and it has an OSX front-end to the system's log filed in /var/log/. The logs contain all the nitty gritty about what was in the registers when the sytem exploded, what driver/module caused it, etc readily and easily recorded in the system log. Said information (like STOP: 0x0000000000000000008E) is for a tech or sysadmin, not a standard user.

          2) What do you do with the BSOD info displayed?? A true nooblar would write it all down. That's a waste of time, becuase its also in Windows' system log. Assuming you're going to Google for it, you would presumably reboot the machine, right? So why did we even need to see the error when it happened? The machine is up not, and the logs are visible...??

          Bottom line: Apple's goal is to keep things simple, clean and friendly. What would your parents rather see?

          1. A pleasant semi-transparent overlay that asks them to reboot their machine (in their native language)
          2. A solid blue screen reading "KERNEL_MODE_EXCEPTION_NOT_HANDLED" followed by 30 rows of random-like numbers

          Which one?

          P.S. - Don't even think about saying "what happens if you cant boot." If that is the case, remove the new hardware. Otherwise you are in DEEP trouble... the code doesnt really matter and you'd actually be better off reading the error from /var/log.
          • Re:Keep it simple (Score:4, Insightful)

            by jericho4.0 (565125) on Monday September 11 2006, @11:45PM (#16086647)
            Regarding your first point; I'm more than a power user. I can actually figure out what those funny numbers mean. But, I never, ever, do. Who the hell does?
                • Real Programmers don't mix up array indexing and counting the length of an array.

                  And since the joke envolves the length of the array and not the index of it's last member, I guess the jokes on you.

    • by DingerX (847589) on Monday September 11 2006, @06:26PM (#16085453) Journal
      Guru meditations were awesome, and I fondly remember that flashing red border.

      But Amiga wasn't first. The Mac "Bomb" preceded it, and was notoriously useless for troubleshooting.

      Still, most Windows XP users haven't seen a BSOD ever. Go ahead and ask them. See, Windows XP solved that. But mysteriously, their power supply is unreliable, and "trips" on the slightest whim.

      You gotta love that. "BSOD is bad for marketing, and most people don't know what to do with the information anyway. Let's just reset the computer and pretend it's a power spike."

      I'd advise people to change their default settings, but one time I had "write memory contents to log file on BSOD" enabled when I was moving data about, and hand less free memory on my HD than in RAM.

      Don't ever, ever do that.
    • by MyDixieWrecked (548719) on Monday September 11 2006, @06:59PM (#16085636) Homepage Journal
      A system crash with a tasteful little box can be as easily dispised as all the the preceding.

      that is precisely true.

      My machine at work has some kind of hardware problem that was never quite solved while it was under applecare. it "panics" at least once a day, some days, it'll "panic" 5-10 times. Some things that set it off are scrolling in a terminal window (such as when I'm sync'ing portage on our server) or putting an audio CD in the lower optical drive.

      The last time we brought it to tekserve, they claimed that both scsi drives were bad and they replaced them, and we didn't have a panic for a couple months, but by the time they came back (and with a vengence, I might add), there was no more applecare coverage...

      I quote "panic" because sometimes I get that nice pretty "please restart your computer" screen, sometimes I get the text dump on the desktop, and sometimes the machine locks up, altogether.

      luckily, we're getting one of those nice quad-xeon machines as soon as adobe releases the new creative suite, at which point I'll throw this machine out of a window.
        • Re: (Score:3, Interesting)

          I take it you don't run any servers. SCSI is vastly superior to SATA in a server role. SATA is better for single user work, but if you are tossing many file read/writes at the same time at the drive, SCSI will simply way out preform SATA.
            • Re: (Score:3, Informative)

              SCSI drives have been aimed specifically at the server market for years. Their electronics have been specifically geared towared performance in that area.
              SATA is aimed for desktop systems. Almost no early SATA systems had NCQ, although more and more newer models have it now. It's been tacked on, not central to the design for decades like in SCSI.

              Just take the baddest SATA drive around, the Western Digital Raptor 150. A 10,000 RPM drive with NCQ (Note, the earlier 36 GB and 74 GB Raptor SATA drives did n
    • by Anonymous Coward on Monday September 11 2006, @07:00PM (#16085641)
      It's not like Microsoft invented it, either.

      Microsoft had a single DEBUG line in the registry for Windows 95 -- it allowed the application of your choice to intercept the crash.

      The first commercially successful program to implement it was "Power Utilities 95 with Crashproof" [quickerwit.com] that handled/exposed many hardware conflict sins without just covering them up.

      About 50K copies later and good shelf space at Frys/COMPUSA/BestBuy , Symantec took notice and put out their $29 Crashproofing program that didn't perform dozens of system checks or even unmask the cause of the crash.

      If version 1.0 of that Norton floppy disk consisted of anything more than copying a 1 line registry change and a pointer to a bitmap, then it never showed in practice.

    • by Frequency Domain (601421) on Monday September 11 2006, @07:31PM (#16085784)
      No, MS didn't invent it. They just perfected it. Remember when there was talk about adding a BSOD hotkey to the MS keyboard, so you wouldn't have to go through the hassle of running software to get it?
  • by rodgster (671476) * <rodgster AT yahoo DOT com> on Monday September 11 2006, @06:09PM (#16085348) Journal
    Sort of unrelated:

    I used to have BSOD as my screen saver for an earlier version of Fedora (IIRC). It was always amusing when people would stop by to chat, a little while later, they'd see my PC suddenly BSOD! The looks I'd see (on other people's faces) makes me laugh just remembering.

    • I used to use that screensaver too. One time, my old roommate accidentally locked my computer. When BSOD came up, he thought it had crashed.

      That's how I discovered he was looking at porn on my computer.

  • Likewise (Score:4, Informative)

    by Umbral Blot (737704) on Monday September 11 2006, @06:10PM (#16085354) Homepage
    Likewise in windows you can change the background color and text color of the BSOD (or at least you could uder 98, I haven't had the desire to play around with it under 2000 / XP since they crash much less frequently).
      • Re: (Score:3, Insightful)

        Here we go again. Today, it's Umbral Blot's turn to have posts that came from rational, critical thinking twisted into "pro-M$ astroturfing" at the hands of the ever-spiteful Twitter.

        How do you live, Twitter? Seriously. How can you possibly function in society with this much venom and hate spewing forth from every word you say? Can you make it from Study Hall to Algebra without the kicker from the football team shoving you in a locker?

        I don't care how you do it, Twitter. Go to therapy, go to church, w

  • by GungaDan (195739) on Monday September 11 2006, @06:12PM (#16085370) Homepage
    I, for one, welcome our new department-wide goatse.cx kernel panic message.

    Any of you guys hiring?

  • Well on the upside (Score:5, Insightful)

    by OverlordQ (264228) on Monday September 11 2006, @06:12PM (#16085371) Journal
    The Win32 BSOD does give you better information so you can try to diagnose the problem.

    Which is kinda lacking in the OSX Panic screen.
    • by RAMMS+EIN (578166) on Monday September 11 2006, @06:19PM (#16085411) Homepage Journal
      But then MS made the brillant decision to reboot the system right when the BSOD appeared, robbing it of any usefulness. Or perhaps they didn't do it on purpose, but I've seen plenty of displays just go blue for a split second, then blank as the system started rebooting.
    • by mybecq (131456) on Monday September 11 2006, @06:48PM (#16085582) Homepage
      The Win32 BSOD does give you better information so you can try to diagnose the problem.

      Kind of like knowing that there were:
      - 56 bulbs
      - 24 horizontal grill bars
      - 72 vertical ridges on 1600 sq ft of 1/4" steel
      - 20% full gas tank
      - 209,000 miles driven
      - 3 tread patterns
      - 5 axles
      - 18 wheels

      You still got hit by a truck.
      • by kevmo (243736) on Monday September 11 2006, @11:03PM (#16086548)
        I find it very useful for the rare occasions that I get BSODs anymore to at least know what driver caused the problem. If the BSOD lists something like atixxxxx, then I know that my video card screwed up, and so on. Because almost all of my crashes are caused by driver or hardware problems, its helpful knowing just what that problem is so I can fix the driver or replace the hardware (and thus almost never get crashes on that computer in the future).
    • by shawnce (146129) on Monday September 11 2006, @06:55PM (#16085615) Homepage
      Kernel panic information gets logged on reboot to a file and you can capture a kernel core dump if you want.

      Review... TN2063 [apple.com], TN2118 [apple.com], Debugging the Kernel [apple.com], etc.
      • Re: (Score:3, Informative)

        Actually, it's possible on Windows as well. Not that I particularly *like* Windows by any stretch of the imagination, but XP and 2003, at least, will write a memory dump to the system swap file to be copied into %systemroot%\memory.dmp on the following startup, provided that it's configured to do so. The memory dump can then be loaded into a debugger to do post-mortem debugging. It does have a talent for not being the most useful on some configurations - I've run into issues on systems with >2G of memor

  • by Malc (1751) on Monday September 11 2006, @06:13PM (#16085377)
    Hardly the ultimate joke. Jokes are supposed to be original. This has been a screen saver under Linux for years.

    Anyway, couldn't this be described as the ultimate joke [youtube.com]?
    • A good joke would consist of the following steps:
      1) set an Intel build of MacOS to display the BSoD
      2) instal bootcamp and a copy of XP, but never actually boot into XP
      3) find and install a cheep faulty RAM module that allows MacOS to kernel panic with some degree of frequency.
      4) bring the Mac in for service at an Apple store
      5) claim that MacOS started displaying the BSoD after you installed Windows.
      6) wait for someone to pick up the red phone to Cupertino.

      If you're dealing with an older Mac vet, add an obsc
  • Old Hat (Score:3, Funny)

    by overshoot (39700) on Monday September 11 2006, @06:16PM (#16085390)
    Yawn.

    Once upon a time, I was chairing an out-of-town meeting with a roomful of engineers. We spent most of the morning working a spreadsheet with margin calculations on it trying to come up with a margin budget that everyone could live with; I was running the machine that drove the projector.

    The conversation took a turn away from the spreadsheet, and after a bit the BSOD came up onscreen. The panic in the room was palpable -- everyone figured we'd just lost the whole morning, and quite a few had afternoon flights out.

    So I hit the shift key and entered my password to unlock the screen.

    The classic BSOD screensaver gets the same amusement factor without the hassle of hacking OSX.

    • by Pfhorrest (545131) on Monday September 11 2006, @07:58PM (#16085894) Homepage Journal
      I know it's off-topic, but I just had to share the image that came to mind when I first read this:

      Once upon a time, I was chairing an out-of-town meeting with a roomful of engineers...

      Picture, if you will, a meeting room filled with terrified engineers, all cowering behind one end of the table and desperately trying to shield their heads from ballistic chairs, being hurled by a Donkey-Kong like Steve Ballmer, who in turn is jumping up and down upon the far end of the table...

      I know the Steve Ballmer jokes are old and off-topic (and I don't mean to compare you to him) but the image of "chairing" a meeting full of engineers was just to hilarious not to share. :-)
  • by lostngone (855272) on Monday September 11 2006, @06:23PM (#16085429)
    Leave it to Apple to give you a choice when it comes to Panic screens. Does Vista do this yet?
  • by creimer (824291) on Monday September 11 2006, @06:29PM (#16085480) Homepage
    I know that Mac users are supposed to be more friendly towards Windows users switching over but changing the kernal panic screen to match the BSOD is going too far. If you want it that badly, install Windows on a separate partition.
  • Hidden? (Score:4, Insightful)

    by exp(pi*sqrt(163)) (613870) on Monday September 11 2006, @06:32PM (#16085497) Journal
    hides the ugly kernel panics behind a nice looking GUI
    It must hide them really well because in 4 or 5 years I haven't seen one. (I did once about 5 years ago though - that'll teach me to mess with third party USB drivers.)
  • by Moofie (22272) <lee@NOsPAM.ringofsaturn.com> on Monday September 11 2006, @06:36PM (#16085520) Homepage
    That's not NEARLY as cool as the car crash sound Macs used to make when they really, really, REALLY blew up fierce. Get a good pair of speakers, and that sound would scare the tar out of everybody in the area!

    I think it only happened to me once, on a junky old LCIII, while I was just working. There was a key combo to induce it on boot, though, and I got a lot of mileage out of that...
  • Gray screen of death (Score:3, Informative)

    by azav (469988) on Monday September 11 2006, @06:38PM (#16085531) Homepage Journal
    I have gotten the gray screen of death twice on my Quad.

    When capturing QuickTime video, QuickTime writes one copy of the file and then makes another. If you are capturing to a mastering codec (ie animation) minutes can become gigabytes. It is easy to fill up the internal HD in this case.

    What can easily happen in this case is the file writing routines will start writing over allocated blocks. System files, even track zero. If it writes over track zero, your internal hard drive will be destroyed.

    How do I know this? It happened to me twice.

    The second time, I was left with a 17 GB file on my hard drive that can not be deleted by any means other than reformatting the disk. The first time it happened, the HD was borked so bad that plugging it into another Mac caused that mac to kernel panic. Apple replaced the drive but I lost everything minus my backups.

    As I was told by an Apple tech, when a hd starts up the dirve itself checks the validity of track zero. If it is invalid, you have a hardware fault and this generates a kernel panic.

    This was all validated by Apple techs.

    You have been warned. Hope this helps someone.

    • by blob.DK (477287) on Tuesday September 12 2006, @01:36AM (#16086930) Homepage
      Excuse me, Sir, but that is a misunderstanding on your part. Mac OS X does not overwrite track zero just because the disk is full.

      What you have experienced is the phenomenom of Mac OS X getting caught up in: "ups, the disk is full - so now I can't save any (system) preferences." Any files written during this will end up as zero-byte files.

      There is no magic "QuickTime will overwrite vital systemfiles, to which only root has access"-routines.
        • by slamb (119285) * on Monday September 11 2006, @10:02PM (#16086348) Homepage

          This has been a serious flaw in Unixes since I knew about it. The OS will let your HD fill up and overwrite itself. Many *nix flag wavers often defend this behaviour. Why they do is beyond me.


          You're completely wrong. When the free space reaches 100%, write() will return ENOSPC (no space). The superuser will still be able to use the system, because traditionally, there's a 5% reserve which only uid=0 can use. (The "df" goes up to 105%.) The correct semantics are well-defined. If you've seen anything else, it's a bug in whatever system you were using, which no one could seriously defend.

          Now, if you're talking about user applications breaking when encountering this condition...yeah, there are certainly some out there that break. There are buggy applications written for every platform. It's just laziness - Unix gives them well-defined semantics they can use to handle it correctly and an easy test environment (quotas).
      • by glesga_kiss (596639) on Tuesday September 12 2006, @04:29AM (#16087280)

        That's not the point. A malicious user can hose the entire system by running 'cat /dev/zero >> /opt/junk'. And I mean hose as in "system unusable, 100% of data lost"; the worst kind of hosed. The fact that Final Cut has options to manage this doesn't detract from the fact that the OS should manage itself better. Writing over track 0 on the HD? Creation of undeletable files? What is this, a return to the 8-bit days again?

        When you get to 100MB free, the OS should tell the applications to go away. It should never fill 100% of the drive. Let's see you boot to remedy it when you can't write to log files.

  • by ROMRIX (912502) on Monday September 11 2006, @06:43PM (#16085553) Homepage
    "The article also shows the ultimate joke is to upload an actual BSOD image for authentic Windows looking panics right inside of OS X."

    Ya! and then we could like, (snicker, snicker) we could like, bring up pictures of toilet paper on the monitor (snicker, snicker) and they would think (hehe, snicker) they would think they got T.P.'ed! HAHAHAHA!!!!!111!!!

    Did anyone else just develop a twitch in their left eye?
  • by CrazyJim1 (809850) on Monday September 11 2006, @06:50PM (#16085590) Journal
    If the aptly named blue screen of death is indeed the ultimate joke, people should die laughing at it.
  • by spywhere (824072) on Monday September 11 2006, @06:55PM (#16085611)
    There were rumors, before XP came out, that they were going to respond to the iMac by making the Blue Screen of Death available in five designer colors.
  • by rocjoe71 (545053) on Monday September 11 2006, @06:59PM (#16085637) Homepage

    You young punks and blue-screens-of-panic blah, blah blah!

    ...In my day, we didn't even HAVE screens, just a blinking light and if that light ever stopped blinking, you knew there was trouble, boy...

  • Redmond... (Score:4, Funny)

    by RAMMS+EIN (578166) on Monday September 11 2006, @07:02PM (#16085650) Homepage Journal
    Redmond, start your photocopiers!
  • by Chacham (981) * on Monday September 11 2006, @07:48PM (#16085849) Homepage Journal
    BSoD is for the NT (and XP) lines. Win9x is a blue screen, not a BSoD.

    The *reason* it called a BSoD, is because the computer will not do *anything* without a reboot. This is not usually the case under 9x.
  • by dark-br (473115) on Monday September 11 2006, @08:51PM (#16086086) Homepage
    ... Macs Crash Different [youtube.com]

    And don't get me wrong, I'm typing this on a Mac and I would not trade it for anything else out there ;)

    • Today no less, at the local Apple store I got a kernal panic "You need to restart your computer" message. All I did was put OmniDazzle [omnigroup.com] on a new Mac Pro.

      What surprised me was that I had only ever seen the kernal panic only once before after using OS X daily over two years... and that was when I was trying to crash it. (Hint: disabling network adapters and enabling others while connected to an SMB share can cause unpredictable results under 10.3)

      While changing the crash message is interesting, it's not some
      • Re: (Score:3, Interesting)

        Here's how you get an instant crash in OS X:
        1. Open the DVD Player application.
        2. Attach a second monitor.
        3. Select Detect Displays from the monitor menu.
        4. Kaboom!

        For extra craptacularity, do this while installing a system update. Then you get to manually install the update in single user mode before your system will be bootable again. When I say manually, I mean manually extracting files from the pax archive and copying them to the appropriate location because systemupdate thinks that everything is OK despite dozens

    • by freedom_india (780002) on Tuesday September 12 2006, @12:03AM (#16086696) Homepage Journal
      Its NOT Funny, OK ???

      Once we built a system for C*tibank (T+2) in FoxPro 2.6 for Windows and one of the users actually took a screenshot of the same, put it as background, and then complained our application doesn't work.

      We spent 2 FULL days debugging the damn application before we realized the issue.

      Oh.... &&%%$$&&