NetBSD Problem Report #56822

From kimmo@suominen.org  Sun May  8 06:20:50 2022
Return-Path: <kimmo@suominen.org>
Received: from mail.netbsd.org (mail.netbsd.org [199.233.217.200])
	(using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits))
	(Client CN "mail.NetBSD.org", Issuer "mail.NetBSD.org CA" (not verified))
	by mollari.NetBSD.org (Postfix) with ESMTPS id 115B51A9239
	for <gnats-bugs@gnats.NetBSD.org>; Sun,  8 May 2022 06:20:50 +0000 (UTC)
Message-Id: <20220508062031.25EA91B737@equinoxe.x.gw.fi>
Date: Sun,  8 May 2022 09:20:31 +0300 (EEST)
From: kim@netbsd.org (Kimmo Suominen)
To: gnats-bugs@NetBSD.org
Subject: htop 3.2.0 not showing all process information
X-Send-Pr-Version: 3.95

>Number:         56822
>Category:       pkg
>Synopsis:       htop 3.2.0 not showing all process information
>Confidential:   no
>Severity:       critical
>Priority:       high
>Responsible:    nia
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Sun May 08 06:25:00 +0000 2022
>Last-Modified:  Sun May 08 10:45:01 +0000 2022
>Originator:     Kimmo Suominen
>Release:        NetBSD 9.2_STABLE (202201031320Z)
>Organization:
>Environment:
System: NetBSD equinoxe.x.gw.fi 9.2_STABLE NetBSD 9.2_STABLE (GENERIC) #0: Thu Dec 30 12:40:08 UTC 2021 mkrepro@mkrepro.NetBSD.org:/usr/src/sys/arch/amd64/compile/GENERIC amd64
Architecture: x86_64
Machine: amd64
>Description:

	htop is no longer showing the command of the process, as well as
	other fields.

	With 3.2.0 I only get these fields in the default display:

	PID+USER       PRI  NI  VIRT   RES

	With htop-3.1.2nb1 I was getting the expected fields:

	PID+USER       PRI  NI  VIRT   RES S CPU% MEM%   TIME+  Command

	The same htoprc is being used with both versions:

	# Beware! This file is rewritten by htop when settings are changed in the interface.
	# The parser is also very primitive, and not human-friendly.
	fields=0 48 17 18 38 39 40 2 46 47 49 1
	sort_key=46
	sort_direction=1
	hide_threads=1
	hide_kernel_threads=1
	hide_userland_threads=1
	shadow_other_users=0
	show_thread_names=1
	show_program_path=1
	highlight_base_name=1
	highlight_megabytes=1
	highlight_threads=1
	tree_view=1
	header_margin=1
	detailed_cpu_time=0
	cpu_count_from_zero=1
	update_process_names=0
	account_guest_in_cpu_meter=0
	color_scheme=0
	delay=15
	left_meters=LeftCPUs Memory Swap
	left_meter_modes=1 1 1
	right_meters=RightCPUs Tasks LoadAverage
	right_meter_modes=1 2 2

>How-To-Repeat:

	Upgrade htop to 3.2.0 and run it.

>Fix:

	A workaround is to remove ~/.config/htop/htoprc and configure
	all settings from scratch.

>Release-Note:

>Audit-Trail:

Responsible-Changed-From-To: pkg-manager->nia
Responsible-Changed-By: wiz@NetBSD.org
Responsible-Changed-When: Sun, 08 May 2022 08:11:41 +0000
Responsible-Changed-Why:
Over to maintainer


From: Kimmo Suominen <kim@netbsd.org>
To: gnats-bugs@netbsd.org
Cc: 
Subject: Re: pkg/56822 (htop 3.2.0 not showing all process information)
Date: Sun, 8 May 2022 13:40:16 +0300

 This is probably not an issue with the packaging but rather upstream
 functionality. I guess field "40" is SHR (shared memory), which
 apparently is not available on NetBSD. However, older versions of htop
 just ignored the fact that the field did not exist, and continued on
 with the fields after it. With 3.2.0 it seems that htop stops showing
 any fields after the unavailable "40".

 With a home directory (or dot files) shared between hosts running
 different versions of htop, the behaviour of versions before 3.2.0 is
 more useful and thus preferred.

>Unformatted:

NetBSD Home
NetBSD PR Database Search

(Contact us) $NetBSD: query-full-pr,v 1.46 2020/01/03 16:35:01 leot Exp $
$NetBSD: gnats_config.sh,v 1.9 2014/08/02 14:16:04 spz Exp $
Copyright © 1994-2020 The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.