NetBSD Problem Report #47012
From rhialto@falu.nl Thu Sep 27 19:00:38 2012
Return-Path: <rhialto@falu.nl>
Received: from mail.netbsd.org (mail.netbsd.org [149.20.53.66])
by www.NetBSD.org (Postfix) with ESMTP id B4AA663E3C4
for <gnats-bugs@gnats.NetBSD.org>; Thu, 27 Sep 2012 19:00:38 +0000 (UTC)
Message-Id: <201209271900.q8RJ0Yj4009411@radl.falu.nl>
Date: Thu, 27 Sep 2012 21:00:34 +0200 (CEST)
From: rhialto@falu.nl
Reply-To: rhialto@falu.nl
To: gnats-bugs@gnats.NetBSD.org
Cc: rhialto@falu.nl
Subject: "shutdown now" from multiuser causes kernel panic (-current)
X-Send-Pr-Version: 3.95
>Number: 47012
>Category: kern
>Synopsis: "shutdown now" from multiuser causes kernel panic (-current)
>Confidential: no
>Severity: serious
>Priority: medium
>Responsible: kern-bug-people
>State: closed
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Thu Sep 27 19:05:00 +0000 2012
>Closed-Date: Fri Jan 04 04:51:02 +0000 2013
>Last-Modified: Fri Jan 04 04:51:02 +0000 2013
>Originator: Rhialto
>Release: NetBSD current, cvs update finished Sep 25 00:46 CEST
>Organization:
>Environment:
System: NetBSD radl.falu.nl 5.1 NetBSD 6.99.something GENERIC
Architecture: x86_64
Machine: amd64
>Description:
I used a self-compiled GENERIC amd64 kernel from a "cvs update"
as of Sep 25 00:46 CEST.
The userland was from amd64/5.1.
>How-To-Repeat:
From multi-user, issue the command "shutdown now".
After most of the procedure has completed, the here is an
assertion failure followed by a crash dump.
(I didn't recover the dump).
The first time it happened I was in X when I issued the shutdown
command. I could repeat it even when first shutting down X
(/etc/rc.d/xdm stop), then doing the shutdown from a text console.
Thu Sep 27 20:44:51 CEST 2012
Done running shutdown hooks.
panic: kernel diagnostic assertion "lwpcnt >= 0" failed: file
"/mnt/vol1/rhialto/cvs/src/sys/kern/kern_uidinfo.c", line 217
cpu0: Begin traceback...
kern_assert() at netbsd:kern_assert+0x48
chglwpcnt() at netbsd:chglwpcnt+0x56
lwp_free() at netbsd:lwp_free+0x66
lwp_wait1() at netbsd:lwp_wait1+0x240
exit_lwps() at netbsd:exit_lwps+0x108
exit1() at netbsd:exit1+0x6a
sigexit() at netbsd:sigexit+0x14b
postsig() at netbsd:postsig+0x15d
lwp_userret() at netbsd:lwp_userret+0x19b
syscall() at netbsd:syscall+0x157
--- syscall (number 0) ---
7f7ff7934a4a:
cpu0: End traceback...
dumping to dev 0,1 (offset=199775, size=1023726):
dump 3998 3997 3996 3995 3994 3993 3992 3991 3990 3989 ...
When repeating it just now, it is "cpu1" and the dump freezes at
3984. That may be a coincidence.
>Fix:
Unknown so far.
-Olaf.
--
___ Olaf 'Rhialto' Seibert -- There's no point being grown-up if you
\X/ rhialto/at/xs4all.nl -- can't be childish sometimes. -The 4th Doctor
>Release-Note:
>Audit-Trail:
From: Ryo ONODERA <ryo_on@yk.rim.or.jp>
To: gnats-bugs@NetBSD.org, rhialto@falu.nl
Cc:
Subject: Re: kern/47012: "shutdown now" from multiuser causes kernel panic
(-current)
Date: Fri, 28 Sep 2012 04:10:08 +0900 (JST)
Duplicate of PR kern/46606?
Have you ran pkgsrc/sysutils/hal?
http://gnats.netbsd.org/46606
From: Rhialto <rhialto@falu.nl>
To: Ryo ONODERA <ryo_on@yk.rim.or.jp>
Cc: gnats-bugs@NetBSD.org, rhialto@falu.nl
Subject: Re: kern/47012: "shutdown now" from multiuser causes kernel panic
(-current)
Date: Thu, 27 Sep 2012 21:18:50 +0200
On Fri 28 Sep 2012 at 04:10:08 +0900, Ryo ONODERA wrote:
> Duplicate of PR kern/46606?
> Have you ran pkgsrc/sysutils/hal?
>
> http://gnats.netbsd.org/46606
You are correct! I have "hal=YES" in my /etc/rc.conf file.
I tried with "hal=NO", and the problem did not occur.
Thank you!
-Olaf.
--
___ Olaf 'Rhialto' Seibert -- There's no point being grown-up if you
\X/ rhialto/at/xs4all.nl -- can't be childish sometimes. -The 4th Doctor
State-Changed-From-To: open->closed
State-Changed-By: dholland@NetBSD.org
State-Changed-When: Fri, 04 Jan 2013 04:51:02 +0000
State-Changed-Why:
Duplicate of 46606.
>Unformatted:
(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-2007
The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.