Subject: reproducible kernel panic w/ 2.0RC4MP
To: None <port-macppc@netbsd.org>
From: Tim Kelly <hockey@dialectronics.com>
List: port-macppc
Date: 11/07/2004 15:42:52
Hardware:
7300 w/ dual 180MHz Daystar card
8G IBM hard drive
128M RAM
(dmesg at bottom)

I've hit this twice in the last hour, and the chain appears almost
identical. I'm trying to make build /usr/src, with cvs update -dP done
last night. There are some caveats that should be eliminated first, but
I am not sure how to do so.

1) The install is RC2, but the MP kernel is RC4. Yes, I know this is not
ideal, but I'm trying to build a compete userland to get up to date. The
only installed packages are 1.6.1 pico and tcsh; the rest is RC2.

2) I tried 
./build.sh -O /usr/obj -D /usr/NetBSD-new-build -T /usr/tools build

first, on the single processor GENERIC kernel. It ground away for 15
hours before failing due to a full file system. I'm not entirely sure
why this occured, as /usr was only 22% full. However, / was 95% full, so
perhaps it ran out there. This was with RC2. I have freed up some space
on /, so I can run it again but it'd take 15 hours to fail again, or
not. The main point is that / has restricted disk space (I used the
default partitioning scheme).

I installed the RC4 MP kernel and redid the ./build.sh command. It
ground away for about three hours before getting the panic. I then did
make build and it lasted about an hour, maybe less.

