Settings

Theme

Typing “old” (space) into iOS Safari crashes the app

twitter.com

229 points by lunchbreak 3 years ago · 190 comments (185 loaded)

Reader

numpad0 3 years ago

For those not reproducing: your device may have to reside CONUS for some of "tar"(-get), "bes"(-tbuy), "wal"(-mart), "wel"(-ls fargo), "old"(-navy?), "sta"(-rbucks), "pla"(-net fitness?) to work. Try local brands, e.g., "Harrods", "Tesco", "Picard", etc. For my country "Gusto", a casual dining franchise, reproduces the issue. List is from [1].

Edit: stopped reproducing here as of 19:11 UTC.

Edit: some people digged into it[2][3], [2] includes partial endpoint URLs. Apparently this was happening for 7+^H^H 10+ hour.

1: https://www.macrumors.com/2022/11/14/safari-search-crash-bug...

2: https://twitter.com/nejigami/status/1592174411712712706

3: https://twitter.com/take6556/status/1592100775119171584

TechBro8615 3 years ago

They really, really don't want you using old.reddit.com

Doesn't reproduce for me btw. I also have the setting disabled that adds a period when typing a space twice, if that matters.

  • friendlyHornet 3 years ago

    Cease your investigations into this conspiracy theory immediately. We must not anger the new reddit designers

  • kgwxd 3 years ago

    I use my phone as little as possible, I just realized the only 2 things I type into my mobile browser (currently safari) on a regular basis are new(s.ycombinator.com) and old(.reddit.com). Never put that together before, it's been like a decade.

    I wasn't able to reproduce the bug.

  • can16358p 3 years ago

    Yeah I was trying and all I was getting suggested is old.reddit.com

obituary_latte 3 years ago

Unfortunately, connecting MacOS Safari debugging crashes the debugger when the iOS Safari crashes as far as I can tell.

avanai 3 years ago

“Best “ does it for me. 16.1.1

Turning off “Safari Suggestions” in settings fixes it.

  • Veuxdo 3 years ago

    Funny, with Google you typically want to add "-best" to your searches to cut down on SEO spam.

    • layman51 3 years ago

      Interesting, I had never heard of this tip before. How do you do this though? Do you just add it at the end like a flag? (e.g. "sparking water -best" ?) In general, I thought these kinds of search engine commands were being phased out, but it looks to me like it would filter out those garbage articles that would bring up results like "top/best 15 brands of sparkling water" etc.

      • czx4f4bd 3 years ago

        That still works on Google. You can put it anywhere in the query. The "-" is a negation operator that tells the engine to exclude results containing the following word.

        They've actually apparently introduced a few new operators since the old days, which I found surprising. For example, $ for prices, # for hashtags, and .. for ranges of numbers. https://support.google.com/websearch/answer/2466433?hl=en

    • andirk 3 years ago

      I often do the opposite: "best [search query, usually a product] in the world".

  • twobitshifter 3 years ago

    I can only get to bes before it crashes, turning off safari suggestions fixed it. I think it’s maps/shopping related, old navy and Best Buy were the suggestions.

ok_dad 3 years ago

None of the strings crashed my safari, I'm on whatever the newest version of iOS is, just updated it yesterday.

edit: Also, I'm on the iPhone 11 or 12 I think? So maybe model has something to do with it?

  • yamtaddle 3 years ago

    It seems to be tied to "Safari Suggestions", so if you have that turned off you won't see the crash.

    • ok_dad 3 years ago

      Not for me, I actually turned that off just now, I didn't know it was "on". Maybe a hacker who resides on my iPhone fixed the bug for me?

      Also, I'm on the iPhone 11 or 12 I think? So maybe model has something to do with it?

      • BudaDude 3 years ago

        > Maybe a hacker who resides on my iPhone fixed the bug for me

        Wholesome hacking

        • ok_dad 3 years ago

          If you "hacked" a system, I would assume the first thing you'd do is patch any of your own known exploits, and others, so you don't lose ownership to some other hacker, right?

          • tlholaday 3 years ago

            If you ever consider a career change, the parasitology field could advance from your intuitions.

    • brewdad 3 years ago

      I'm on 16.1.1 with Safari Suggestions turned on. No crashes here. iPhone 12 Pro.

      • yamtaddle 3 years ago

        Wild! Mine crashed the first try, turned off Safari Suggestions, crash behavior gone.

        Turned it back on... still no crash. Search engine makes no difference.

        Wonder if it's a cache thing and disabling Suggestions cleared that, removing whatever bad data was hanging around, or if it was a purely server-side bug and they've already fixed it.

        [EDIT] Some others saying it stopped happening, so may have been fixed.

  • lzooz 3 years ago

    Same here, impossible to make it crash, and yes suggestions are on. (Although I must say I never get any suggestions for some reason)

