Virus in Safari preventing it from launching

safari

I think I got a virus in Safari because I was downloading an app and now Safari will not open. It keeps asking to reopen the last windows closed when opening and whether I click yes or no it doesn't matter. It then crashes and shows a "send a report or ignore" option because Safari will not open.

I already tried restarting my computer and updating Safari. There was a post somewhere else that said something about putting a "com.apple.safari…" item on my desktop out of the Library/Preferences folder, but I do not have that. Must be because of the new update or something.

REPORT: Crashed Thread: 16 Exception Type: EXC_BAD_ACCESS (SIGSEGV)
Exception Codes: KERN_INVALID_ADDRESS at 0x0000000000000020
External Modification Warnings: Thread creation by external task.

Please help me.

Best Answer

The folder you mentioned is ~/Library/Saved Application State/com.apple.Safari.savedState

You can find it like this…

  • Switch to the Finder & hit ⌘ Command-N to generate a new window.
  • Hit ⌘ Command-⇧ Shift-G for Go To…
  • Copy/paste the following [including the tilde ~ sign]

    ~/Library/Saved Application State/com.apple.Safari.savedState

  • Click Go

  • Delete the entire contents of that folder; it should be just a few files called data.data, window_1.data and windows.plist

Try launching Safari again.