DTrace script asserts and kills the other process
Yuri
yuri at rawbw.com
Sat Jul 23 03:28:11 UTC 2011
I am trying to run this dtrace script:
#!/usr/sbin/dtrace -s
pid123:libc::entry
{
self->timestmp[probefunc] = timestmp;
}
pid123:libc::return
/self->timestmp[probefunc] != 0/
{
@function_duration[probefunc] = sum(timestmp - self->timestmp[probefunc]);
timestmp[probefunc] = 0;
}
which I got from here:
http://www.princeton.edu/~unix/Solaris/troubleshoot/dtrace.html
replacing 123 with the pid of some running process.
Result: dtrace utility asserts:
Assertion failed: (dpr != NULL), file
/usr/src/cddl/lib/libdtrace/../../../cddl/contrib/opensolaris/lib/libdtrace/common/dt_proc.c, line
751.
Abort trap: 6
Also the target process is killed too:
Killed: 9
8.2-STABLE amd64
Yuri
More information about the freebsd-hackers
mailing list