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!

14 of 192 comments (clear)

  1. Re:I hope you submited to Apple by iMMersE · · Score: 3, Interesting

    In the spirit of scientific testing, I have just subjected my iBook to this - And sure enough, you get an instant kernel panic.

    --
    codegolf.com - smaller *is* better.
  2. Works just fine on my system.... (in Bash, though) by ewwhite · · Score: 4, Interesting

    I was able to create a directory and move a directory of the same name into it. Bash is my default shell. Try the same thing in Bash. exx@eddy:~/mydir/mydir$

    --
    Edmund White
    http://flickr.com/ewwhite
  3. Re:I hope you submited to Apple by bsharitt · · Score: 2, Interesting

    I tried it too, but I didn't get a kernel panic, it just moved the directory.

  4. smb bug? or maybe i'm an idiot by drive · · Score: 3, Interesting

    perhaps off topic, but it will also cause kernel panic (at least in my network without fail).

    try to mount a share from an local smb server that does not exist. cancel it, then try to mount one that DOES exist.

    ie. from the finder command-k
    smb://10.0.1.3 #does not exist
    cancel it,

    smb://10.0.1.4 #does exist

    the second attempt will time out and the machine will have to be hard reset.

    maybe this is just me, but this has been happening to me since 10.1.5

  5. Re: Why? by capmilk · · Score: 2, Interesting

    You could not note this bug before, because it was introduced in 10.2.2. Let's hope it will be gone in 10.2.3.

  6. Re:Why? by Elwood+P+Dowd · · Score: 5, Interesting

    Well, Avie Tevinian probably doesn't agree with your "OS people up at Carnegie Mellon", and he's running the show over at Apple. He also wrote some pertinent versions of Mach, up at Carnegie Mellon.

    When it comes to questions like this, if you can get the best people, using their prefered tools is often a good idea. If Apple could have hired all the architects of the freebsd Kernel, then sure, maybe you'd be right.

    Also, I don't know what the hell you mean that you've "heard nothing but bad things about" Mach. It's a well known and well inspected peice of code. It might have problems, but saying "bad things" doesn't mean anything. What are the problems? Message passing is slow? This is true. Whatever. It's an architectural choice. Some of those architectural choices are exactly what makes Mach good for Apple - Multiple OS hosting.

    --

    There are no trails. There are no trees out here.
  7. Don't you get it? by WebBug · · Score: 3, Interesting

    I must admit to being somewhat taken aback by the comments here . . .

    While this bug appears trivial it is not.

    Consider: An entire apple server can be totally killed requiring a human to reboot it just by getting a totally unpriveleged shell access.

    EVEN A GUEST can kill the system using this simple simple set of commands. That's not good. Of course it's not the end of the world either.

    anyone know of a way to get unprivileged access on an apple server of your choice?!

    --
    Later . . . . . . WebBug // I don't really have 8 arms but . . .
  8. Another easy one by Wesley+Felter · · Score: 3, Interesting

    Try changing an Ethernet interface's MAC address using ifconfig. Whoops.

  9. Works fine with UFS filesystem... by Anonymous Coward · · Score: 1, Interesting

    I finally feel better about formatting my disk UFS rather than HFS+. Now if they would just improve the performance...

  10. Re:I hope you submited to Apple by JMZorko · · Score: 4, Interesting
    Awhile ago, before Jaguar, I (inadvertently) found a way to make Mac OS X 10.1.something kernel panic, by writing some absolutely horrid BSD sockets code (the kind you write when you're trying to help a fellow developer but you've not slept in far too long). I submitted it to Apple via the darwin-dev list, and they were very hip on fixing it. A software update including the fix was available I think two weeks later.

    Now, i'm sure they had other things in that update, and it wasn't just on my account, but they thought it important enough to roll it in anyway. I thought that was the coolest thing :-)

    Regards,

    John

    Falling You - exploring the beauty of voice and sound http://www.mp3.com/fallingyou

    --
    Falling You - beautiful
  11. Re:Why? by KnotMe · · Score: 3, Interesting

    This looks more like the result of Apple's notably difficult attempt to get Unix to work with HFS+ than any problem with their kernel design.

  12. Re:They know .... by valmont · · Score: 5, Interesting
    you are missing the point here. It works this way:

    1. user accidentally finds bug in OS
    2. user talks about it on open-source forums and other places on the internet
    3. Apple gets notified as well as open-source community at large
    4. within minutes of its discovery, some geeks manage to find the root of the problem
    5. apple developers are notified of geeks' findings, confirm, fix, and thoroughly test the fix.
    6. within days apple users get a software update notification if bug is important, or fix is rolled into the next major sub-dot release if fairly inconsequential for the broader user base, as it might be the case for this one
    You see, apple users don't need to do shit. All i know is that some bug that is fairly inconsequential to me was found, and that it's guna get fixed, fast, and my next OS X release will be all the stronger, and all i'll have to do is click the "install" button when prompted, and i will feel warm and fuzzy all over. I don't even need to what a fucking kernel is.

    now that's just me. Yes, many geeks out there will gladly hunt-down the bug in the source code and recompile their kernel.

    The point is, you know problems are addressed in an appropriate matter.

    So yes, open-source, is, indeed, so much better than anything else, especially if you're dealing with what i consider in my little world, the mission-critical piece of software that is my tibook's operating system.

    Such process shows me that a product that relies heavily on mature open-source components is less likely to cause productivity-killing crashes and loss of data such as the ones i've experienced with my previous dell laptop running win2k, as described in one of my journal entries.

    And if was to direct an IT department, gee, i just may consider putting a flat-panel iMac on every employee's desktop. Shit i could mount user directories from a central location, enabling employees to switch work stations, i would uniformely configure all machines, prevent users from writing files or installing applications outside of their home directories, i could ssh in each box for sporadic debug work, i could create automated processes to create development environments based on users' needs, wether they're graphic artists or J2EE application developers.

    OS X owns you.

    this is it people. we are well on our way to reach the nirvana of computing, with symbiotic collaboration between a major hardware and software vendor and the open source community at large, market share gains in each camp benefits the other.

  13. Re:Cool. by Have+Blue · · Score: 4, Interesting

    What's even slicker is that the diagnostic output that used to go all over the screen was instead written to NVRAM, and moved out to disk (~/Library/Logs IIRC) when you rebooted.

  14. WARNING: SHUT DOWN YOUR FTP DAEMON by Tokerat · · Score: 4, Interesting


    I just tested this over an FTP connection to a Mac OS X 10.2.2 box using Transmit (a Mac FTP client) from a MacOS 9 machine.

    I was ABLE to panic the kernel remotely.

    This has just taken a violent swing into serious, as ANY USER WITH FTP ACCESS can now drop your Mac OS X machine. Apple needs to patch this, and quickly. I don't care if the security update is 15k to replace /bin/mv, anyone who has an FTP cannot live like this.

    Any idea what eactly could be wrong with either the kernel or mv that would cause such a problem? Branching to the wrong case (i.e. branching to the "same name" case as opposed to the "can't replace a directory with an item it contains" case)?

    Is this a job for the Darwin team since it involves a BSD component?

    --
    CAn'T CompreHend SARcaSm?