Re: top command segfaults when pressing "f" (full command paths)

Ramiro Aceves <[email protected]>
Newsgroups gmane.os.netbsd.general
Message-ID <[email protected]>

El 18/4/26 a las 18:53, Ramiro Aceves escribió:
> Hello, today I have had this surprise in my 11-RC3 amd64 system.
> 
> netbsd-nuc$ uname -a
> NetBSD netbsd-nuc.home 11.0_RC3 NetBSD 11.0_RC3 (GENERIC) #0: Sat Apr  4 06:08:56 UTC 2026 [email protected]:/usr/src/sys/arch/amd64/compile/GENERIC amd64
> netbsd-nuc$
> 
> 
> netbsd-nuc$ gdb /usr/bin/top /home/ramiro/top.core
> GNU gdb (GDB) 15.1
> Copyright (C) 2024 Free Software Foundation, Inc.
> License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
> This is free software: you are free to change and redistribute it.
> There is NO WARRANTY, to the extent permitted by law.
> Type "show copying" and "show warranty" for details.
> This GDB was configured as "x86_64--netbsd".
> Type "show configuration" for configuration details.
> For bug reporting instructions, please see:
> <https://www.gnu.org/software/gdb/bugs/>.
> Find the GDB manual and other documentation resources online at:
>      <http://www.gnu.org/software/gdb/documentation/>.
> 
> For help, type "help".
> Type "apropos word" to search for commands related to "word"...
> Reading symbols from /usr/bin/top...
> Reading symbols from /usr/libdata/debug//usr/bin/top.debug...
> [New process 27148]
> Core was generated by `top'.
> Program terminated with signal SIGSEGV, Segmentation fault.
> #0  0x00000000004202e3 in printable (str=0x795c8c8644e6 "Monitor genérico")
>      at /usr/src/external/bsd/top/bin/../dist/utils.c:220
> 220        if (!isprint(ch))
> (gdb) list
> 215        register int ch;
> 216
> 217        ptr = str;
> 218        while ((ch = *ptr) != '\0')
> 219        {
> 220        if (!isprint(ch))
> 221        {
> 222            *ptr = '?';
> 223        }
> 224        ptr++;
> (gdb)
> 
> Thanks.
> 
> Regards.
> 
> 
> 
> 

Hi.

It seems to be related with this looong Generic Monitor Plugin in XFCE4.


netbsd-nuc$ ps ax | grep Moni
29610 pts/1  R+    0:00.00 grep Moni
  1956 ttyE0  Sl    1:21.27 /usr/pkg/lib/xfce4/panel/wrapper-2.0 /usr/pkg/lib/xfce4/panel/plugins/libgenmon.so 22 20971544 genmon Monitor gen\M-C\M-)rico Muestra la salida de una orden
  1991 ttyE0  Sl    1:19.41 /usr/pkg/lib/xfce4/panel/wrapper-2.0 /usr/pkg/lib/xfce4/panel/plugins/libgenmon.so 25 20971547 genmon Monitor gen\M-C\M-)rico Muestra la salida de una orden
  2384 ttyE0  Il    1:21.31 /usr/pkg/lib/xfce4/panel/wrapper-2.0 /usr/pkg/lib/xfce4/panel/plugins/libgenmon.so 24 20971546 genmon Monitor gen\M-C\M-)rico Muestra la salida de una orden
  2665 ttyE0  Sl    1:20.92 /usr/pkg/lib/xfce4/panel/wrapper-2.0 /usr/pkg/lib/xfce4/panel/plugins/libgenmon.so 21 20971543 genmon Monitor gen\M-C\M-)rico Muestra la salida de una orden
  3644 ttyE0  Sl    1:20.87 /usr/pkg/lib/xfce4/panel/wrapper-2.0 /usr/pkg/lib/xfce4/panel/plugins/libgenmon.so 23 20971545 genmon Monitor gen\M-C\M-)rico Muestra la salida de una orden
  3919 ttyE0  Sl    0:07.67 /usr/pkg/lib/xfce4/panel/wrapper-2.0 /usr/pkg/lib/xfce4/panel/plugins/libgenmon.so 13 20971537 genmon Monitor gen\M-C\M-)rico Muestra la salida de una orden
netbsd-nuc$
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.