Subject: Crash on reboot for sparc64 with nfs root.
To: None <tech-kern@netbsd.org>
From: ober <ober@dns2.linbsd.org>
List: tech-kern
Date: 04/25/2006 00:23:59
ksh: j_waitj: tcsetpgrp(10, 538) failed: Inappropriate ioctl for device
                                                                       [screen is terminating]
syncing disks... done
unmounting file systems...data fault: pc=11ab2cc addr=0
kernel trap 30: data access exception
Stopped in pid 27045.1 (reboot) at      netbsd:nfs_removerpc+0xc:       ldx             [
%g1 + 0x948], %g2
db>

db> bt
nfs_inactive(c5d8960, ffffffffffffffff, 5, 0, 0, c5dcc30) at netbsd:nfs_inactive
+0x114
VOP_INACTIVE(c5d6770, c5dcc30, ffffffffffffffff, 0, 0, 0) at netbsd:VOP_INACTIVE
+0x28
vclean(c5d6770, 2fb9000, c5dcc30, 0, 1236770, 1) at netbsd:vclean+0xb8
vgonel(c5d6770, c5dcc30, c5d6550, c5dcc30, c5d6770, 0) at netbsd:vgonel+0x40
vflush(2fb9000, c5d6000, 2, c5dcc30, 0, c5dcc30) at netbsd:vflush+0xd8
nfs_unmount(0, 1, c5dcc30, c5dcc30, cf589e0, 1a) at netbsd:nfs_unmount+0xa4
dounmount(2fb9000, 80000, c5dcc30, 1, 0, 0) at netbsd:dounmount+0xc8
vfs_unmountall(c5dcc30, 78b9664, 40208160, ffffffffffffc4c8, 1, 12) at netbsd:vf
s_unmountall+0xac
cpu_reboot(0, 0, ffffffffffffc598, 1, 2024a0, ffffffff) at netbsd:cpu_reboot+0x1
ac
sys_reboot(d717c10, d717dd0, d717dc0, 0, d717dd0, 0) at netbsd:sys_reboot+0x40
syscall(d717ed0, d0, 40737e44, d717dd0, 40737e44, 40737e48) at netbsd:syscall+0x
d4
?(0, 0, 1019b8, 5, 0, 0) at 0x1008cb8
db> ps
 PID           PPID     PGRP        UID S   FLAGS LWPS          COMMAND    WAIT
>27045            1    27045          0 2  0x4002    1           reboot
 14               0        0          0 2 0x20200    1         aiodoned aiodone
 13               0        0          0 2 0x20200    1          ioflush  syncer
 12               0        0          0 2 0x20200    1       pagedaemon pgdaemo
 11               0        0          0 2 0x20200    1            nfsio  nfsidl
 10               0        0          0 2 0x20200    1            nfsio  nfsidl
 9                0        0          0 2 0x20200    1            nfsio  nfsidl
 8                0        0          0 2 0x20200    1            nfsio  nfsidl
 7                0        0          0 2 0x20200    1          atabus1   atath
 6                0        0          0 2 0x20200    1          atabus0   atath
 5                0        0          0 2 0x20200    1          usbtask  usbtsk
 4                0        0          0 2 0x20200    1             usb0  usbevt
 3                0        0          0 2 0x20200    1           sysmon smtaskq
 2                0        0          0 2 0x20200    1        cryptoret crypto_
 1                0        1          0 2  0x4000    1             init    wait
 0               -1        0          0 2 0x20200    1          swapper schedul
db> show map
MAP 0x18731e8: [0x1000000->0xe0000000]
        #ent=122, sz=266043392, ref=1, version=108546, flags=0x81
        pmap=0x189dcd0(resident=13152, wired=11258)
db> show malloc
The kernel is not built with the MALLOC_DEBUG option.
db> show event
evcnt type 0: uvmmap ubackmerge = 7128378
evcnt type 0: uvmmap unomerge = 7229501
evcnt type 0: uvmmap kbackmerge = 21766
evcnt type 0: uvmmap kforwmerge = 2003
evcnt type 0: uvmmap kbimerge = 27216
evcnt type 0: uvmmap knomerge = 1221663
evcnt type 0: uvmmap map_call = 15630527
evcnt type 0: uvmmap mlk_call = 74175892
evcnt type 0: uvmmap mlk_hint = 39536270
evcnt type 1: intr lev1 = 26518787
evcnt type 1: intr lev4 = 1903085
evcnt type 1: intr lev5 = 96596
evcnt type 1: intr lev6 = 50122202
evcnt type 1: intr clock = 9657257
evcnt type 1: intr lev12 = 1904360

db> show buf
trap type 0x34: pc=1267000 npc=1267004 pstate=ffffffff991d0016<PEF,PRIV,IE>
kernel trap 34: mem address not aligned
Type  'go' to resume

