From owner-freebsd-hackers@FreeBSD.ORG Sat Jul 23 03:28:11 2011 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id C115B1065670 for ; Sat, 23 Jul 2011 03:28:11 +0000 (UTC) (envelope-from yuri@rawbw.com) Received: from shell0.rawbw.com (shell0.rawbw.com [198.144.192.45]) by mx1.freebsd.org (Postfix) with ESMTP id ACEB68FC0A for ; Sat, 23 Jul 2011 03:28:11 +0000 (UTC) Received: from mail1.rawbw.com (mail1.rawbw.com [198.144.192.43]) by shell0.rawbw.com (8.14.4/8.14.4) with ESMTP id p6N3SBPK029892; Fri, 22 Jul 2011 20:28:11 -0700 (PDT) (envelope-from yuri@rawbw.com) Received: from 74-95-207-98-SFBA.hfc.comcastbusiness.net (74-95-207-98-SFBA.hfc.comcastbusiness.net [74.95.207.98]) by newwebmail.rawbw.com (Horde Framework) with HTTP; Fri, 22 Jul 2011 20:28:11 -0700 Message-ID: <20110722202811.17302hol2s3ar084@newwebmail.rawbw.com> Date: Fri, 22 Jul 2011 20:28:11 -0700 From: Yuri To: freebsd-hackers@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; DelSp="Yes"; format="flowed" Content-Disposition: inline Content-Transfer-Encoding: 7bit User-Agent: Internet Messaging Program (IMP) H3 (4.2.1-RC1) Subject: DTrace script asserts and kills the other process X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 23 Jul 2011 03:28:11 -0000 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