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!
Apple has a bug. This is amazing news. FP
Reliable, Great Value Hosting: $7.95/mo 2.4G/120G
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
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.
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?
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.
Isn't "mydir" a Microsoft innovation? Could explain why it crashes ;p
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.
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
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
"DAMN, sticking that fork in my eye really hurt!"
"Oooh, I WANT TO TRY!"
-braxton