Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 22 Jul 2011 20:28:11 -0700
From:      Yuri <yuri@rawbw.com>
To:        freebsd-hackers@freebsd.org
Subject:   DTrace script asserts and kills the other process
Message-ID:  <20110722202811.17302hol2s3ar084@newwebmail.rawbw.com>

next in thread | raw e-mail | index | archive | help
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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20110722202811.17302hol2s3ar084>