NetBSD Problem Report #55987

From martin@aprisoft.de  Thu Feb 11 07:08:46 2021
Return-Path: <martin@aprisoft.de>
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 46FD91A9217
	for <gnats-bugs@gnats.NetBSD.org>; Thu, 11 Feb 2021 07:08:46 +0000 (UTC)
Message-Id: <20210211070834.A38E35CC84B@emmas.aprisoft.de>
Date: Thu, 11 Feb 2021 08:08:34 +0100 (CET)
From: martin@NetBSD.org
Reply-To: martin@NetBSD.org
To: gnats-bugs@NetBSD.org
Subject: top(1) segfaults
X-Send-Pr-Version: 3.95

>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:/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

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.