Subject: kern/10423: i386 uvm_fault() panic with 20000527 snapshot GENERIC
To: None <>
From: Douglas Wade Needham <>
List: netbsd-bugs
Date: 06/22/2000 20:30:26
>Number:         10423
>Category:       kern
>Synopsis:       i386 panic with uvm_fault(0xc04d6f60, 0xc2be5000, 0, 1) -> 1
>Confidential:   no
>Severity:       critical
>Priority:       medium
>Responsible:    kern-bug-people
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Thu Jun 22 20:31:00 PDT 2000
>Originator:     Douglas Wade Needham
>Release:        1.4Z (20000527 snapshot)


System: NetBSD fargone 1.4Z NetBSD 1.4Z (GENERIC) #12: Sat May 27 16:55:41 PDT 2
000 root@swinger:/u1/snapshots/src/sys/arch/i386/compile/GENERIC i386

        NetBSD 1.4Z GENERIC kernel from 20000527 i386 snapshot, using
        amd and NFS to mount source and home directories from an i386
        machine running 1.4.1.

        A panic occurred while doing a `make release` from /usr/src symlinked 
	to a AMD/NFS source tree into a local partition on a SCSI disk.  The
        panic has occurred several times, but has gotten much more frequent 
	since I added a change to distrib/sets/maketars to produce a md5 
	checksum of the individual files before making the archive.
        The changed fragment is included below.

        This panic has also been seen on another machine running with a 
	PIII/450 in a similiar configuration.

        Here is the output from dmesg and a stack trace.

# dmesg -M netbsd.0.core -N netbsd.0 | more
NetBSD 1.4Z (GENERIC) #12: Sat May 27 16:55:41 PDT 2000
cpu0: family 4 model f step 4
cpu0: AMD Am5x86 W/B 133/160 (486-class)
total memory = 20096 KB
avail memory = 13864 KB
using 276 buffers containing 1104 KB of memory
BIOS32 rev. 0 found at 0xfbd30
mainbus0 (root)
Warning: broken PCI-Host bridge detected; disabling memory-mapped access
pci0 at mainbus0 bus 0: configuration mode 1
pci0: i/o space enabled
pchb0 at pci0 dev 5 function 0
pchb0: Silicon Integrated System 85C496 (rev. 0x31)
vga1 at pci0 dev 11 function 0: 3Dfx Interactive Voodoo3 (rev. 0x01)
wsdisplay0 at vga1: console (80x25, vt100 emulation)
epic0 at pci0 dev 13 function 0: SMC 83c170 Fast Ethernet, rev. 8
epic0: interrupting at irq 10
epic0: SMC9432BTX, Ethernet address 00:e0:29:1b:6a:5b
qsphy0 at epic0 phy 3: QS6612 10/100 media interface, rev. 1
qsphy0: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto
isa0 at mainbus0
aha0 at isa0 port 0x330-0x333 irq 11 drq 5
aha0: model AHA-1540A/1542A/1542B, firmware 0.5
aha0: async, parity
scsibus0 at aha0: 8 targets, 8 luns per target
com0 at isa0 port 0x3f8-0x3ff irq 4: ns16550a, working fifo
com1 at isa0 port 0x2f8-0x2ff irq 3: ns16550a, working fifo
pckbc0 at isa0 port 0x60-0x64
pckbd0 at pckbc0 (kbd slot)
pckbc0: using irq 1 for kbd slot
wskbd0 at pckbd0: console keyboard, using wsdisplay0
lpt0 at isa0 port 0x378-0x37b irq 7
pcppi0 at isa0 port 0x61
midi0 at pcppi0: PC speaker
sysbeep0 at pcppi0
isapnp0 at isa0 port 0x279: ISA Plug 'n Play device support
npx0 at isa0 port 0xf0-0xff: using exception 16
fdc0 at isa0 port 0x3f0-0x3f7 irq 6 drq 2
fd0 at fdc0 drive 0: 1.44MB, 80 cyl, 2 head, 18 sec
isapnp0: no ISA Plug 'n Play devices found
biomask fb65 netmask ff65 ttymask ffe7
scsibus0: waiting 2 seconds for devices to settle...
sd0 at scsibus0 target 0 lun 0: <IBM, DCAS-32160W, S65A> SCSI2 0/direct fixed
sd0: 2063 MB, 8188 cyl, 3 head, 172 sec, 512 bytes/sect x 4226725 sectors
sd1 at scsibus0 target 1 lun 0: <IBM, DCAS-32160W, S60B> SCSI2 0/direct fixed
sd1: 2063 MB, 8188 cyl, 3 head, 172 sec, 512 bytes/sect x 4226725 sectors
st0 at scsibus0 target 6 lun 0: <TANDBERG, TDC 4200, =08:> SCSI2 1/sequential re
st0: rogue, drive empty
boot device: sd0
root on sd0a dumps on sd0b
root file system type: ffs
wsdisplay0: screen 1 added (80x25, vt100 emulation)
wsdisplay0: screen 2 added (80x25, vt100 emulation)
wsdisplay0: screen 3 added (80x25, vt100 emulation)
wsdisplay0: screen 4 added (80x25, vt100 emulation)
wsmux1: connecting to wsdisplay0
uvm_fault(0xc04d6f60, 0xc2be5000, 0, 1) -> 1
syncing disks... 14 14 10 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 giving up

# gdb netbsd.0
GNU gdb 4.17
Copyright 1998 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you are
welcome to change it and/or distribute copies of it under certain conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB.  Type "show warranty" for details.
This GDB was configured as "i386--netbsd"...(no debugging symbols found)...
(gdb) target kcore netbsd.0.core
#0  0xc049db48 in db_last_command ()
(gdb) trace
trace command requires an argument
(gdb) where
#0  0xc049db48 in db_last_command ()
#1  0xc02d655b in cpu_reboot ()
#2  0xc017d91f in db_sync_cmd ()
#3  0xc017d560 in db_command ()
#4  0xc017d702 in db_command_loop ()
#5  0xc0180096 in db_trap ()
#6  0xc02d428c in kdb_trap ()
#7  0xc02de878 in trap ()
#8  0xc0100f01 in calltrap ()
#9  0xc0280880 in nfs_sigintr ()
#10 0xc028055d in nfs_timer ()
#11 0xc0192fe9 in softclock ()
#12 0xc0192e77 in hardclock ()
#13 0xc03668fb in clockintr ()
#14 0xc0101110 in Xintr0 ()
(gdb) quit

	The portion of maketars which has been modified is as follows 
        (delimited by lines of '***'):

if [ ! -d $dest/var/db/install ]; then
        mkdir $dest/var/db/install
for setname in $lists; do
        echo "making $out"
        sh $setd/makeflist -a $arch -m $machine -s $setd $setname > /tmp/$setname.files
        (cd $dest && cat /tmp/$setname.files | xargs md5 ) > $dest/var/db/install/$setname.md5
        (cat /tmp/$setname.files ; echo var/db/install/$setname.md5) |
          (cd $dest ; pax -w -d) |
          gzip -9 > ${tars}/$out

	Do a make build from a AMD mounted source tree into a DESTDIR on a 
        local SCSI disk.