From owner-freebsd-dtrace@freebsd.org Tue Sep 5 11:05:03 2017 Return-Path: Delivered-To: freebsd-dtrace@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id B500FE02EEF for ; Tue, 5 Sep 2017 11:05:03 +0000 (UTC) (envelope-from longwitz@incore.de) Received: from dss.incore.de (dss.incore.de [195.145.1.138]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 79EC1733AB for ; Tue, 5 Sep 2017 11:05:03 +0000 (UTC) (envelope-from longwitz@incore.de) Received: from inetmail.dmz (inetmail.dmz [10.3.0.3]) by dss.incore.de (Postfix) with ESMTP id 0243167898 for ; Tue, 5 Sep 2017 12:58:24 +0200 (CEST) X-Virus-Scanned: amavisd-new at incore.de Received: from dss.incore.de ([10.3.0.3]) by inetmail.dmz (inetmail.dmz [10.3.0.3]) (amavisd-new, port 10024) with LMTP id 0-cqYs6_Pvz0 for ; Tue, 5 Sep 2017 12:58:23 +0200 (CEST) Received: from mail.local.incore (fwintern.dmz [10.0.0.253]) by dss.incore.de (Postfix) with ESMTP id 29D6567873 for ; Tue, 5 Sep 2017 12:58:23 +0200 (CEST) Received: from bsdlo.incore (bsdlo.incore [192.168.0.84]) by mail.local.incore (Postfix) with ESMTP id 0144C508A9 for ; Tue, 5 Sep 2017 12:58:22 +0200 (CEST) Message-ID: <59AE834E.1090700@incore.de> Date: Tue, 05 Sep 2017 12:58:22 +0200 From: Andreas Longwitz User-Agent: Thunderbird 2.0.0.19 (X11/20090113) MIME-Version: 1.0 To: "freebsd-dtrace@freebsd.org" Subject: dtrace pid provider on entry == Trace/BPT trap process Content-Type: text/plain; charset=ISO-8859-15 Content-Transfer-Encoding: 7bit X-BeenThere: freebsd-dtrace@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: "A discussion list for developers working on DTrace in FreeBSD." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 05 Sep 2017 11:05:03 -0000 I use FreeBSD 10.3-STABLE r317936 with updated /usr/lib/dtrace/ip.c and see an issue that in my opinion should have been solved in r269342: I run a simple program looptest, that loops around a sprintf() call and want to check this program with dtrace -n 'pid$target:libc.so.*::entry {@[probefunc] = count();}' -p $(pgrep looptest) dtrace: description 'pid$target:libc.so.*::entry ' matched 3863 probes After some seconds I hit CTRL-C and see __vfprintf 741685 localeconv_l 741685 memset 741685 sprintf 741685 vsprintf 741685 __sfvwrite 1483369 memcpy 2225052 and at the same time looptest stops with Trace/BPT trap (Speicherabzug geschrieben) and on the console I see the kernel message pid 67550 (looptest), uid 1003: exited on signal 5 (core dumped) The trap does not occur all the time, but it is no problem to repeat the trap. --- Andreas Longwitz