Skip to main content
X

Send us a Topic or Tip

Have a suggestion for the blog? Perhaps a topic you'd like us to write about? If so, we'd love to hear from you! Fancy yourself a writer and have a tech tip, handy computer trick, or "how to" to share? Let us know what you'd like to contribute!

Thanks for reaching out!

Don’t Panic! Understanding & Troubleshooting Kernel Panics in macOS

If you’re reading this, there’s a good chance your Mac just suffered a kernel panic and you’re searching for what to do next. We’ve got the answer, and it’s simple: Don’t panic. Instead, take a deep breath, relax, and know that almost all kernel panics are transitory; events that aren’t likely to keep repeating. You don’t need to live in fear that in the next minute, your Mac will crash once again.

On the downside, you likely lost any unsaved work up to the point of the kernel panic. There’s a remote chance that some work may have been saved in the last Time Machine backup.

What a Kernel Panic Is
In UNIX-based operating systems, such as OS X and macOS, a panic is an unrecoverable error that was detected by the operating system kernel. It’s unrecoverable because the kernel, the basic heart of the operating system, can’t figure out how to get back on track. In essence, it’s lost, and not sure how it got here. When this occurs, the kernel runs the panic function code that tells it what to do in these situations. Unfortunately, about the best the kernel can do once it runs the panic code is collect some data about the current condition of the processors, and what processes were running, and then halt or restart your Mac.

(The older style kernel panic text stayed until you restarted your Mac.)
(The older style kernel panic text stayed until you restarted your Mac.)

In OS X Lion and earlier, a panic resulted in the screen dimming and a message in multiple languages that said: “You need to restart your computer. Hold down the Power button for several seconds or press the restart button.” The message was white text on a black background.

OS X Mountain Lion changed the look and sequence by automatically restarting the Mac, and then displaying a text message similar to the one above, but with black text on a gray background.

What a Kernel Panic Is Not
Kernel panics are sometimes confused with application crashes, startup problems, or sustained beach balls. The big difference is that with a kernel panic, your Mac will display the kernel panic message as well as halt or restart on its own.

Check for Recurring Kernel Panics
It’s a bit more difficult in the older versions of OS X to discover if the panic will recur; that’s because you really need to have the same conditions in place: the same apps running, and the same background processes; you also need to perform the same task that precipitated the panic, such as saving a file, loading a web page, or launching an app.

(Selecting Open will launch all the apps that were running when your Mac crashed.)
(Selecting Open will launch all the apps that were running when your Mac crashed.)

With OS X Mountain Lion and later, your Mac saves the log of which apps and process were running, and will offer to reopen them when it restarts after a kernel panic. Simply click the Open button on the “You shut down your computer because of a problem.” dialog box when it’s presented during the login process.

Once your Mac has finished launching all the apps and processes, you should attempt to perform the same tasks you were involved in when the panic originally occurred. If there’s no panic after a reasonable amount of time, it’s probably not worth further troubleshooting attempts, and can just be chalked up to gremlins and ghosts.

Troubleshooting Recurring Kernel Panics
If, on the other hand, a kernel panic occurs soon after you click the Open button in the dialog box, you likely have a problem you need to track down.

One of the options in the “Your computer was restarted because of a problem” dialog box is “More Info.” Pressing this button will cause the dialog box to expand and display the panic report, a detailed look at what occurred at the time of the panic.

(You can view the panic report, which includes details about the kernel panic.)
(You can view the panic report, which includes details about the kernel panic.)

Don’t worry if you already dismissed the dialog box; you can view the panic log with the Console app, located at:

/Applications/Utilities/

Simply launch the Console app, then in the sidebar, select the System Reports item, and then select the Kernel Panic item (the actual name will include the terms kernel and panic, but it will also have the date and the name of your Mac in the title).

console1280
(The panic report includes the calling app that was likely involved in the kernel panic, as well as active kernel extensions.)

Reading the Panic Report
The panic report includes the memory address and, in most cases, the name of the process that called for the panic function to be invoked. The calling process may be helpful, but it doesn’t always indicate what actually caused the event that led up to the panic; only the last process in the chain of events.

Other important information in the panic report is the list of loaded kexts as well as the last loaded kext. Kexts are extensions to the kernel that can be used to add functionality to the operating system. Apple provides many different kexts, but so do some third-party developers. If the last loaded kext was from, say, a third-party system utility you installed, that may be a good indication of what caused the panic, or at least, what was involved in the panic.

Peripherals
Kernel panics can be caused by hardware as well as software. Checking for a hardware cause for a panic is fairly straightforward. Start by isolating all external peripherals you have connected to your Mac, except for the keyboard and mouse or trackpad.

Start your Mac in Safe Mode by holding down the shift key and pressing the power button. Keep pressing the shift key until your Mac finishes starting up.

