NetBSD Problem Report #41110
From reinoud@13thmonkey.org Tue Mar 31 15:48:42 2009
Return-Path: <reinoud@13thmonkey.org>
Received: from mail.netbsd.org (mail.netbsd.org [204.152.190.11])
by www.NetBSD.org (Postfix) with ESMTP id 21B6963B8C8
for <gnats-bugs@gnats.NetBSD.org>; Tue, 31 Mar 2009 15:48:42 +0000 (UTC)
Message-Id: <20090331154854.6C4C565F7@aardappel.13thmonkey.org>
Date: Tue, 31 Mar 2009 17:48:54 +0200 (CEST)
From: reinoud@NetBSD.org
Reply-To: reinoud@NetBSD.org
To: gnats-bugs@gnats.NetBSD.org
Subject: panic on poweroff
X-Send-Pr-Version: 3.95
>Number: 41110
>Category: port-i386
>Synopsis: panic on poweroff
>Confidential: no
>Severity: serious
>Priority: high
>Responsible: port-i386-maintainer
>State: closed
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Tue Mar 31 15:50:00 +0000 2009
>Closed-Date: Sun Apr 05 19:33:14 +0000 2009
>Last-Modified: Sun Apr 05 19:33:14 +0000 2009
>Originator: Reinoud Zandijk
>Release: NetBSD 5.99.7
>Organization:
NetBSD
>Environment:
System: NetBSD aardappel.13thmonkey.org 5.99.7 NetBSD 5.99.7 (GENERIC) #13: Fri Feb 27 13:14:16 CET 2009 root@heethoofdje.13thmonkey.org:/usr/sources/cvs.netbsd.org/src/sys/arch/i386/compile/GENERIC i386
Architecture: i386
Machine: i386
Kernel with DIAGNOSTIC+DEBUG+KGDB
>Description:
When shutting down the machine with `shutdown -p' :
----------------
luiaard# shutdown -p now
Shutdown NOW!
shutdown: [pid 277]
luiaard# wall: You have write permission turned off; no reply possible
*** FINAL System shutdown message from root@luiaard.13thmonkey.org ***
System going down IMMEDIATELY
Mar 31 17:36:09 luiaard shutdown: poweroff by root:
System shutdown time has arrived
About to run shutdown hooks...
Removing block-type swap devices
Tue Mar 31 17:36:12 CEST 2009
Done running shutdown hooks.
Mar 31 17:36:17 luiaard syslogd[107]: Exiting on signal 15
syncing disks... done
unmounting file systems...
unmounting /bulky (aardappel.13thmonkey.org:/bulky)...
unmounting /var/mail (aardappel.13thmonkey.org:/var/mail)...
unmounting /home (aardappel.13thmonkey.org:/home)...
unmounting /qemu (heethoofdje.13thmonkey.org:/msdos/qemu)...
unmounting /usr/sources (heethoofdje.13thmonkey.org:/usr/sources)...
unmounting / (192.168.1.2:/usr/exports/luiaard)... done
acpi0: entering state 5
panic: cpu_switchto: switching above IPL_SCHED (8)
entering kgdb
--------------
The backtrace is:
(gdb) where
#0 0xc0232314 in breakpoint ()
#1 0xc04a67a8 in kgdb_connect (verbose=0) at
../../../../arch/i386/i386/kgdb_machdep.c:233
#2 0xc04a67f9 in kgdb_panic () at
../../../../arch/i386/i386/kgdb_machdep.c:250
#3 0xc05f1404 in panic (fmt=0xc0100391 "cpu_switchto: switching above
IPL_SCHED (%d)")
at ../../../../kern/subr_prf.c:268
#4 0xc010038e in cpu_switchto ()
#5 0xc5f2ec80 in ?? ()
#6 0xc70a5840 in ?? ()
#7 0xc04994bb in mi_switch (l=0xc010038e) at
../../../../kern/kern_synch.c:761
#8 0xc0495783 in sleepq_block (timo=1, catch=true) at
../../../../kern/kern_sleepq.c:269
#9 0xc0473da3 in cv_timedwait_sig (cv=0xc0a4c680, mtx=0xc0a4c68c, timo=1)
at ../../../../kern/kern_condvar.c:281
#10 0xc010daae in AcpiOsSleep (Milliseconds=15) at
../../../../dev/acpi/acpica/OsdSchedule.c:172
#11 0xc02977b7 in AcpiExSystemDoSuspend (HowLong=15) at
../../../../dist/acpica/exsystem.c:305
#12 0xc0294626 in AcpiExOpcode_1A_0T_0R (WalkState=0x8)
at ../../../../dist/acpica/exoparg1.c:272
#13 0xc025eb69 in AcpiDsExecEndOp (WalkState=0xc0ea4c00)
at ../../../../dist/acpica/dswexec.c:533
#14 0xc0553136 in AcpiPsParseLoop (WalkState=0xc0ea4c00)
at ../../../../dist/acpica/psloop.c:1189
#15 0xc055348f in AcpiPsParseAml (WalkState=0x0) at
../../../../dist/acpica/psparse.c:592
#16 0xc05540af in AcpiPsExecuteMethod (Info=0xc0e6ffe0) at
../../../../dist/acpica/psxface.c:398
#17 0xc051c7bb in AcpiNsEvaluate (Info=0xc0e6ffe0) at
../../../../dist/acpica/nseval.c:241
#18 0xc051ef94 in AcpiEvaluateObject (Handle=0x0, Pathname=0xc09593a8
"\\_PTS",
ExternalParams=0xc709bbcc, ReturnBuffer=0x0) at
../../../../dist/acpica/nsxfeval.c:330
#19 0xc02e87b5 in AcpiEnterSleepStatePrep (SleepState=5 '\005')
at ../../../../dist/acpica/hwsleep.c:291
#20 0xc01160b6 in acpi_enter_sleep_state (sc=0xc63609d4, state=5)
at ../../../../dev/acpi/acpi.c:1316
#21 0xc04b7bbd in cpu_reboot (howto=2056, bootstr=0x0)
at ../../../../arch/i386/i386/machdep.c:923
#22 0xc04a66a5 in sys_reboot (l=0xc70a5840, uap=0xc709bd08, retval=0xc709bd00)
at ../../../../kern/kern_xxx.c:78
#23 0xc0606aae in syscall (frame=0xc709bd48) at
../../../../sys/syscallvar.h:61
#24 0xc010058d in syscall1 ()
>How-To-Repeat:
issue `shutdown -p' on this machine.
>Fix:
No idea.
>Release-Note:
>Audit-Trail:
From: Takahiro Kambe <taca@back-street.net>
To: gnats-bugs@NetBSD.org
Cc:
Subject: Re: port-i386/41110: panic on poweroff
Date: Tue, 31 Mar 2009 23:18:02 +0900 (JST)
In message <20090331155000.6679463B946@www.NetBSD.org>
on Tue, 31 Mar 2009 15:50:00 +0000 (UTC),
reinoud@NetBSD.org wrote:
> acpi0: entering state 5
> panic: cpu_switchto: switching above IPL_SCHED (8)
Very similar to my kern/39141.
syncing disks... done
unmounting file systems... done
acpi0: entering state 5
panic: cpu_switchto: switching above IPL_SCHED (8)
_prop_array_pool(0,0,0,0,cc2830a0,c08c4a80,cc2830a0,0,0,0) at 0xcc2af5fc
cpu_info_primary(c1cec804,c08512a8,a08501c0,c085fa80,0,30757063,0,0,0,c1cec800)
at 0xc085fac0
Ent traceback...
--
Takahiro Kambe <taca@back-street.net>
From: Matthias Drochner <drochner@netbsd.org>
To: gnats-bugs@gnats.NetBSD.org
Cc:
Subject: PR/41110 CVS commit: src/sys/dev/acpi/acpica
Date: Tue, 31 Mar 2009 17:17:47 +0000
Module Name: src
Committed By: drochner
Date: Tue Mar 31 17:17:47 UTC 2009
Modified Files:
src/sys/dev/acpi/acpica: OsdSchedule.c OsdSynch.c
Log Message:
avoid tsleep also during shutdown (and in particular ACPI poweroff),
should fix PR kern/39141 by Takahiro Kambe and PR port-i386/41110
by Reinoud Zandijk
To generate a diff of this commit:
cvs rdiff -u -r1.9 -r1.10 src/sys/dev/acpi/acpica/OsdSchedule.c
cvs rdiff -u -r1.11 -r1.12 src/sys/dev/acpi/acpica/OsdSynch.c
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
State-Changed-From-To: open->feedback
State-Changed-By: drochner@NetBSD.org
State-Changed-When: Tue, 31 Mar 2009 17:22:20 +0000
State-Changed-Why:
(I agree that this is likely a duplicate of PR kern/39141 - the stacktrace
there is probably bogus.)
can you try with OsdSchedule.c rev. 1.10?
From: Reinoud Zandijk <reinoud@NetBSD.org>
To: gnats-bugs@NetBSD.org
Cc:
Subject: Re: port-i386/41110 (panic on poweroff)
Date: Tue, 31 Mar 2009 22:08:41 +0200
On Tue, Mar 31, 2009 at 05:22:20PM +0000, drochner@NetBSD.org wrote:
> Synopsis: panic on poweroff
>
> State-Changed-From-To: open->feedback
> State-Changed-By: drochner@NetBSD.org
> State-Changed-When: Tue, 31 Mar 2009 17:22:20 +0000
> State-Changed-Why:
> (I agree that this is likely a duplicate of PR kern/39141 - the stacktrace
> there is probably bogus.)
> can you try with OsdSchedule.c rev. 1.10?
I updated the OsdSchedule.c and the accompanied OsdSynch.c and it now
powerdowns correctly! Thanks. I think the PR can be closed now.
With regards,
Reinoud
State-Changed-From-To: feedback->closed
State-Changed-By: reinoud@NetBSD.org
State-Changed-When: Sun, 05 Apr 2009 19:33:14 +0000
State-Changed-Why:
The comitted OsdSchedule.c and the accompanied OsdSynch.c in -current fixed the panic.
>Unformatted:
but also on NetBSD 5.99.8 and reported on 5.0_RC*
(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.