When running dtrace on Ubuntu 12.04 under Linux 3.2.0-58-generic it seems that ustack() does not print out a stack trace but instead errors out with "invalid address (0x56) in action #1" as seen below. Is ustack() expected to work or is this functionality still pending?
Sat Mar 22 02:59:38 root@server.dlx:~# dtrace -n syscall::write:entry'/pid == $target/{ustack(50, 0); exit(0)}' -c 'dd if=/dev/zero of=./foo bs=4K count=1 oflag=dsync'
parent: waiting for child
child 5732 about to exec dd
parent: after waitpid pid=5732 status=57f
proc-stub:rd_event_enable
proc-stub:rd_errstr err=26
dtrace: description 'syscall::write:entry' matched 2 probes
dtrace: error on enabled probe ID 2 (ID 361973: syscall:x64:write:entry): invalid address (0x56) in action #1
1+0 records in
1+0 records out
4096 bytes (4.1 kB) copied, 0.232165 s, 17.6 kB/s
dtrace: pid 5732 has exited