If your Mac is able to start in Safe Mode, then its basic hardware is in good shape. Restart your Mac to leave Safe Mode. Once back in normal mode, try running a few apps. If everything is OK, then the kernel panic was likely a transitory event caused by an app or process in combination with another app, process, or device not getting along; it may also have been caused in part by one of the peripheral items you disconnected.

Shut down your Mac, reconnect a peripheral, and then restart your Mac. Try opening the same apps that were in use at the time of the panic. If everything seems OK, then shut down and connect the next peripheral. Continue the connect-and-test process until all your devices are reconnected.

If you find a device that causes a panic, check for updates to the device’s drivers, as well as updates to any apps that are involved.

Apps and Software
Just like you did for checking the Mac’s hardware, you can use Safe Mode to test for apps and other software that are causing the kernel panic. Safe Mode keeps startup items from being loaded, as well as third-party kexts and fonts (other than those used by the system). Once you’re running in Safe Mode, you can disable startup items by using the Users & Groups preference pane.

loginitems1280
(Recurring panics can be caused by login items.)

After you disable startup items, use Font Book to validate your installed fonts. If any fonts come up with errors, use Font Book to disable the indicated fonts.

Go ahead and restart normally. If no kernel panic occurs, add one of the startup items back, then restart. Repeat and test each startup item until all have been restored.

Internal Hardware
Your Mac’s internal hardware, including RAM and storage drives, can be a source of kernel panics. You can use Apple diagnostic routines to test your Mac. You’ll find instructions for how to do this in the Rocket Yard Guide: How to Run and Interpret Your Mac’s Built-in Diagnostic Routines.

Reinstall the Mac OS
Because the OS can also be a source for kernel panics, usually due to corrupt system files, if you can’t resolve the panics, our last tip is to reinstall the OS. You can use the Recovery HD partition to perform the reinstall. Reinstalling the OS should replace any corrupt system files, while retaining user data and apps.

For more Rocket Yard guides and tricks, please visit our Tech Tips section.

Tom Nelson
the authorTom Nelson
Writer
Tom has been an enthusiastic Mac user since the Mac Plus. He’s also been known to dabble in the dark side, otherwise known as Windows, and has a well-deserved reputation for being able to explain almost anything to anybody. Tom’s background includes more than 30 years as an engineer, programmer, network manager, software tester, software reviewer, database designer, and computer network and systems designer. His online experience includes working as a sysop, forum leader, writer, and software library manager.
Be Sociable, Share This Post!

Leave a Reply

10 Comments

  • I recently tried installing macos Catalina using the dosedude1 patcher on my El Capitan MacBook
    I downloaded the os and created a bootable drive but it wouldn’t finish the installation process, I immediately assumed my download was faulty probably because of slow internet speed, and now whenever I try to open recovery mode or internet recovery my Mac encounters a kernel panic, is there anyway of getting rid of this problem without having to open up my MacBook

  • Yeah did all that and it’s still doing panic crashes…..

  • My iMac (late 2015 model)suddenly began experiencing kernel error/Restarting; it would run for a few minutes and then restart. I tried everything suggested by Apple and nothing worked. In the end I bought a new iMac and restored it yesterday from my Time Capsule. I started it this morning for the first time and within a few minutes, the same issue occurred. It restated, same message and report says Kernel error. Any suggestions? I am trying not to lose all my stuff from my previous computer.

    • If you transferred all your data, that’s most likely causing it, since i doubt the hardware is faulty in 2 macs.

  • I just partitioned by 1T hard drive on my Mid 2011 iMac. I downloaded and installed macOS High Sierra on my 2nd partition. My 1st partition runs os 10.8.5 Mt Lion. I also installed 8gm (2-4s) in the top slots and put the original 2-2s in the lower slots for a total of 12GB. When High Sierra finished installing on the new partition in booted into it with no problem. I then tried to restart with option pressed and got a black panic kernel display. I cannot boot back into OS 10.8 but I can get back to Sierra via Startup Disk. What have I done as this is happening every time I try. Could the ram upgrade have anything to do with this? Help, Thx,
    James. 580-916-5498

  • Great article! After years of suffering from unexpected shutdowns and kernel panic issues until finding out that the problem is hardware related, which involved replacing a faulty capacitor.

  • Got anything for EXC_BAD_ACCESS (SIGSEV), EXC_I386_GPFLT, EXC_CORPSE_NOTIFY?

    This happens all the time. Often with safari and often involving launchd

    I realize your job is not troubleshooting, but I thought I’d ask…

  • Beware Adobe Flash, which may cause freezes, kernel panics and random reboots on some Mac models. Really obnoxious.

    • THANK YOU! I’d been having those issues for a month now. Apple Support asked me to do a lot of useless stuff that didn’t solve the problem. I mentioned to them the only change I had done to the laptop before the errors start happening was to install Adobe Flash. And apparently just removing it from the applications folder doesn’t delete it completely, so after I downloaded the uninstaller and removed it from my laptop the panics stoped (for now at least)