Trace-ls.d hangs Mojave

For some reason trace-ls.d example utterly freezes Mojave; MacOS just stops responding to all events (mouse, keyboard, everything is frozen.) This is consistent repro; tried it many times. Computer needs to be restarted by pressing and holding the power-on button for several seconds.

Any clues what might be going on and how to fix the sample so that the computer doesn’t hang anymore?

Tried disabling SIP by rebooting in recovery mode and disabling SIP with: csrutil disable (and confirming it to be disabled with csrutil status.) Anything else I can do or try to have DTrace work on MacOS Mojave?

Thank you.
Claudio