Download Article Download Article

This wikiHow will teach you how to force a kernel panic on a Mac. Be aware that forcing a kernel panic will cause you to lose all unsaved data and result in a system crash.

  1. 1
    Disable System Integrity Protection. For newer Macs, system integrity protection is used to stop the user from harming their system. You can disable this by turning your computer off, then, while holding the power button holding down Command+R at the same time. Click "Utilities and Terminal". Then type csrutil disable and press Enter. Restart your computer by clicking the Apple Symbol and pressing restart.
  2. You can open it from the Utilities folder in Finder under the Applications tab, or search for it using Spotlight.
    Advertisement
  3. Type client$ sudo dtrace -w -n "BEGIN{ panic();}" into Terminal and hit Enter.
    • client$ will be replaced by your account name (e.g., wikihow$ sudo dtrace -w -n "BEGIN{ panic();}").
  4. This will allow the kernel panic to commence.
  5. Once the system has rebooted, you should be able to access the crash logs, either directly from the window that opens up or from the computer's diagnostic reports.
  6. Advertisement

Expert Q&A

Ask a Question
200 characters left
Include your email address to get a message when this question is answered.
Submit
Advertisement

Tips

  • This can be useful if you're attempting to debug something.
  • The kernel panic screen will vary depending on which version of Mac OS X or macOS you're using.
    • Mac OS X 7 (Lion) and higher will display a message that starts with, "Your computer shut down because of a problem."
    • Mac OS X 6 (Snow Leopard) and earlier will display a message that starts with, "You need to restart your computer."
Submit a Tip
All tip submissions are carefully reviewed before being published
Thanks for submitting a tip for review!
Advertisement

Warnings

  • Do not regularly force kernel panics. Kernel panics are serious errors that occur when something at the hardware level goes wrong, so it's not a good idea to regularly force them.
Advertisement

You Might Also Like

Install macOS on a Windows PCInstall macOS on a Windows PC
Take a Screenshot on a MacHow to Take a Screenshot on a Mac: Complete Guide
Show Hidden Files and Folders on a MacHow to Show Hidden Files and Folders on a Mac: 4 Simple Methods
Clear the Cache on a MacHow to Safely Clear Cached Files on Your Mac
Download YouTube Videos on a MacThe Easiest Ways to Download YouTube Videos on macOS
Set Up VNC on Mac OS XHow to Set up VNC on a Mac and Fix Common Issues
Insert a Signature in Pages on MacInsert a Signature in Pages on Mac
Reset a Lost Admin Password on Mac OS XReset a Lost Admin Password on Mac OS X
Open RAR Files on Mac OS XHow to Open RAR Files on Mac OS X: Free Apps, Online Tools, & More
Connect Time Capsule to MacConnect Time Capsule to Mac
Back Up a Mac Without Time MachineHow to Create a Backup for a Mac Without Time Machine
Use Telnet on Mac OS XUse Telnet on Mac OS X
Add and Remove a Program Icon From the Dock of a Mac Computer3 Ways to Add & Remove Apps from a Mac's Dock
Install Software from Unsigned Developers on a Mac3 Easy Ways to Allow Mac Apps from Unknown Developers
Advertisement

About This Article

wikiHow is a “wiki,” similar to Wikipedia, which means that many of our articles are co-written by multiple authors. To create this article, volunteer authors worked to edit and improve it over time. This article has been viewed 29,934 times.
How helpful is this?
Co-authors: 7
Updated: November 21, 2022
Views: 29,934
Categories: Mac OS X
Thanks to all authors for creating a page that has been read 29,934 times.

Is this article up to date?

Advertisement