NetBSD-Users archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

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



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 mkrepro%mkrepro.NetBSD.org@localhost:/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.






Home | Main Index | Thread Index | Old Index