Subject: port-macppc/32196: 'shutdown -h now' causes a panic
To: None <port-macppc-maintainer@netbsd.org, gnats-admin@netbsd.org,>
From: None <ceh@netbsd.se>
List: netbsd-bugs
Date: 11/30/2005 07:28:00
>Number:         32196
>Category:       port-macppc
>Synopsis:       'shutdown -h now' causes a panic
>Confidential:   no
>Severity:       critical
>Priority:       medium
>Responsible:    port-macppc-maintainer
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Wed Nov 30 07:28:00 +0000 2005
>Originator:     Emil Hessman
>Release:        NetBSD 2.0
>Organization:
>Environment:
NetBSD Latte 2.0 NetBSD 2.0 (GENERIC) #0: Wed Dec  1 14:03:55 UTC 2004  builds@build:/big/builds/ab/netbsd-2-0-RELEASE/macppc/200411300000Z-obj/big/builds/ab/netbsd-2-0-RELEASE/src/sys/arch/macppc/compile/GENERIC macppc

>Description:

Issuing 'shutdown -h now' on an iBook (early 2004) sometimes triggers a panic:

# shutdown -h now

[...]

# syncing disks... done
halted

trap: kernel ISI by 0x844c0000 (SRR1 0x1000b030)
panic: trap
Stopped at      netbsd:cpu_Debugger+0x10:  lwz    r0, r1, 0x14
db> trace
0xffbc3933: at panic+0x19c
0xffbc39c3: at trap+0x100
0xffbc3a43: kernel ISI trap by ADBDevTable+0x83ee1384: srr1=0x1000b030
                        r1=0xffbc3b03 cr=0x42002044 xer=0x20000000 ctr=0x844c0000
0xffbc3b03: at softclock+0x174
0xffbc3b43: at ADBDevTable+0xff265f80
saved LR(0xdeadbeeb) is invalid.
db>

>How-To-Repeat:

# shutdown -h now

>Fix: