NetBSD Problem Report #53942

From martin@duskware.de  Mon Feb  4 11:27:41 2019
Return-Path: <martin@duskware.de>
Received: from mail.netbsd.org (mail.netbsd.org [199.233.217.200])
	(using TLSv1.2 with cipher ECDHE-RSA-AES256-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 A90AE7A1E1
	for <gnats-bugs@gnats.NetBSD.org>; Mon,  4 Feb 2019 11:27:41 +0000 (UTC)
From: martin@NetBSD.org
Reply-To: martin@NetBSD.org
To: gnats-bugs@NetBSD.org
Subject: new ksem code fires KASSERT
X-Send-Pr-Version: 3.95

>Number:         53942
>Category:       kern
>Synopsis:       new ksem code fires KASSERT
>Confidential:   no
>Severity:       critical
>Priority:       high
>Responsible:    thorpej
>State:          closed
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Mon Feb 04 11:30:01 +0000 2019
>Closed-Date:    Tue Feb 05 16:19:39 +0000 2019
>Last-Modified:  Tue Feb 05 16:19:39 +0000 2019
>Originator:     Martin Husemann
>Release:        NetBSD 8.99.34
>Organization:
The NetBSD Foundation, Inc.
>Environment:
System: NetBSD thirdstage.duskware.de 8.99.34 NetBSD 8.99.34 (MODULAR) #151: Mon Feb 4 09:03:05 CET 2019 martin@thirdstage.duskware.de:/usr/src/sys/arch/sparc64/compile/MODULAR sparc64
Architecture: sparc64
Machine: sparc64
>Description:

My kernel crashed:

[ 6396.2497750] panic: kernel diagnostic assertion "ks->ks_pshared_proc == NULL"
 failed: file "../../../../kern/uipc_sem.c", line 502

backtrace is:

ksem_free+0x140
ksem_release+0x54
ksem_close_fop+0x48
closef+0x70
exit1+0xf8
sigexit+0xa4


and it happened while running the ATF tests for nfs:


fs/nfs/t_mountd (610/766): 1 test cases
    mountdhup: 

Have not yet tried to reproduce it (but I guess it will be reproducable).

>How-To-Repeat:
see above

>Fix:
n/a

>Release-Note:

>Audit-Trail:
From: Martin Husemann <martin@duskware.de>
To: gnats-bugs@NetBSD.org
Cc: 
Subject: Re: kern/53942: new ksem code fires KASSERT
Date: Mon, 4 Feb 2019 12:34:56 +0100

 It is reproducable:

 # cd /usr/tests/fs/nfs && atf-run t_mountd
 [...]
 [ 824.5408600] panic: kernel diagnostic assertion "ks->ks_pshared_proc == NULL" failed: file "../../../../kern/uipc_sem.c", line 502 
 Stopped in pid 759.50 (rumpnfsd) at     netbsd:cpu_Debugger+0x4:        nop


 Martin

Responsible-Changed-From-To: kern-bug-people->thorpej
Responsible-Changed-By: thorpej@NetBSD.org
Responsible-Changed-When: Mon, 04 Feb 2019 18:36:55 +0000
Responsible-Changed-Why:
Take.


State-Changed-From-To: open->feedback
State-Changed-By: thorpej@NetBSD.org
State-Changed-When: Tue, 05 Feb 2019 07:15:19 +0000
State-Changed-Why:
Should be fixed with:

$NetBSD: uipc_sem.c,v 1.53 2019/02/05 07:14:32 thorpej Exp $


State-Changed-From-To: feedback->closed
State-Changed-By: martin@NetBSD.org
State-Changed-When: Tue, 05 Feb 2019 16:19:39 +0000
State-Changed-Why:
Machine survived a full test run now
Tx for quick fix!


>Unformatted:

NetBSD Home
NetBSD PR Database Search

(Contact us) $NetBSD: query-full-pr,v 1.43 2018/01/16 07:36:43 maya Exp $
$NetBSD: gnats_config.sh,v 1.9 2014/08/02 14:16:04 spz Exp $
Copyright © 1994-2017 The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.