DTrace error in macOS Sierra

709 views Asked by At

I was trying to use a dtrace command in my macOS Sierra to profile a node.js application like this:

sudo dtrace -x ustackframes=100 -n 'profile-97 /pid == 35526/ { @[ustack()] = count(); } tick-60s { exit(0); }' -o out.user_stacks

and that's erroring out like this:

dtrace: description 'profile-97 ' matched 2 probes
dtrace: error on enabled probe ID 1 (ID 37: profile:::profile-97): invalid address (0x405060700010203) in action #2
dtrace: error on enabled probe ID 1 (ID 37: profile:::profile-97): invalid address (0x405060700010203) in action #2
dtrace: error on enabled probe ID 1 (ID 37: profile:::profile-97): invalid address (0x6eac0bf) in action #2

I have googled and found this : https://unix.stackexchange.com/questions/275175/error-on-enabled-probe-syscallopen-nocancelentry-invalid-user-access-in-ac

but read that doing that is not safe. Can someone please explain what that error means and why it's caused? If I see errors like this, will dtrace produce correct stack traces?

How can I resolve this errors? Thanks

0

There are 0 answers