[procps] Re: important improvements to top

  • From: Craig Small <csmall@xxxxxxxxxx>
  • To: Jim Warner <james.warner@xxxxxxxxxxx>
  • Date: Tue, 17 Jul 2018 21:09:02 +1000

Hi Jim,
  Apologies for the delay, this got buried in the odd way google threads
stuff.

The newlib patches worked fine, however top is segfaulting on master.

csmall@elmo:~/Projects/procps/procps$ LD_PRELOAD=proc/.libs/libprocps.so
gdb top/.libs/top
GNU gdb (Debian 8.1-2) 8.1
[gdb spam deleted]
(gdb) run
Starting program: /home/csmall/Projects/procps/procps/top/.libs/top

Program received signal SIGSEGV, Segmentation fault.
0x0000555555563ccd in task_show (q=0x5555555971e0 <Winstk>, idx=<optimized
out>) at top/top.c:6005
6005             u += Hide_cpu[idx];
(gdb) p u
$1 = 4
(gdb) p Hide_cpu
$2 = (int *) 0x0

It is something in my toprc doing it. I haven't manually edited it but its
attached anyhow.

 - Craig
-- 
Craig Small             https://dropbear.xyz/     csmall at : dropbear.xyz
Debian GNU/Linux        https://www.debian.org/   csmall at : debian.org
Mastodon: @smallsees@xxxxxxxxxxxxxxxxxxx             Twitter: @smallsees
GPG fingerprint:      5D2F B320 B825 D939 04D2  0519 3938 F96B DF50 FEA5

Attachment: toprc
Description: Binary data

Other related posts: