Slashdot Mirror


Silly Kernel Panic in Mac OS X 10.2.2

shibby tells us that it is easy to cause a kernel panic in Mac OS X 10.2.2, by attempting to move a directory into the same location as another one of the same name, using Terminal: mkdir ~/mydir; cd ~/mydir; mkdir mydir; mv mydir ... Kernel panic is instant. Save all your documents and quit your open apps if you feel the need to see it for yourself. Happy Thanksgiving!

7 of 192 comments (clear)

  1. Its not a bug by WesG · · Score: 5, Funny

    Not only does it cause a kernal panic, but it slaps the user on the head and asks them, "Why the heck did you create a directory with the same name as the current directory????"

    Those crazy kernal programmers :-)

  2. Ooops by iMMersE · · Score: 5, Funny

    Found the offending piece of code in Darwin ...

    BOOL HFSPLUS_Directory_Move( const char *src, const char *dest ) {
    if ( !strcmp( src, dest ) ) {
    __kernelPanic( KP_IMMEDIATE );
    } ...
    }

    --
    codegolf.com - smaller *is* better.
  3. Colonel Panic and General Controls... by Ocelot+Wreak · · Score: 5, Funny
    First there was General Controls, who was sometimes drunk and forgot all my preferences.
    Then there was Colonel Panic, who wouldn't work if you added two folders with the same name to the same in box on his desk.
    What's next? Private Keychain will forget where he stored my passwords and x.509 certificates?
    Oh wait... you were talking about kernels...
    Sorry!
    -wjc.

    --
    "I figure you're here 'cause you need some whacko who's willing to stick his finger in the fan. So who are we helping?
  4. Re:C|/CON/CON by sweet+reason · · Score: 5, Funny

    Can this be exploited by a rouge shell script?

    i don't think so, but a big blue one could do the job.

    --
    Everything should be made as simple as possible, but not simpler. -- A.E.
  5. Could it be a copyright problem ? by Anonymous Coward · · Score: 5, Funny

    Isn't "mydir" a Microsoft innovation? Could explain why it crashes ;p

  6. Cool. by red5 · · Score: 5, Funny

    You should see the death screen. Very slick. I'd post a screen grab, but well you know. :)

    --
    I know I'm going to hell, I'm just trying to get good seats.
  7. Re:Works just fine on my system.... (in Bash, thou by usr122122121 · · Score: 5, Funny
    Are you sure that
    1. You have the correct permissions to the folder, and
    2. You are running 10.2.2?
    Don't you find it the least bit funny that you're trying to help him to cause a kernel panic on his computer?

    "DAMN, sticking that fork in my eye really hurt!"
    "Oooh, I WANT TO TRY!"

    --

    -braxton