Benches Mail, Safari and messaging

15

Safari crashing due to Safe Browsing option: solution

apple Verified

Imported from the Apple Support Forums via the Wayback Machine 🔗

Hi,

I have had the "Safari crash syndrom" due to the Safe Browsing option selected.

The problem appeared suddently and the only solution known so far to my knowledge was to turn off this option.

I have found the culprit: it's a file named "SafeBrowsing.db" that blocks Safari when corrupted I presume.

In my case, the location of this file was: private/var/folders/OoeVMD9vGTOfK6IApExpek
+TM/-Caches-/com.apple.Safari/...

I suppose that "OoeVMD9vGTOfK6IApExpek
+TM" is different for each user. Anyway, deleting the file restores the full access to the Safe Browsing option and Safari (or WebKit) does not crash anymore.

Hoping this can help people experiencing the issue...

15 replies

Sign in or join Beachball Help to reply.

  1. 0

    Klaus1

    Imported from the Apple Support Forums via the Wayback Machine 🔗

    Interesting!

    The safebrowsing.db file contains the blacklists from Googleโ€™s Safe Browsing Initiative - the file was probably created when you first launched Safari 3.2, and if you have the browser open, the file is modified approximately every 30 minutes.

    In other words it is part of Safari 3.2's new anti-phishing security feature. As it is a cache file it would presumably be re-created next time you open Safari, but would have to rebuild its cache of potentially bad sites.

    So, are you saying that deleting that cache file not only corrects the crashing usually observed in Thread 3 of the crash log, but preserves the ability to still have the anti-phishing feature turned on?

  2. 0

    jean-Luc Evrard

    Imported from the Apple Support Forums via the Wayback Machine 🔗

    Yes, deleting the file restore the full Safe Browsing feature... ๐Ÿ™‚

    In fact I found this using two approaches:

    1) first I create a new account on my machine and surf with Safari and Safe Browsing enabled => no crash: this means that a local file is the problem otherwise Safari should crash

    2) I return to my main account and use fseventer to track all file accesses done by Safari: when I saw SafeBrowsing.db as a target I feel that the problem was there... And that was true...

    So, for one or other reason, when this SafeBrowsing.db file becomes corrupted, Safari will crash. I have filled a bug report to Apple suggesting that enable/disable Safe Browsing option deletes the .db file to allow "simple" users to restore safe browsing activity in Safari without crashes...

  3. 0

    Klaus1

    Imported from the Apple Support Forums via the Wayback Machine 🔗

    Useful to know, thanks!

  4. 0

    WZZZ

    Imported from the Apple Support Forums via the Wayback Machine 🔗

    Many thanks for this, but I'm not sure I understand the path to this file. Is it inside ~library/caches/com.apple.Safari or is it located in private/var/?

    the location of this file was: private/var/folders/OoeVMD9vGTOfK6IApExpek
    +TM/-Caches-/com.apple.Safari/...

    I don't see Caches anywhere inside private/var

    (But I haven't yet installed 3.2.1-because of this and other issues - maybe that's why I don't see it. I would like to have this fix ready when I do install soon).

    Message was edited by: WZZZ

  5. 0

    iBod

    Imported from the Apple Support Forums via the Wayback Machine 🔗

    Is it inside ~library/caches/com.apple.Safari or is it located in private/var/?

    On Tiger 10.4, it's under ~/Library/Caches/com.apple.Safari (or was last time I checked ๐Ÿ˜‰ )

    The /private/var folder is for people using Leopard 10.5.

  6. 0

    WZZZ

    Imported from the Apple Support Forums via the Wayback Machine 🔗

    Thanks iBod.

  7. 0

    Klaus1

    Imported from the Apple Support Forums via the Wayback Machine 🔗

    The /private/var folder is for people using Leopard 10.5

    Well, I am running Leopard and my path to that file is:

    Home/Library/Caches/com.apple.Safari (this is a folder)/SafeBrowsing.db

    I don't have (or can't find) a 'private/var' folder.

  8. 0

    iBod

    Imported from the Apple Support Forums via the Wayback Machine 🔗

    Jean-Luc is running 10.5 as well, yet his appears to be in the /private/var area. In the past when I've asked people to try removing the SafeBrowsing.db file they've replied saying it's not under their home folder, so now I'm as confused as you... ๐Ÿ™‚

  9. 0

    Klaus1

    Imported from the Apple Support Forums via the Wayback Machine 🔗

    Excellent! ๐Ÿ˜‰

    Am I supposed to have a Private/var folder - or even any Private folder?

    Coz I ain't...

  10. 0

    iBod

    Imported from the Apple Support Forums via the Wayback Machine 🔗

    Yep, it should be there (on 10.5 at least) but it's one of the hidden folders. Try using the Finder > Go to folder menu option to access '/private/var'.

  11. 0

    Klaus1

    Imported from the Apple Support Forums via the Wayback Machine 🔗

    Thanks that worked, but that folder seems to only contain stuff I would never touch!

  12. 0

    iBod

    Imported from the Apple Support Forums via the Wayback Machine 🔗

    ๐Ÿ™‚

    Out of interest, can you find another SafeBrowsing.db file if you drill down into the folders mentioned by Jean-Luc? I'm wondering if one location is being used by Safari 3 and the other by Safari 4.

  13. 0

    Klaus1

    Imported from the Apple Support Forums via the Wayback Machine 🔗

    No, not there. There are no 'cache' or 'Safari' folders in there. In fact the folders that are in there, and actually have something in them, and are not locked, have (to me) incomprehensible content, and I shall never go there again! ๐Ÿ˜€

  14. 0

    jean-Luc Evrard

    Imported from the Apple Support Forums via the Wayback Machine 🔗

    So, in my case the SafeBrowsing.db WAS NOT IN MY HOME folder.

    To be sure, I look again and there is a little mistake in the path that is :

    private/var/folders/
    Oo/OoeVMD9vGTOfK6lApExpek
    +TM/-Caches-/com.apple.Safari/SafeBrowsing.db

    But anyway not in my home folder... I am under 10.5 and maybe the path for this file is different under 10.4, I don't know...

    At the level private/var/folders/ there is 7 folders labelled by two letters (Gk, Kh, MP, Oo, qE, etc...). I suppose one folder per user?

    A quick look at ~/Library/Caches/com.apple.Safari/ shows me that this folder exists but is empty...

  15. 0

    jorgedsan

    Imported from the Apple Support Forums via the Wayback Machine 🔗

    Thank you it works perfect for me again. I use sudo find /private/var -name "SafeBrowsing.db" in terminal to find this corrupted file.