3) I'm not familiar with this environment yet, as part of this was to
get that experience, and the other part was to be able to compile the
macppc kernel (I need to hard wire my ID 6 hard drive to sd0 so it
doesn't get confused with the NetBSD install on ID 0). Some of the
problems could be due to my own ineptness.

I've included df -a at the bottom of this. I wasn't able to capture
the precise message at the panic, but I've included the dmesg and it
has a bit of info that I'm hoping will tie together with bt. I'm not
completely sure if this is precisely the right forum, but it seemed like
a good place to start.

thanks,
tim

db{1}> bt
0xd470fcd0: at panic+0x19c
0xd470fd60: at mp_save_fpu_lwp+0xec
0xd470fd80: at save_fpu_lwp+0x2c
0xd470fd90: at cpu_lwp_fork+0x184
0xd470fdd0: at uvm_lwp_fork+0x94
0xd470fe00: at newlwp+0x130
0xd470fe50: at fork1+0x3ac
0xd470feb0: at sys___vfork14+0x30
0xd470fed0: at syscall_plain+0xc8
0xd470ff40: user SC trap #282 by 0x418ab1a0: srr1=0xd032
            r1=0xffffcf20 cr=0x44000024 xer=0 ctr=0x418ab198

db{1}> show registers
r0          0x2f1ee0    panic+0x1a0
r1          0xd470fcc0
r2          0x5f0078    cpu_info+0x398
r3          0x5f0078    cpu_info+0x398
r4          0xd
r5          0x1
r6          0
r7          0x5a0000    uaudio_hw_if+0x50
r8          0
r9          0x5a0000    uaudio_hw_if+0x50
r10         0
r11         0x63061
r12         0x24000028
r13         0x18390fc   ADBDevTable+0x12466c0
r14         0x1830000   ADBDevTable+0x123d5c4
r15         0x1830000   ADBDevTable+0x123d5c4
r16         0x1830000   ADBDevTable+0x123d5c4
r17         0
r18         0x14
r19         0
r20         0xd470fe6c
r21         0x3983c0    child_return
r22         0
r23         0
r24         0xd4a64000
r25         0x4c44788   ADBDevTable+0x4651d4c
r26         0x3983c0    child_return
r27         0
r28         0
r29         0x100
r30         0x5a0000    uaudio_hw_if+0x50
r31         0x4dd0a0    linux_socketcall+0xa84
iar         0x39a248    cpu_Debugger+0x10
msr         0x9032
lr          0x39a248    cpu_Debugger+0x10
ctr         0x3b9b0c    cnflush
cr          0x44000028
xer         0
mq          0xd470fcc0
netbsd:cpu_Debugger+0x10:       lwz     r0, r1, 0x14
db{1}> dmesg
NetBSD 2.0_RC4 (GENERIC.MP) #0: Mon Oct 18 01:37:31 UTC 2004
       
autobuild@tgm.netbsd.org:/autobuild/netbsd-2-0/macppc/OBJ/autobuild/netb
sd-2-0/src/sys/arch/macppc/compile/GENERIC.MP total memory = 128 MB
avail memory = 117 MB
mainbus0 (root)
cpu0 at mainbus0: 604ev (Revision 2.2), ID 0 (primary)
cpu0: HID0 8090c084<EMCP,DOZE,DPM,ICE,DCE,SGE,BHT>
cpu1 at mainbus0: 604ev (Revision 2.2), ID 1
cpu1: HID0 8090c084<EMCP,DOZE,DPM,ICE,DCE,SGE,BHT>
bandit0 at mainbus0
pci0 at bandit0 bus 0
pci0: i/o space, memory space enabled
pchb0 at pci0 dev 11 function 0
pchb0: Apple Computer Bandit Host-PCI Bridge (rev. 0x03)
sip0 at pci0 dev 15 function 0: NatSemi DP83815 10/100 Ethernet, rev 00
sip0: interrupting at irq 25
sip0: Ethernet address 00:00:94:cb:df:4c
nsphyter0 at sip0 phy 0: DP83815 10/100 media interface, rev. 1
nsphyter0: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto
obio0 at pci0 dev 16 function 0: addr 0xf3000000
esp0 at obio0 offset 0x10000 irq 12: NCR53C94, 25MHz, SCSI ID 7
scsibus0 at esp0: 8 targets, 8 luns per target
mc0 at obio0 offset 0x11000: irq 14,2,3: address 00:a0:40:71:3e:86
zsc0 at obio0 offset 0x13000: irq 15,16
zstty0 at zsc0 channel 0 (console)
zstty1 at zsc0 channel 1
awacs at obio0 offset 0x14000 not configured
swim3 at obio0 offset 0x15000 not configured
adb0 at obio0 offset 0x16000 irq 18: 2 targets
aed0 at adb0 addr 0: ADB Event device
akbd0 at adb0 addr 2: extended keyboard
wskbd0 at akbd0 mux 1
ams0 at adb0 addr 3: 1-button, 100 dpi mouse
wsmouse0 at ams0 mux 0
mesh0 at obio0 offset 0x18000 irq 13: 50MHz, SCSI ID 7
scsibus1 at mesh0: 8 targets, 8 luns per target
nvram0 at obio0 offset 0x1d000
bandit1 at mainbus0
pci1 at bandit1 bus 1
pci1: i/o space, memory space enabled
ofb0 at pci1 dev 11 function 0: Apple Computer Control
ofb0: 640 x 480, 8bpp
wsdisplay0 at ofb0 kbdmux 1
wsmux1: connecting to wsdisplay0
wskbd0: connecting to wsdisplay0
scsibus0: waiting 2 seconds for devices to settle...
scsibus1: waiting 2 seconds for devices to settle...
cd0 at scsibus1 target 3 lun 0: <MATSHITA, CD-ROM CR-8012, 1.0g> cdrom
removable

sd0 at scsibus1 target 6 lun 0: <IBM, DNES-309170Y, SAK0> disk fixed
sd0: 8748 MB, 11474 cyl, 5 head, 312 sec, 512 bytes/sect x 17916240
sectors boot device: <unknown>
root device: sd0a
dump device (default sd0b):
file system (default generic): ffs
root on sd0a dumps on sd0b
cpu1: started
init path (default /sbin/init):
init: trying /sbin/init
mp_save_fpu_proc{1} pid = 18943.1, fpcpu->ci_cpuid = 0
panic: mp_save_fpu_proc

db{1}> reboot
syncing disks...

N7300# df -a
Filesystem  1K-blocks     Used     Avail Capacity  Mounted on
/dev/sd0a       32475    24257      6594    78%    /
/dev/sd0g     8013961  1466847   6146415    19%    /usr