How To Activate A Kernel Panic

Hello, I want to Activate a Kernel Panic to see how my program gets effected, but I don't know how to manually activate it through Terminal. The old command I used was

sudo dtrace -w -n "BEGIN{ panic();}"

but that did not work. The error was

dtrace: could not enable tracing: Permission denied

Is there any way to activate a Kernel Panic, or did Apple remove the permission to?

Please Help.

Thank you.


Specifications:

OS X El Capitan 10.11.5

System Integrity Protection is preventing DTrace from triggering the panic. I can’t think of any way to trigger a panic without disabling SIP. OTOH, given that you’re working on a victim machine anyway (at least I hope you’re not kernel panicking your development machine), disabling SIP is a reasonable option.

Share and Enjoy

Quinn “The Eskimo!”
Apple Developer Relations, Developer Technical Support, Core OS/Hardware

let myEmail = "eskimo" + "1" + "@apple.com"

First you need to boot into Recovery and type: csrutil disable then reboot Then you can open the terminal and write: sudo dtrace -w -n "BEGIN{ panic();}"

How To Activate A Kernel Panic
 
 
Q