PDF download Download Article PDF download 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.
    Disabling Integrity Protection.jpeg
  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
      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
      Name
      Please provide your name and last initial
      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

      About This Article

      Thanks to all authors for creating a page that has been read 33,021 times.

      Is this article up to date?

      Advertisement