jaywalk 3 years ago

I had a bunch of open tabs in Safari, and typing "old" (space) not only crashed Safari but got rid of almost all of the open tabs. It was all stuff I needed to refer back to, and yeah that's not a great way to manage stuff like that. Of course bookmarks would be the right way. But now it's gone.

So be careful.

  • bombcar 3 years ago

    That's actually an interesting datapoint, it means Safari is crashing so hard it flushes the tab storage; normally "killing" (especially a background kill) Safari won't do that.

jakedata 3 years ago

"Turning off “Safari Suggestions” in settings fixes it." I should have turned that off before. It certainly stopped this one weird crash.

  • SoftTalker 3 years ago

    I turn off search suggestions, auto-complete, auto-correct, intellisense and its ilk, everywhere I can.

    • pas 3 years ago

      I like the autocomplete from my bookmarks and history. What's mind boggling is how slow it is (on Firefox on a beefy PC + SSD + Windows)

hnews_account_1 3 years ago

It crashes for me without even typing the space at the end. Works for best too.

josefresco 3 years ago

Imagine having a domain or business name starting with "old" - nightmare scenario!

Old Spice, Old Navy...

  • stardenburden 3 years ago

    According to the top commentator that's exactly why it's happening

  • pas 3 years ago

    how is it a "nightmare scenario"? it's not ideal, but it doesn't sound bad (there are other browsers, workarounds, etc. it's not like these sites are forever gone because of a ransomware or SSL key exploit, etc)

    • josefresco 3 years ago

      I can't imagine "Old Navy" customer support is going to have much success telling iOS customers to install another browser (I'm not even sure that solves it).

  • robbyking 3 years ago

    My guess is a lot of the crashes come from old.reddit.com

    • Regnore 3 years ago

      Is old.reddit.com very unstable for everyone else in safari or just me? On my past 3 iphones through multiple iOS versions I can't browse for more than 10 minutes without eventually hanging/crashing safari. It seems to happen most frequently after browsing posts with images

      • ljm 3 years ago

        New Reddit it like that. Page randomly resets no matter what you’re doing. Dumps you back at the top and asks if you want to install the app.

        They are desperate about getting you to download their app.

        • Gene_Parmesan 3 years ago

          To the point where it feels like they have pretty obviously intentionally gimped the mobile website to drive you to the app - which just makes me way less likely to install it. Page loads take absolutely forever, videos almost never work first try, their image galleries are essentially unusable... None of these are issues on desktop web (on the same network).

        • mmis1000 3 years ago

          New reddit is just harmful to your laptop battery. It fulls one cpu core all the time if you don't block the update websocket. Truly the worst written react app I ever saw.

        • orangepurple 3 years ago

          I installed an app. A 3rd party app. To occasionally obtain useful info from that site whose designers are hostile.

      • bargle0 3 years ago

        I haven’t had any trouble with it.

netsharc 3 years ago

Can someone contribute more than "lol, me too!" and figure out which API endpoint it's hitting, what it's returning and guess why it's crashing? I don't have an iOS device otherwise I'd do it...

  • acdha 3 years ago

    It’s their own “Safari suggestions” service. I don’t know if that’s device local or some Apple API which changed but disabling it prevents the crashes.

    • bombcar 3 years ago

      I wonder if "Safari Suggestions" is crossing a privacy line with its API it shouldn't and iOS nukes the app from orbit.

      • acdha 3 years ago

        I doubt that since it’s their own code but I’d easily believe that it hits an API endpoint which just started malfunctioning. The description is vague but it appears to retrieve a bunch of different kinds of information from some Apple service. Clearly a massive test coverage miss if my speculation is right.

        • superjan 3 years ago

          I think he is joking.

          • bombcar 3 years ago

            It's partially a joke, but as anyone who has worked with a complex system, things like this can happen. A privacy control is changed somewhere, but not activated until later, and suddenly one day something stops working.

          • acdha 3 years ago

            I wasn’t sure about that and it’s certainly not without precedent that different parts of the same company might do something like that.

  • dpkirchner 3 years ago

    Someone from Apple can probably attach a debugger and figure out the problem, but most of us are going to be in the dark.

    • cozzyd 3 years ago

      set up a proxy, install its certificate and mitm it? Might work at least...

skykooler 3 years ago

