Hello,
I'm trying to use dtrace
to instrument my applications with no success.
The system freezes on the exact moment I'm starting the command from terminal. The only way out is hard shut down via long pressing the power button.
Are there any solutions for this?
You might be hitting an issue where some hardware memory protection gets incorrectly reenabled for a SIP-disabled system upon wake from sleep, which then causes the DTrace freeze you are seeing.
I'm assuming you already have SIP disabled on your machine (if not that would be the first step). However, in some cases when the machine goes to sleep and wakes up some memory protection that was disabled as part of disabling SIP may get reenabled. This prevents DTrace from writing to a memory region it needs and causes it to freeze. A reboot will reset the permission and protection settings correctly.
So as a workaround until this is fixed, you can try to prevent your machine from going to sleep after a reboot or reboot before you want to use DTrace. We are investigating the issue. If you would like to be notified when this is fixed, feel free to file a feedback and post it here. We can then link it to the internal issue.
If you are seeing this behavior with SIP disabled after a fresh reboot (without the machine going to sleep in-between), please let us know.