From owner-freebsd-bugs@FreeBSD.ORG Sun Dec 24 16:00:31 2006 Return-Path: X-Original-To: freebsd-bugs@hub.freebsd.org Delivered-To: freebsd-bugs@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 23D4216A407 for ; Sun, 24 Dec 2006 16:00:31 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [69.147.83.40]) by mx1.freebsd.org (Postfix) with ESMTP id CB2D813C475 for ; Sun, 24 Dec 2006 16:00:30 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.13.4/8.13.4) with ESMTP id kBOG0UvS022753 for ; Sun, 24 Dec 2006 16:00:30 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.13.4/8.13.4/Submit) id kBOG0UuH022752; Sun, 24 Dec 2006 16:00:30 GMT (envelope-from gnats) Resent-Date: Sun, 24 Dec 2006 16:00:30 GMT Resent-Message-Id: <200612241600.kBOG0UuH022752@freefall.freebsd.org> Resent-From: FreeBSD-gnats-submit@FreeBSD.org (GNATS Filer) Resent-To: freebsd-bugs@FreeBSD.org Resent-Reply-To: FreeBSD-gnats-submit@FreeBSD.org, "Josh Paetzel " Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id A973816A412 for ; Sun, 24 Dec 2006 15:52:08 +0000 (UTC) (envelope-from josh@tcbug.org) Received: from sccrmhc11.comcast.net (sccrmhc11.comcast.net [63.240.77.81]) by mx1.freebsd.org (Postfix) with ESMTP id 7933713C466 for ; Sun, 24 Dec 2006 15:52:08 +0000 (UTC) (envelope-from josh@tcbug.org) Received: from gimpy.tcbug.org ([24.118.186.172]) by comcast.net (sccrmhc11) with SMTP id <2006122415415301100pli9qe>; Sun, 24 Dec 2006 15:41:53 +0000 Message-Id: <1166974913.20890@gimpy.tcbug.org> Date: Sun, 24 Dec 2006 09:41:53 -0600 From: "Josh Paetzel " To: "FreeBSD gnats submit" X-Send-Pr-Version: gtk-send-pr 0.4.7 Cc: Subject: kern/107171: systat doesn't die when it's xterm is killed while it's running X-BeenThere: freebsd-bugs@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 24 Dec 2006 16:00:31 -0000 >Number: 107171 >Category: kern >Synopsis: systat doesn't die when it's xterm is killed while it's running >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Sun Dec 24 16:00:29 GMT 2006 >Closed-Date: >Last-Modified: >Originator: Josh Paetzel >Release: FreeBSD 6.1-RELEASE-p11 i386 >Organization: >Environment: System: FreeBSD 6.1-RELEASE-p11 #3: Sat Dec 23 19:33:43 CST 2006 jpaetzel@gimpy.tcbug.org:/usr/obj/usr/src/sys/GIMPY >Description: I discovered my CPU at 0% idle this morning. top reported systat using 95% of the CPU time. I didn't have systat running anywhere, then remembered I had it running in an xterm last night and killed the xterm without stopping systat. This seems to be 100% reproducable, but interestingly enough only happens when systat is run as root. Running systat as a normal user doesn't trigger this behavior.....killing it's xterm kills systat in that case. It's annoying that systat doesn't die in this situation, the fact that it maxes the CPU is what really makes this a nasty behavior. >How-To-Repeat: startx open 2 xterms su to root in one of them start top in the other systat -if in the root xterm kill the xterm running systat watch systat run away to 100% cpu usage >Fix: I don't know of a fix but the workaround is: 1) Don't run systat as root 2) Don't kill an xterm with a running systat in it >Release-Note: >Audit-Trail: >Unformatted: