kern/52817: top(1) shows garbage for threaded processes

Tim Robbins tim at robbins.dropbear.id.au
Fri May 30 19:30:14 PDT 2003


>Number:         52817
>Category:       kern
>Synopsis:       top(1) shows garbage for threaded processes
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    freebsd-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Fri May 30 19:30:12 PDT 2003
>Closed-Date:
>Last-Modified:
>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:
>Unformatted:


More information about the freebsd-bugs mailing list