NetBSD Problem Report #50979
From www@NetBSD.org Sat Mar 19 11:10:09 2016
Return-Path: <www@NetBSD.org>
Received: from mail.netbsd.org (mail.netbsd.org [199.233.217.200])
(using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits))
(Client CN "mail.netbsd.org", Issuer "Postmaster NetBSD.org" (verified OK))
by mollari.NetBSD.org (Postfix) with ESMTPS id C75227A13F
for <gnats-bugs@gnats.NetBSD.org>; Sat, 19 Mar 2016 11:10:08 +0000 (UTC)
Message-Id: <20160319111007.972F77ABEE@mollari.NetBSD.org>
Date: Sat, 19 Mar 2016 11:10:07 +0000 (UTC)
From: prlw1@cam.ac.uk
Reply-To: prlw1@cam.ac.uk
To: gnats-bugs@NetBSD.org
Subject: dtrace -c leads to 100% cpu usage
X-Send-Pr-Version: www-1.0
>Number: 50979
>Category: port-amd64
>Synopsis: dtrace -c leads to 100% cpu usage
>Confidential: no
>Severity: non-critical
>Priority: medium
>Responsible: port-amd64-maintainer
>State: closed
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Sat Mar 19 11:15:00 +0000 2016
>Closed-Date: Sun Oct 01 07:50:38 +0000 2017
>Last-Modified: Sun Oct 01 07:50:38 +0000 2017
>Originator: Patrick Welche
>Release: 7.99.26/amd64
>Organization:
>Environment:
>Description:
As per http://mail-index.netbsd.org/netbsd-users/2016/03/11/msg018156.html
# cat foo.d
proc:::exec
{
trace("hello");
exit(0);
}
# dtrace -s foo.d Then type "ls" in another xterm
dtrace: script 'foo.d' matched 1 probe
dtrace: buffer size lowered to 2m
CPU ID FUNCTION:NAME
2 6 :exec hello
# dtrace -s foo.d -c ls
and in other xterm top shows:
PID USERNAME PRI NICE SIZE RES STATE TIME WCPU CPU COMMAND
738 root 29 0 52M 11M CPU/3 0:54 99.17% 92.53% dtrace
Running "ls" in another xterm just in case doesn't stop it. Finally:
^Csorry, pid 554 was killed: orphaned traced process
I was expecting "-c ls" to run /bin/ls after the proc:::exec probe was set...
>How-To-Repeat:
see above
>Fix:
>Release-Note:
>Audit-Trail:
State-Changed-From-To: open->closed
State-Changed-By: prlw1@NetBSD.org
State-Changed-When: Sun, 01 Oct 2017 07:50:38 +0000
State-Changed-Why:
I can no longer reproduce this.
>Unformatted:
(Contact us)
$NetBSD: query-full-pr,v 1.39 2013/11/01 18:47:49 spz Exp $
$NetBSD: gnats_config.sh,v 1.8 2006/05/07 09:23:38 tsutsui Exp $
Copyright © 1994-2014
The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.