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!

15 of 192 comments (clear)

  1. Wow by darkov · · Score: 3, Funny

    Apple has a bug. This is amazing news. FP

    1. Re:Wow by Anonymous Coward · · Score: 2, Funny

      Isn't it called a 'worm' there?

  2. 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 :-)

  3. 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.
  4. 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?
    1. Re:Colonel Panic and General Controls... by Rouxfus · · Score: 3, Funny

      I dunno, but you deserve Corporal Punishment for that one.

  5. 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.
  6. Could it be a copyright problem ? by Anonymous Coward · · Score: 5, Funny

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

  7. Re: I hope you submited to Apple by Anonymous Coward · · Score: 0, Funny

    And repeated clicking of the mouse makes computers run faster too!

  8. 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.
  9. Re:Why? by susehat · · Score: 2, Funny

    because they already had it! it was not "hacking up" , they just removed all 4.3BSD Tahoe code from it and added IOKit to the mix. XNU is very stable, and it would not make any sense to go with any other kernel, since you lose a lot of the goodies that made it so powerful. Wishful mod to you: 1, trollbait

  10. Re:They know .... by Lars+T. · · Score: 3, Funny

    Well, most regular (Mac-) users dont't attempt "to move a directory into the same location as another one of the same name, using Terminal".

    --

    Lars T.

    To the guy who modded me down from perfect to terrible Karma - Apple haters still suck

  11. Re:mail info by MoneyT · · Score: 4, Funny

    A troll feeding we will go, a troll feeding we will go, hi ho the derio (WTF is that anyways?) a troll feeding we will go.

    What's also amusing is, children have no problem using dos, linux, windows, MacOS or OSX. They have no preference to OS as long as it can play sound, let them personalise their desktop etc. what they favour is SOFTWARE

    Yet for some unknown reason, if you put an average highschool computer user who's grown up on a windows PC all his life in front of a mac, and open up netscape, they can't seem to figure out how to make it work, despite it having an identical interface to the PC version. The reason I was given was becasue "It's a mac, I don't know how to use a mac"

    --
    T Money
    World Domination with a plastic spoon since 1984
  12. 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
  13. Re:os9 never did that by Melantha_Bacchae · · Score: 2, Funny

    dr00g911 wrote:

    > My question, then, is... where are the little
    > twin Japanese girls?!?!?
    >
    > They've been called the Cosmos lately and stuff
    > since the kiddy-Mothra movies came out, but
    > really!

    The general name is "shobijin" (means "little beauty"), fairy, or fairy priestess.

    In 1992 and 1994, they were the Series 2 Mothra's Cosmos.

    In the Legend of the Protecting Goddess Mothra Leo (the late 90's Mothra trilogy) they were the Elias (pronounced like English "alias", with probably the same meaning).

    The Mothra of Nilai Kanai (appeared as a moth in the picture on the wall inside the pyramid, and as the horribly mutated Dagara: "da"=corrupted, "ga"=moth, "ra"=Malay "lah" particle) had a human sized shobijin called "Kona" or "the Queen" in the Japanese version, "the Princess" in the American version of "Rebirth of Mothra 2".

    Mothra of Yamato (GMK) shared Yuri Tachibana as her shobijin with Baragon and King Ghidora. Yuri could also telepathically sense Godzilla.

    > THEY would guarantee complete and utter platform
    > dominance if they were included as a feature!

    Where do you think Belebera is? Mothra Leo sent her to Apple at the end of "Mothra 3" where she could put her technology skills to good use without getting into trouble.

    I still wish Apple would port that telepathic interface to OS X. You know, the one the Elias and Fairy used to communicate with Ghogo on the screen of that Mac in "Rebirth of Mothra 2". OS 9 just had all kinds of features that are taking a while to get to OS X. ;)

    Mothra or Godzilla should do a Switch ad. Oh, yeah, that's right. Godzilla already did one. It was called "Godzilla 2000". Switch or he will stomp you. ;)

    "What I'm thinking is different from what you are."
    Belabera, "Mothra 3" 1998

    "Your way of thinking is completely different from mine!"
    Shinoda, "Godzilla 2000 Millennium" (Japanese version)