--------->DMESG
console is /pci@1f,0/isa@7/serial@0,3f8
Copyright (c) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005
    The NetBSD Foundation, Inc.  All rights reserved.
Copyright (c) 1982, 1986, 1989, 1991, 1993
    The Regents of the University of California.  All rights reserved.

NetBSD 3.0.0_STABLE (GENERIC) #0: Sun Apr 23 16:16:36 CDT 2006
	root@sparc64b.linbsd.org:/usr/src/sys/arch/sparc64/compile/GENERIC
total memory = 896 MB
avail memory = 864 MB
bootpath: /pci@1f,0/ethernet@c,0
mainbus0 (root): SUNW,UltraAX-i2: hostid 83107307
cpu0 at mainbus0: SUNW,UltraSPARC-IIe @ 500 MHz, version 0 FPU
cpu0: 32K instruction (32 b/l), 16K data (32 b/l), 256K external (64 b/l)
psycho0 at mainbus0
SUNW,sabre: impl 0, version 0: ign 7c0 bus range 0 to 0; PCI bus 0
DVMA map: 60000000 to 80000000
IOTSB: eae000 to f2e000
pci0 at psycho0
pci0: i/o space, memory space enabled
ebus0 at pci0 dev 7 function 0
ebus0: Acer Labs M1543 PCI-ISA Bridge, revision 0x00
dma at ebus0 addr 0-ffff ipl 42 not configured
rtc0 at ebus0 addr 70-71: mc146818 compatible time-of-day clock: m5819
power at ebus0 addr 2000-2007 ipl 35 not configured
SUNW,lomh at ebus0 addr 8010-8011 ipl 42 not configured
com0 at ebus0 addr 3f8-3ff ipl 43: ns16550a, working fifo
com0: console
com1 at ebus0 addr 2e8-2ef ipl 43: ns16550a, working fifo
flashprom at ebus0 addr 0-7ffff not configured
Acer Labs M7101 Power Management Controller (miscellaneous prehistoric) at pci0 dev 3 function 0 not configured
tlp0 at pci0 dev 12 function 0: Davicom DM9102A Ethernet, pass 3.1
tlp0: broken MicroWire interface detected; setting SROM size to 1Kb
tlp0: interrupting at ivec 3006
tlp0: Ethernet address 00:03:ba:10:73:07
dmphy0 at tlp0 phy 1: DM9102 10/100 media interface, rev. 0
dmphy0: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto
tlp1 at pci0 dev 5 function 0: Davicom DM9102A Ethernet, pass 3.1
tlp1: broken MicroWire interface detected; setting SROM size to 1Kb
tlp1: interrupting at ivec 301c
tlp1: Ethernet address 00:03:ba:10:73:07
dmphy1 at tlp1 phy 1: DM9102 10/100 media interface, rev. 0
dmphy1: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto
ohci0 at pci0 dev 10 function 0: Acer Labs M5237 USB 1.1 Host Controller (rev. 0x03)
ohci0: interrupting at ivec 24
ohci0: OHCI version 1.0, legacy support
usb0 at ohci0: USB revision 1.0
uhub0 at usb0
uhub0: Acer Labs OHCI root hub, class 9/0, rev 1.00/1.00, addr 1
uhub0: 2 ports with 2 removable, self powered
aceride0 at pci0 dev 13 function 0
aceride0: Acer Labs M5229 UDMA IDE Controller (rev. 0xc3)
aceride0: bus-master DMA support present
aceride0: primary channel configured to native-PCI mode
aceride0: using ivec 180c for native-PCI interrupt
atabus0 at aceride0 channel 0
aceride0: secondary channel configured to native-PCI mode
atabus1 at aceride0 channel 1
pcons at mainbus0 not configured
No counter-timer -- using %tick at 500MHz as system clock.
Kernelized RAIDframe activated
ural0 at uhub0 port 1
ural0: Ralink 802.11g WLAN + Pen Drive, rev 2.00/0.01, addr 2
ural0: MAC/BBP RT2570 (rev 0x03), RF RT2526, address 00:0f:ea:e0:a7:28
ural0: 11b rates: 1Mbps 2Mbps 5.5Mbps 11Mbps
ural0: 11g rates: 1Mbps 2Mbps 5.5Mbps 11Mbps 6Mbps 9Mbps 12Mbps 18Mbps 24Mbps 36Mbps 48Mbps 54Mbps
root on tlp0
nfs_boot: trying DHCP/BOOTP
nfs_boot: DHCP next-server: 192.168.0.108
nfs_boot: my_addr=192.168.0.82
nfs_boot: my_mask=255.255.255.0
root on 192.168.0.108:/stuff/sparc64b
root file system type: nfs