NetBSD Problem Report #51102

From martin@aprisoft.de  Fri Apr 29 10:47:27 2016
Return-Path: <martin@aprisoft.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 "Postmaster NetBSD.org" (verified OK))
	by mollari.NetBSD.org (Postfix) with ESMTPS id 9E46C7A470
	for <gnats-bugs@gnats.NetBSD.org>; Fri, 29 Apr 2016 10:47:27 +0000 (UTC)
Message-Id: <20160429104718.18C62ED0E4F@emmas.aprisoft.de>
Date: Fri, 29 Apr 2016 12:47:18 +0200 (CEST)
From: martin@NetBSD.org
Reply-To: martin@NetBSD.org
To: gnats-bugs@NetBSD.org
Subject: ipintr may double-release mutex?
X-Send-Pr-Version: 3.95

>Number:         51102
>Category:       kern
>Synopsis:       ipintr may double-release mutex?
>Confidential:   no
>Severity:       critical
>Priority:       high
>Responsible:    kern-bug-people
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Fri Apr 29 10:50:00 +0000 2016
>Last-Modified:  Sat Apr 30 11:45:01 +0000 2016
>Originator:     Martin Husemann
>Release:        NetBSD 7.99.29
>Organization:
The NetBSD Foundation, Inc.
>Environment:
System: NetBSD whoever-brings-the-night.aprisoft.de 7.99.29 NetBSD 7.99.29 (WHOEVER) #5: Fri Apr 29 10:19:22 CEST 2016 martin@martins.aprisoft.de:/ssd/src/sys/arch/sparc64/compile/WHOEVER sparc64
Architecture: sparc64
Machine: sparc64
>Description:

I got a KASSERT failing:

panic: kernel diagnostic assertion "curcpu()->ci_mtx_count == 0" failed: file "../../../../kern/kern_softint.c", line 594 softint_execute: ci_mtx_count (-1) != 0, sh_func 0x12ff2a0 

and sh_func (0x12ff2a0) is ipintr.

Backtrace is:

#2  0x000000000153c63c in vpanic ()
#3  0x000000000162d05c in kern_assert ()
#4  0x00000000015114a8 in softint_dispatch ()
#5  0x0000000001012014 in softint_fastintr ()
#6  0x0000000001510ad8 in softint_schedule ()


>How-To-Repeat:
n/a

>Fix:
n/a

>Audit-Trail:
From: Ryota Ozaki <ozaki-r@NetBSD.org>
To: "gnats-bugs@NetBSD.org" <gnats-bugs@netbsd.org>
Cc: netbsd-bugs@netbsd.org, gnats-admin@netbsd.org, kern-bug-people@netbsd.org
Subject: Re: kern/51102: ipintr may double-release mutex?
Date: Sat, 30 Apr 2016 20:33:18 +0900

 --001a1148b6ee43d0ac0531b22043
 Content-Type: text/plain; charset=UTF-8

 Can you try LOCKDEBUG?

   ozaki-r

 2016/04/29 7:50 pm <martin@netbsd.org>:
 >
 > >Number:         51102
 > >Category:       kern
 > >Synopsis:       ipintr may double-release mutex?
 > >Confidential:   no
 > >Severity:       critical
 > >Priority:       high
 > >Responsible:    kern-bug-people
 > >State:          open
 > >Class:          sw-bug
 > >Submitter-Id:   net
 > >Arrival-Date:   Fri Apr 29 10:50:00 +0000 2016
 > >Originator:     Martin Husemann
 > >Release:        NetBSD 7.99.29
 > >Organization:
 > The NetBSD Foundation, Inc.
 > >Environment:
 > System: NetBSD whoever-brings-the-night.aprisoft.de 7.99.29 NetBSD
 7.99.29 (WHOEVER) #5: Fri Apr 29 10:19:22 CEST 2016
 martin@martins.aprisoft.de:/ssd/src/sys/arch/sparc64/compile/WHOEVER sparc64
 > Architecture: sparc64
 > Machine: sparc64
 > >Description:
 >
 > I got a KASSERT failing:
 >
 > panic: kernel diagnostic assertion "curcpu()->ci_mtx_count == 0" failed:
 file "../../../../kern/kern_softint.c", line 594 softint_execute:
 ci_mtx_count (-1) != 0, sh_func 0x12ff2a0
 >
 > and sh_func (0x12ff2a0) is ipintr.
 >
 > Backtrace is:
 >
 > #2  0x000000000153c63c in vpanic ()
 > #3  0x000000000162d05c in kern_assert ()
 > #4  0x00000000015114a8 in softint_dispatch ()
 > #5  0x0000000001012014 in softint_fastintr ()
 > #6  0x0000000001510ad8 in softint_schedule ()
 >
 >
 > >How-To-Repeat:
 > n/a
 >
 > >Fix:
 > n/a
 >

 --001a1148b6ee43d0ac0531b22043
 Content-Type: text/html; charset=UTF-8
 Content-Transfer-Encoding: quoted-printable

 <p dir=3D"ltr">Can you try LOCKDEBUG?</p>
 <p dir=3D"ltr">=C2=A0 ozaki-r</p>
 <p dir=3D"ltr">2016/04/29 7:50 pm &lt;<a href=3D"mailto:martin@netbsd.org">=
 martin@netbsd.org</a>&gt;:<br>
 &gt;<br>
 &gt; &gt;Number:=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A051102<br>
 &gt; &gt;Category:=C2=A0 =C2=A0 =C2=A0 =C2=A0kern<br>
 &gt; &gt;Synopsis:=C2=A0 =C2=A0 =C2=A0 =C2=A0ipintr may double-release mute=
 x?<br>
 &gt; &gt;Confidential:=C2=A0 =C2=A0no<br>
 &gt; &gt;Severity:=C2=A0 =C2=A0 =C2=A0 =C2=A0critical<br>
 &gt; &gt;Priority:=C2=A0 =C2=A0 =C2=A0 =C2=A0high<br>
 &gt; &gt;Responsible:=C2=A0 =C2=A0 kern-bug-people<br>
 &gt; &gt;State:=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 open<br>
 &gt; &gt;Class:=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 sw-bug<br>
 &gt; &gt;Submitter-Id:=C2=A0 =C2=A0net<br>
 &gt; &gt;Arrival-Date:=C2=A0 =C2=A0Fri Apr 29 10:50:00 +0000 2016<br>
 &gt; &gt;Originator:=C2=A0 =C2=A0 =C2=A0Martin Husemann<br>
 &gt; &gt;Release:=C2=A0 =C2=A0 =C2=A0 =C2=A0 NetBSD 7.99.29<br>
 &gt; &gt;Organization:<br>
 &gt; The NetBSD Foundation, Inc.<br>
 &gt; &gt;Environment:<br>
 &gt; System: NetBSD <a href=3D"http://whoever-brings-the-night.aprisoft.de"=
 >whoever-brings-the-night.aprisoft.de</a> 7.99.29 NetBSD 7.99.29 (WHOEVER) =
 #5: Fri Apr 29 10:19:22 CEST 2016 martin@martins.aprisoft.de:/ssd/src/sys/a=
 rch/sparc64/compile/WHOEVER sparc64<br>
 &gt; Architecture: sparc64<br>
 &gt; Machine: sparc64<br>
 &gt; &gt;Description:<br>
 &gt;<br>
 &gt; I got a KASSERT failing:<br>
 &gt;<br>
 &gt; panic: kernel diagnostic assertion &quot;curcpu()-&gt;ci_mtx_count =3D=
 =3D 0&quot; failed: file &quot;../../../../kern/kern_softint.c&quot;, line =
 594 softint_execute: ci_mtx_count (-1) !=3D 0, sh_func 0x12ff2a0<br>
 &gt;<br>
 &gt; and sh_func (0x12ff2a0) is ipintr.<br>
 &gt;<br>
 &gt; Backtrace is:<br>
 &gt;<br>
 &gt; #2=C2=A0 0x000000000153c63c in vpanic ()<br>
 &gt; #3=C2=A0 0x000000000162d05c in kern_assert ()<br>
 &gt; #4=C2=A0 0x00000000015114a8 in softint_dispatch ()<br>
 &gt; #5=C2=A0 0x0000000001012014 in softint_fastintr ()<br>
 &gt; #6=C2=A0 0x0000000001510ad8 in softint_schedule ()<br>
 &gt;<br>
 &gt;<br>
 &gt; &gt;How-To-Repeat:<br>
 &gt; n/a<br>
 &gt;<br>
 &gt; &gt;Fix:<br>
 &gt; n/a<br>
 &gt;<br>
 </p>

 --001a1148b6ee43d0ac0531b22043--