In my case I don't even need to type the space - the moment I press "d" it crashes.

  • obituary_latte 3 years ago

    Same for me. Doesn't happen in Firefox which is strange because I thought all browsers used the same Safari engine...

    • skykooler 3 years ago

      Firefox on iOS uses webview for page rendering, but the url suggestions (which seem to be the cause of the crash) are separate and are handled by firefox's code.

whoisjuan 3 years ago

“best “

“bedt “

“old “

“wel “

“dta “

All of these crash safari in iOS for me.

What’s strange about this bug is that it happened overnight for multiple iOS version.

It seems to be a server bug that happens with the requests that populate the suggestions.

Turning off safari suggestions fixes it.

  • yamtaddle 3 years ago

    Concur, smells strongly of a server-side change, that it's hitting multiple versions all the sudden. Which might mean it's also relatively quick/easy fix?

    • marginalia_nu 3 years ago

      > smells strongly of a server-side change

      Doesn't need to be. Some software nowadays can toggle feature flags clientside behind your back. I know Firefox does (or did?) this. Creepy as all fuck.

    • copperx 3 years ago

      > quick/easy fix

      Wait, you don't want them to fix the client crashing on malformed data?

  • coldcode 3 years ago

    It's not universal, my iPhone 14 pro with 16.1 does not crash for any letters I can type, spaces or not. Suggestions work fine for me. Clearly there is another factor not obvious causing the crash. In any case Apple would see a whole influx of crash reports (assuming they are as anal about them as I used to be).

nneonneo 3 years ago

I wonder if a crash log gets generated - Settings -> Privacy -> Analytics & Improvements -> Analytics Data will have it if so. Unfortunately, I can't reproduce the issue on my phone (iOS 16.1, Canada)

sneak 3 years ago

Turning off Safari Suggestions is one of the first and most important privacy tweaks on a new iPhone. Otherwise every keystroke you type in the address bar gets sent to Apple in realtime.

  • happyopossum 3 years ago

    > most important

    Really? No - there is no privacy threat surface with suggestions, unless you assume that Apple and everyone who works there is lying about it?

    ref: "any information sent to Apple does not identify you, and is associated with a 15-minute random, rotating device-generated identifier"

    [0]https://www.apple.com/legal/privacy/data/en/siri-suggestions...

    • sneak 3 years ago

      Apple also said:

      “We do not provide any government agency with direct access to our servers, and any government agency requesting customer content must get a court order.”

      Either Snowden is lying, or Apple is.

      There are lots of potential explanations here. It’s possible and even likely that in an org as large as Apple, the people writing press copy simply are not exposed to all of the details of all of the moving parts that enable realtime surveillance of their userbase. They can also use a different definition of “direct access” (while providing realtime unsupervised access via API, but not via physical (“direct”) entry to a datacenter building).

      Apple also claims (in HT202303) that iMessage is end to end encrypted, when for the vast majority of the userbase of iMessage, Apple has copies (readable to Apple) of the endpoint private keys and can, if they wish, decrypt and read and store anyone’s iMessages in realtime as if they were not encrypted at all. It’s still “end to end encrypted” if there is a key escrow backdoor in the system that defeats the end to end encryption. It’s like putting a $5 gym lock on a cardboard box. It’s not lying to say that you locked it up.

      You can make factually accurate statements about certain specific things that paint a picture or strongly imply a state of affairs that is diametrically opposed to the truth. Apple is, as far as I can tell, the best in the world at this type of misdirection. It even fools professional journalists.

      For example: if they log the client IP of all requests to the API, the statement you quoted holds true - and yet it is still trivial to make a single query to a) relate all of your API requests together, and b) relate them to your identity via Apple’s many other APIs. The “rotating” implies that it is unlinked, but does not guarantee that it is unlinkable (eg from having client IP and timestamp columns in the data).

      Apple is skilled at lying by saying only very specific, true things, as confusing as that may sound.

      It is also a mistake to assume there is no importance because there is no threat model. Even if the data is never linked to you, it is a privacy violation for the keystrokes to leave your device if you don’t want them to. For a contrived example, you don’t need a threat model or ID linkage to not want your neck-down nudes leaked. A non-identifiable privacy violation is still a privacy violation.

    • hyperdimension 3 years ago

      > "is associated with a 15-minute random, rotating device-generated identifier"

      Can someone clarify why that's done or how it could even be useful? It just seems (to me, naïvely) like if you're going to rotate the identifier every fifteen minutes, why even bother?

    • raxxorraxor 3 years ago

      > Apple and everyone who works there is lying about it?

      Perhaps we should ask people that bought iTruth for $299. But seriously, you are way too trusting of corporations and their public statements.

omoikane 3 years ago

Reminds me of the bug where certain strings would crash apple products.

