NetBSD-Bugs archive

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

bin/55987: top(1) segfaults



>Number:         55987
>Category:       bin
>Synopsis:       top(1) segfaults
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    bin-bug-people
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Thu Feb 11 07:10:00 +0000 2021
>Originator:     Martin Husemann
>Release:        NetBSD 9.99.80
>Organization:
The NetBSD Foundation, Inc.
>Environment:
System: NetBSD martins.aprisoft.de 9.99.80 NetBSD 9.99.80 (GENERIC) #43: Tue Feb 9 16:41:52 CET 2021 martin%martins.aprisoft.de@localhost:/usr/src/sys/arch/amd64/compile/GENERIC amd64
Architecture: x86_64
Machine: amd64
>Description:

I had a top(1) running during a firefox build and it crashed midway:

#0  _strcasecmp (s1=s1@entry=0x0, s2=0x754561d7d4d9 "files")
    at /usr/src/lib/libc/../../common/lib/libc/string/strcasecmp.c:68
#1  0x0000754561d44fe8 in _nsmethod (cb_data=<synthetic pointer>, 
    disp_tab=0x754561fce020, method=0x754561d892e2 "getpwuid", 
    database=0x754561d8928d "passwd", source=<optimized out>)
    at /usr/src/lib/libc/net/nsdispatch.c:563
#2  _nsdispatch (retval=retval@entry=0x0, 
    disp_tab=disp_tab@entry=0x754561fce020, 
    database=database@entry=0x754561d8928d "passwd", 
    method=method@entry=0x754561d892e2 "getpwuid", 
    defaults=0x754561fceec0 <__nsdefaultcompat>)
    at /usr/src/lib/libc/net/nsdispatch.c:665
#3  0x0000754561d2d52c in __getpwuid50 (uid=uid@entry=0)
    at /usr/src/lib/libc/gen/getpwent.c:2510
#4  0x00000001770096f2 in username (xuid=0)
    at /usr/src/external/bsd/top/bin/../dist/username.c:116
#5  0x000000017700be05 in format_next_proc (get_userid=<optimized out>, 
    handle=0x7f7fff585f56 "CPU/2")
    at /usr/src/external/bsd/top/bin/../dist/machine/m_netbsd.c:863
#6  format_next_process (
    handle=handle@entry=0x177214060 <handle> "\200`\024cEu", 
    get_userid=<optimized out>)
    at /usr/src/external/bsd/top/bin/../dist/machine/m_netbsd.c:803
#7  0x000000017700936d in do_display (gstate=gstate@entry=0x754563146000)
    at /usr/src/external/bsd/top/bin/../dist/top.c:589
#8  0x000000017700c645 in main (argc=<optimized out>, argv=<optimized out>)
    at /usr/src/external/bsd/top/bin/../dist/top.c:975


>How-To-Repeat:
not sure, never seen it before

>Fix:
n/a



Home | Main Index | Thread Index | Old Index