From: Martin Husemann <martin@duskware.de>
To: Ryota Ozaki <ozaki-r@NetBSD.org>
Cc: "gnats-bugs@NetBSD.org" <gnats-bugs@netbsd.org>
Subject: Re: kern/51102: ipintr may double-release mutex?
Date: Sat, 30 Apr 2016 13:35:36 +0200

 On Sat, Apr 30, 2016 at 08:33:18PM +0900, Ryota Ozaki wrote:
 > Can you try LOCKDEBUG?

 Sure, will try that (but my guess currently is on gcc 5.3)

 Martin

From: Ryota Ozaki <ozaki-r@NetBSD.org>
To: Martin Husemann <martin@duskware.de>
Cc: "gnats-bugs@NetBSD.org" <gnats-bugs@netbsd.org>
Subject: Re: kern/51102: ipintr may double-release mutex?
Date: Sat, 30 Apr 2016 20:41:48 +0900

 --001a114d8e169f86c20531b23ea9
 Content-Type: text/plain; charset=UTF-8

 2016/04/30 8:35 "Martin Husemann" <martin@duskware.de>:
 >
 > On Sat, Apr 30, 2016 at 08:33:18PM +0900, Ryota Ozaki wrote:
 > > Can you try LOCKDEBUG?
 >
 > Sure, will try that

 Thanks.

 > (but my guess currently is on gcc 5.3)

 Hmm, gcc :-/
   ozaki-r

 --001a114d8e169f86c20531b23ea9
 Content-Type: text/html; charset=UTF-8
 Content-Transfer-Encoding: quoted-printable

 <p dir=3D"ltr"><br>
 2016/04/30 8:35 &quot;Martin Husemann&quot; &lt;<a href=3D"mailto:martin@du=
 skware.de">martin@duskware.de</a>&gt;:<br>
 &gt;<br>
 &gt; On Sat, Apr 30, 2016 at 08:33:18PM +0900, Ryota Ozaki wrote:<br>
 &gt; &gt; Can you try LOCKDEBUG?<br>
 &gt;<br>
 &gt; Sure, will try that</p>
 <p dir=3D"ltr">Thanks.</p>
 <p dir=3D"ltr">&gt; (but my guess currently is on gcc 5.3)</p>
 <p dir=3D"ltr">Hmm, gcc :-/<br>
 =C2=A0 ozaki-r</p>

 --001a114d8e169f86c20531b23ea9--

NetBSD Home
NetBSD PR Database Search

(Contact us) $NetBSD: query-full-pr,v 1.39 2013/11/01 18:47:49 spz Exp $
$NetBSD: gnats_config.sh,v 1.8 2006/05/07 09:23:38 tsutsui Exp $
Copyright © 1994-2014 The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.