https://nvd.nist.gov/vuln/detail/CVE-2018-4124

https://xkcd.com/1957/

lizardactivist 3 years ago

You thought only a bug inside your app could crash it?

Now your browser can crash because of a bug on a server, somewhere, which you weren't planning on browsing to, let alone even knew existed.

The future truly is here.

  • hyperdimension 3 years ago

    "A distributed system is one in which the failure of a computer you didn't even know existed can render your own computer unusable."

    -- Leslie Lamport

  • madeofpalk 3 years ago

    It’s still a bug in the app.

    “Fail gracefully” for malformed responses. If a JSON API all of a sudden starts returning a cloudflare html error response, you shouldn’t crash your iPhone app.

Overtonwindow 3 years ago

No, doesn’t crash for me.

  • yamtaddle 3 years ago

    In a blank address bar, not just anywhere. Crashed mine, sure enough, first try. I'm on 16.1 (haven't updated to 16.1.1 yet).

    • Overtonwindow 3 years ago

      I try to avoid updating my iPhone for as long as humanly possible. I find updates generally bring bugs, features I don’t want, apps I don’t want, and sometimes taking away things I like.

    • ActionHank 3 years ago

      This is the important point I think. Version of Safari is tied to version of OS.

      • wging 3 years ago

        I don't think 16.1.1 is unaffected. I'm on iOS 16.1.1 and can reproduce it. Blank address bar -> "old " -> crash. The second time I didn't need the space, as others have also reported.

  • woodruffw 3 years ago

    It does for me. It's probably a tuple of (Safari, iOS, iPhone) version specific, for a couple of versions of each.

TheMechanist 3 years ago

Has anybody reproduced this in… Firefox (on iOS of course)?

Asking for a friend who has Safari search suggestions disabled (so Safari does not crash) but encounters Firefox crashes regularly.

fonix 3 years ago

just got beta 2 installed and it did infact crash in safari

gjsman-1000 3 years ago

For goodness sake Apple - this takes the cake for weirdest bug since the early Windows 10 Preview build which caused random letters to be missing from text...

shon 3 years ago

Can confirm. For me a reboot, administered immediately after 3 consecutive crashes a few hours ago, seemed to fix the issue.

deafpolygon 3 years ago

Haven't updated to 16.1.1 and no issues.

QuadmasterXLII 3 years ago

in my phone nothing happens with "old ", but reproduced with okd

doesn't crash in private mode

  • jfk13 3 years ago

    My guess is that it depends on your browser history (and maybe other factors that influence what autocorrect or autocomplete wants to propose).

gnicholas 3 years ago

Huh, not replicable for me, in 16.1, on iPhone 13 Mini on EN-US. Was this added in 16.1.1?

  • alwillis 3 years ago

    I’m running the public beta of iOS 16.2; typing “old” in the address/search bar crashes Safari.

DefineOutside 3 years ago

Crashes for me with "old" on iOS 16.0 with an iPhone 11

alkonaut 3 years ago

No it doesn’t. Better repro steps needed.

Edit: best guess so far: something regional or language dependent? Looks like US-specific search suggestions?

My non-crashing circumstances:

