From tim@robbins.dropbear.id.au  Fri May 30 19:23:31 2003
Return-Path: <tim@robbins.dropbear.id.au>
Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125])
	by hub.freebsd.org (Postfix) with ESMTP id D9D2937B401
	for <FreeBSD-gnats-submit@freebsd.org>; Fri, 30 May 2003 19:23:31 -0700 (PDT)
Received: from smtp02.syd.iprimus.net.au (smtp02.syd.iprimus.net.au [210.50.76.52])
	by mx1.FreeBSD.org (Postfix) with ESMTP id 6060343F75
	for <FreeBSD-gnats-submit@freebsd.org>; Fri, 30 May 2003 19:23:31 -0700 (PDT)
	(envelope-from tim@robbins.dropbear.id.au)
Received: from dilbert.robbins.dropbear.id.au (210.50.216.119) by smtp02.syd.iprimus.net.au (7.0.015)
        id 3ECBEA340017FF25 for FreeBSD-gnats-submit@freebsd.org; Sat, 31 May 2003 12:23:29 +1000
Received: by dilbert.robbins.dropbear.id.au (Postfix, from userid 1000)
	id 043B2C90F; Sat, 31 May 2003 12:22:52 +1000 (EST)
Message-Id: <20030531022252.043B2C90F@dilbert.robbins.dropbear.id.au>
Date: Sat, 31 May 2003 12:22:52 +1000 (EST)
From: Tim Robbins <tim@robbins.dropbear.id.au>
Reply-To: Tim Robbins <tim@robbins.dropbear.id.au>
To: FreeBSD-gnats-submit@freebsd.org
Cc:
Subject: top(1) shows garbage for threaded processes
X-Send-Pr-Version: 3.113
X-GNATS-Notify:

>Number:         52817
>Category:       kern
>Synopsis:       top(1) shows garbage for threaded processes
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    freebsd-threads
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Fri May 30 19:30:12 PDT 2003
>Closed-Date:    Mon Feb 02 12:38:45 PST 2004
>Last-Modified:  Mon Feb 02 12:38:45 PST 2004
>Originator:     Tim Robbins
>Release:        FreeBSD 5.1-BETA
>Organization:
The FreeBSD Project
>Environment:
System: FreeBSD 5.1-BETA

>Description:

fill_kinfo_proc() leaves a lot of the ``struct kinfo_proc'' members
uninitialised for threaded processes.

>How-To-Repeat:

Run a threaded process (anything linked with libkse or perhaps libthr). Look
at it in 'top'.

>Fix:

Handle the P_THREADED case properly in fill_kinfo_proc().
>Release-Note:
>Audit-Trail:
Responsible-Changed-From-To: freebsd-bugs->freebsd-threads 
Responsible-Changed-By: kris 
Responsible-Changed-When: Sat Jul 12 18:39:44 PDT 2003 
Responsible-Changed-Why:  
Assign to threads mailing list 

http://www.freebsd.org/cgi/query-pr.cgi?pr=52817 

From: Craig Rodrigues <rodrigc@crodrigues.org>
To: freebsd-gnats-submit@freebsd.org
Cc: tim@robbins.dropbear.id.au
Subject: Re: kern/52817: top(1) shows garbage for threaded processes
Date: Mon, 2 Feb 2004 15:28:22 -0500

 Hi,
 
 top now has a -H command-line flag,
 and an 'H' interactive option which can toggle
 the display of threads.
 
 
 -- 
 Craig Rodrigues        
 rodrigc@crodrigues.org
State-Changed-From-To: open->closed 
State-Changed-By: deischen 
State-Changed-When: Mon Feb 2 12:37:13 PST 2004 
State-Changed-Why:  
David Xu made a kernel fix for this as well as someone 
adding a -H option to top to show threads. 

Reminded by:	Craig Rodrigues <rodrigc@crodrigues.org> 

http://www.freebsd.org/cgi/query-pr.cgi?pr=52817 
>Unformatted:
