Go Back   MacRumors Forums > News and Article Discussion > MacRumors.com News Discussion

Reply
 
Thread Tools Search this Thread Display Modes
Old Feb 4, 2013, 09:21 AM   #1
MacRumors
macrumors bot
 
Join Date: Apr 2001
Odd Mountain Lion Crashing Bug Brings Down Nearly Any App




One of the fastest-spreading stories of the weekend has been a strange OS X Mountain Lion bug that can crash almost any Mac app running any version of OS X 10.8, reported on Open Radar.

The initial bug report stated that typing 'File:///' (without the quotes) into almost any app causes the app to crash.

Follow-up testing has shown that the final character needn't be a forward-slash, with almost any character after 'File://' triggering the bug. The issue is also speed-dependent: leaving a brief pause between typing // and the next character will prevent the crash from occurring.

More embarrassingly still for Apple, filing a crash report causes both Crash Reporter and the Console apps to crash. The Console crash can only be cured by running a terminal command:

sudo sed -i -e 's@File:///@F i l e : / / /@g' /var/log/system.log

The Next Web has a detailed analysis of the issue, noting that it is related to Apple's Data Detectors feature for automatically recognizing dates, locations and other information in text for addition to Address Book or Calendar entries.

While it is rather surprising that the issue took so long to receive publicity, Apple is now likely to include a fix for the problem sooner rather than later. It is, however, unknown whether Apple will squeeze a fix into the upcoming OS X 10.8.3 that has been in developer testing for over two months.

Article Link: Odd Mountain Lion Crashing Bug Brings Down Nearly Any App
MacRumors is offline   1 Reply With Quote
Old Feb 4, 2013, 09:23 AM   #2
zin
macrumors 6502
 
Join Date: May 2010
Location: United Kingdom
Quote:
More embarrassingly still for Apple, filing a crash report causes both Crash Reporter and the Console apps to crash.
Laughed way more than I should have.
zin is offline   37 Reply With Quote
Old Feb 4, 2013, 09:25 AM   #3
Wokis
macrumors regular
 
Join Date: Jul 2012
Location: Stockholm, Sweden
Must. Test. Now!
__________________
13" Macbook Air 2012, i5-3427U, Intel HD 4000, 8GB RAM, 128GB SSD | iPad Mini 16GB White | iPhone 5 32GB Black
Wokis is offline   2 Reply With Quote
Old Feb 4, 2013, 09:25 AM   #4
ConCat
Banned
 
Join Date: Jul 2012
Location: In an ethereal plane of existence.
Works in Safari. Neat!

It's a case-sensitive bug just so you all know.

EDIT: Oh yes, that makes part of the article incorrect: "with almost any character after 'file://' triggering the bug" That would be "File://"
ConCat is offline   1 Reply With Quote
Old Feb 4, 2013, 09:28 AM   #5
longofest
Editor emeritus
 
longofest's Avatar
 
Join Date: Jul 2003
Location: Falls Church, VA
Send a message via AIM to longofest
Quote:
Originally Posted by ConCat View Post
Works in Safari. Neat!

It's a case-sensitive bug just so you all know.
I suppose it's "neat", but keep in mind in that this kind of core system vulnerability could potentially be exploited to put malware everywhere.
__________________
Never falling under anyone's Reality Distortion Field: Tech Perfect
longofest is offline   3 Reply With Quote
Old Feb 4, 2013, 09:30 AM   #6
jpetticrew
macrumors 6502a
 
jpetticrew's Avatar
 
Join Date: May 2009
Location: Texas
Didn't crash my terminal.
Attached Thumbnails
Click image for larger version

Name:	Screen Shot 2013-02-04 at 9.28.57 AM.png
Views:	137
Size:	17.7 KB
ID:	394416  
__________________
"Design is not just what it looks like and feels like. Design is how it works." - Steve Jobs
jpetticrew is offline   3 Reply With Quote
Old Feb 4, 2013, 09:33 AM   #7
ConCat
Banned
 
Join Date: Jul 2012
Location: In an ethereal plane of existence.
Quote:
Originally Posted by jpetticrew View Post
Didn't crash my terminal.
That means it's probably a bug in a proprietary Apple layer. I don't believe Terminal uses Apple tech for its text rendering (besides the usual Quartz layer for drawing...).
ConCat is offline   0 Reply With Quote
Old Feb 4, 2013, 09:47 AM   #8
RedCroissant
macrumors 68000
 
RedCroissant's Avatar
 
Join Date: Aug 2011
Location: California
Quote:
Originally Posted by jpetticrew View Post
Didn't crash my terminal.
And you're running Mountain Lion?
__________________
Welcome to the Grid, Program.

27" iMac, 3.2GHz i5, 16GB RAM, 3TB HDD; 32GB iPad 1 WiFi+3G; 30GB iPod Video 5G
RedCroissant is offline   0 Reply With Quote
Old Feb 4, 2013, 02:26 PM   #9
thedoctor
macrumors newbie
 