(iPhone11, iOS 15.6.1, Swedish language, in Sweden)

  • numpad0 3 years ago

    People are suggesting that it seems to come from Google suggestions, try first letters for local equivalents of Old Navy, Starbucks, Walmart, etc.

    • jtbayly 3 years ago

      I have DDG as my search engine.

      Crashes on my phone running 16.1.1.

      People are suggesting it might be en-US only.

      • Lendal 3 years ago

        I use DDG as my search engine on 16.1.1, and live in Florida (the English speaking part), but I couldn't reproduce it.

        Must be something else more complicated.

  • josefresco 3 years ago

    Crashed for me (iPhone 14, iOS 16.0.3)

  • throwawayment 3 years ago

    are you trolling? type it into the search bar and it does crash

    • alkonaut 3 years ago

      It’s not enough to do that. There is something more specific required: a specific version of iOS, a specific language, a particular phone, some setting, something in the search/url history etc.

      But it clearly doesn’t reproduce across all devices/versions/settings with iOS Safari. Better repro steps needed.

      • dpkirchner 3 years ago

        The repro steps are accurate and sufficient on their own -- following the described steps does crash Safari for the reporting user (and many of us). What is missing is the complete device configuration which is distinct from steps (and would probably be overwhelming, in any case).

        • alkonaut 3 years ago

          Tbf the “steps” in the tweet didn’t even specify where in Safari to enter the text (text area, search bar, anywhere). So even absent the relevant config I’d say it’s a pretty lacking bug report in the steps too.

    • ncphillips 3 years ago

      Doesn’t happen for me

    • bartread 3 years ago

      They're not trolling. I typed it into the search bar. Safari didn't crash.

      Is the person who wrote the tweet trolling? Probably not either.

      But what type of iOS device do they have? Which version of iOS are they running? Which language and locale?

      Those things matter. Other things that apparently shouldn't matter might matter as well: other apps installed or running, notification configuration, how many tabs they have open, whether they're connected via WiFi or 4G, etc.

      We don't know any of that stuff. As GP said: better reproduction steps needed.

      As it is this bug report is barely above the kind of "hurr durr it dern't work" support ticket that really pisses off everyone in my team, and indeed every support engineer, and software engineer I've ever worked with.

      • yamtaddle 3 years ago

        1) It's a tweet, not a bug report.

        2) The very first thing any actual engineer on Apple's payroll ought to try to reproduce it will work (most recent official iOS, "happy path" settings that have Safari Suggestions turned on)

        • bartread 3 years ago

          1) Yes, people use tweets to report bugs all the time. The problem with nitpicking is that anyone can pick your nits back, which leads me to...

          2) Yes, they will, but that won't necessarily repro the bug without knowing which type of device it's running on, so at the very least they might need to check several different devices, and even then other factors can come into play that go beyond basic device configuration.

          I'm sure, given that this appears to affect at least a significant minority of users, that Apple will be all over it and will find a way to repro it in relatively short order. Yet, at the same time, it's obscure enough to have escaped their no doubt reasonably robust QA processes before release, so it may well be there are some wrinkles to reproduction that aren't immediately apparent.

          • yamtaddle 3 years ago

            > 1) Yes, people use tweets to report bugs all the time. The problem with nitpicking is that anyone can pick your nits back, which leads me to...

            People might. This one didn't even @ Apple. Jesus, HN (a sentiment the Tweet author has also expressed by now on the tweet thread, as they're apparently reading this and seeing y'all acting like this in public)

            > 2) Yes, they will, but that won't necessarily repro the bug without knowing which type of device it's running on, so at the very least they might need to check several different devices, and even then other factors can come into play that go beyond basic device configuration.

            Twitter figured this out in like 30 minutes. It's Safari Suggestions on any recent iOS. This may not be the platonic ideal of a bug report but it's not a bug report and also it happens, by chance, to be entirely fine even if it were, because this is super-easy to figure out.

            • toofy 3 years ago

              > Twitter figured this out in like 30 minutes. It's Safari Suggestions on any recent iOS.

              no, it really didn’t.

              i’m on 16.1.1 with suggestions on and it does not crash.

            • alkonaut 3 years ago

              > It's Safari Suggestions on any recent iOS.

              ... and what more? in US? On en-US language? Because it doesn't seem to be that universal.

      • abxytg 3 years ago

        "support ticket that really pisses off everyone in my team, and indeed every support engineer, and software engineer I've ever worked with"

        I'm sorry to to be the one to break this to you -- you have only worked with bad engineers.

        If you get a bug report like this, where some simple user action like typing three characters is causing client devices to crash, you better be more mad at your busted ass system than a sparse bug report.

        • alkonaut 3 years ago

          I think the suggestion that “X crashes Safari for at least one user” vs “X crashes Safari for all users” is a pretty different severity so the relevance of this story hinges on if it’s some minority of users or a large majority, or even all users.

          I don’t think it’s unreasonable to try to narrow it down here simply because the story sort of hinges on the magnitude here.

      • mikelward 3 years ago

        It's not the user's job to figure out that it only happens in Florida on Tuesdays. They may not even be able to change all the relevant variables.

        Apple developers should look at the stack trace that should either be sent automatically when it crashes (if privacy settings allow), or with a problem report sent from the device.

        If this is a widespread issue, devs should have already gotten an automated alert.

      • josefresco 3 years ago

        iPhone 14, iOS 16.0.3 English, US, No Tabs, Wifi

        Launch Safari

        Tap address bar

        Type "old"

        • bartread 3 years ago

          Yes! See, this is what we need more of!

          • afandian 3 years ago

            Surely there's an automated battery of configurations that devs can test against if they really want to fix the bug?

      • bombcar 3 years ago

        iPhone 8, iOS 16.1 (20B82) English, US, No Tabs, Wifi

        Launch Safari

        Tap address bar

        Type "old "

        Boom!

  • qubert2000 3 years ago

    Crashes on mine, don’t put the quotes…

Keyboard Shortcuts

j
Next item
k
Previous item
o / Enter
Open selected item
?
Show this help
Esc
Close modal / clear selection