Join Date: Feb 2006
Oh yes it does ...

Quote:
Originally Posted by jpetticrew View Post
Didn't crash my terminal.
cmd-O and then type File:///

boom

----------

Quote:
Originally Posted by thedoctor View Post
cmd-O and then type File:///
Just found that the crash can be stopped by turning off the DataDetectors use in individual applications, e.g. ..

defaults write com.apple.terminal DisableDataDetectors YES

----------

Quote:
Originally Posted by zioxide View Post
typing file:/// causes it to crash?

here's an idea: don't type file:///
Nope ... don't type ... File:///
thedoctor is offline   0 Reply With Quote
Old Feb 4, 2013, 09:30 AM   #10
needfx
macrumors 68020
 
needfx's Avatar
 
Join Date: Aug 2010
Location: macrumors apparently
buckle your seat-belts, crashes ahead
needfx is online now   2 Reply With Quote
Old Feb 4, 2013, 09:30 AM   #11
roadbloc
macrumors 604
 
roadbloc's Avatar
 
Join Date: Aug 2009
Location: UK
Send a message via Skype™ to roadbloc
Heh. Wonder if it effects any other versions of OS X.
__________________
roadbloc is offline   0 Reply With Quote
Old Feb 4, 2013, 09:36 AM   #12
justperry
macrumors 603
 
justperry's Avatar
 
Join Date: Aug 2007
Location: 7 Km South of an active upside down (boat) volcano.
Quote:
Originally Posted by roadbloc View Post
Heh. Wonder if it effects any other versions of OS X.
You might find that answer here, at least it is not an issue on 10.5.8

Crash Apps by simply typing File:///
justperry is offline   0 Reply With Quote
Old Feb 4, 2013, 09:45 AM   #13
f0rdness
macrumors newbie
 
Join Date: Feb 2013
Quote:
Originally Posted by roadbloc View Post
Heh. Wonder if it effects any other versions of OS X.
Doing it in Safari on Snow Leopard just causes it to minimise the window... **edit** and brings up finder with the root of the HDD, odd never new that one before.

However:

iChat
Attached Thumbnails
Click image for larger version

Name:	Screen shot 2013-02-04 at 15.51.26.png
Views:	26
Size:	25.6 KB
ID:	394420  

Last edited by f0rdness; Feb 4, 2013 at 09:59 AM.
f0rdness is offline   0 Reply With Quote
Old Feb 4, 2013, 09:31 AM   #14
ConCat
Banned
 
Join Date: Jul 2012
Location: In an ethereal plane of existence.
Quote:
Originally Posted by longofest View Post
I suppose it's "neat", but keep in mind in that this kind of core system vulnerability could potentially be exploited to put malware everywhere.
I know. It's just rare that a bug is so incredibly easy to produce like this. It makes me wonder how they missed it... Someone needs to update Apple unit tests.
ConCat is offline   0 Reply With Quote
Old Feb 4, 2013, 09:32 AM   #15
Ed91
macrumors 6502
 
Join Date: Dec 2007
Odd, it doesn't seem to work for me. I'm aware it's case sensitive.. still nothing. Hm.

[Edit] I lied, it does work. I just wasn't typing fast enough.
Ed91 is offline   0 Reply With Quote
Old Feb 4, 2013, 09:35 AM   #16
gnasher729
macrumors G5
 
gnasher729's Avatar
 
Join Date: Nov 2005
Quote:
Originally Posted by longofest View Post
I suppose it's "neat", but keep in mind in that this kind of core system vulnerability could potentially be exploited to put malware everywhere.
And that, my friend, is utter nonsense.

There is no vulnerability. There is an embarrassing bug that causes an exception to be thrown, which is not handled (because it shouldn't have been thrown), and uncaught exceptions stop the application from running. This would be inconvenient if it happened in a common situation, but Mountain Lion has been out for many months without anyone noticing, so nobody is inconvenienced. But importantly, because the effect of the bug is to stop the application from running, it is not something that can be exploited for malware.


Quote:
Originally Posted by ConCat View Post
I know. It's just rare that a bug is so incredibly easy to produce like this. It makes me wonder how they missed it... Someone needs to update Apple unit tests.
"Easy to reproduce" doesn't mean "easy to find". This should have been found in a code review (someone checked that a URL is a "file url" by checking that it starts with the characters "file://" which is obvious nonsense - "File://" or "fIlE://" is perfectly legal), but anybody who is clever enough to write a unit test for the "File" case would also have been clever enough to get the code right in the first place.

Last edited by gnasher729; Feb 4, 2013 at 09:40 AM.
gnasher729 is offline   8 Reply With Quote
Old Feb 4, 2013, 09:37 AM   #17
ConCat
Banned
 
Join Date: Jul 2012
Location: In an ethereal plane of existence.
Quote:
Originally Posted by gnasher729 View Post
And that, my friend, is utter nonsense.

There is no vulnerability. There is an embarrassing bug that causes an exception to be thrown, which is not handled (because it shouldn't have been thrown), and uncaught exceptions stop the application from running. This would be inconvenient if it happened in a common situation, but Mountain Lion has been out for many months without anyone noticing, so nobody is inconvenienced. But importantly, because the effect of the bug is to stop the application from running, it is not something that can be exploited for malware.
Well, truly malicious malware might be able to use this to cause your apps to repetitively crash. Especially given how trivial it is to automate text entry on a Mac using simple AppleScript commands.
ConCat is offline   2 Reply With Quote
Old Feb 4, 2013, 09:37 AM   #18
Preclaro_tipo
macrumors member
 
Join Date: Dec 2003
Location: Indianapolis
Send a message via AIM to Preclaro_tipo
NSInternalInconsistencyException

Hopefully this helps someone.
Attached Thumbnails
Click image for larger version

Name:	1PasswordScreenSnapz001.jpg
Views:	48
Size:	22.6 KB
ID:	394417  
Preclaro_tipo is offline   0 Reply With Quote
Old Feb 4, 2013, 06:01 PM   #19
SlCKB0Y
macrumors 68020
 
Join Date: Feb 2012
Location: Sydney, Australia
Quote:
Originally Posted by gnasher729 View Post
But importantly, because the effect of the bug is to stop the application from running, it is not something that can be exploited for malware.
Are you claiming that that a crashing application cannot be exploited for malware ever or just in this situation?
SlCKB0Y is offline   0 Reply With Quote
Old Feb 4, 2013, 09:25 AM   #20
bushido
macrumors 603
 
bushido's Avatar
 
Join Date: Mar 2008
Location: España y Germany
i remember back in the ML betas Safari would crash if u'd type xy.com/

not sure if i remember exactly, it had something to do with / as well however
__________________
¡No hables a menos que puedas mejorar el silencio!
Don't judge me by my user name - I was young and stupid xD
bushido is online now   0 Reply With Quote
Old Feb 4, 2013, 09:27 AM   #21
ikramerica
macrumors regular
 
Join Date: Apr 2009
Yep, pretty neat. Took down Safari and NotePad. At least it doesn't lock up the Finder too. Pretty easy to get out of.

For the vast majority of us, we will never type that string. For a few of you, it's something you need to type often...
ikramerica is offline   0 Reply With Quote
Old Feb 4, 2013, 09:25 AM   #22
Squilly
macrumors 68020
 
Squilly's Avatar
 
Join Date: Nov 2012
Location: PA
Leave it to Apple for this... Nice job.
__________________
iPhone 6 16gb Space Gray Sprint
iPad Air 16gb with LTE AT&T (T-Mobile SIM)
Squilly is offline   2 Reply With Quote
Old Feb 4, 2013, 09:27 AM   #23
azentropy
macrumors 65816
 
Join Date: Jul 2002
Location: Surprise
Not a bug, it is a feature!
azentropy is offline   14 Reply With Quote
Old Feb 4, 2013, 09:30 AM   #24
AngerDanger
macrumors 65816
 
AngerDanger's Avatar
 
Join Date: Dec 2008
Location: doing the Dada Polka
Ugh. I just tried to contact an Apple representative about this, and as soon as I described the problem, they hung up on me. This bug goes deep, man.
AngerDanger is offline   25 Reply With Quote
Old Feb 4, 2013, 09:33 AM   #25
Verita
macrumors member
 
Join Date: Mar 2011
Location: Atlanta
Quote:
Originally Posted by Fresh Pie View Post
Ugh. I just tried to contact an Apple representative about this, and as soon as I described the problem, they hung up on me. This bug goes deep, man.
Stop trying to crash the Apple campus!
__________________
Enjoying Apple since the Macintosh SE days
Verita is offline   0 Reply With Quote

Reply
MacRumors Forums > News and Article Discussion > MacRumors.com News Discussion

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Similar Threads
thread Thread Starter Forum Replies Last Post
Mountain Lion - Notes app crashing. PLEASE HELP mlance17 OS X 0 Nov 6, 2012 07:14 AM
EyeTV crashing with Mountain Lion Ryno88 Apple TV and Home Theater 4 Nov 2, 2012 06:55 AM
Mountain Lion Crashing - How to Troubleshoot? lukekarts OS X 10.8 Mountain Lion 2 Aug 6, 2012 12:24 PM
Found a Mountain Lion Mail app bug Murgatroyd OS X 10.8 Mountain Lion 3 Aug 3, 2012 07:12 PM
Mountain Lion - crashing after a day Galaxy Bound OS X 10.8 Mountain Lion 0 Jul 27, 2012 09:43 PM

Forum Jump

All times are GMT -5. The time now is 04:59 PM.

Mac Rumors | Mac | iPhone | iPhone Game Reviews | iPhone Apps

Mobile Version | Fixed | Fluid | Fluid HD
Copyright 2002-2013, MacRumors.com, LLC