Subject: port-i386/8267: reboots during network dump
To: None <gnats-bugs@gnats.netbsd.org>
From: Wenchi <wliao@geyser.uchicago.edu>
List: netbsd-bugs
Date: 08/24/1999 11:58:44
>Number:         8267
>Category:       port-i386
>Synopsis:       reboots during network dump
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    port-i386-maintainer (NetBSD/i386 Portmaster)
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Tue Aug 24 11:20:01 1999
>Last-Modified:
>Originator:     WL
>Organization:
	
>Release:        1.4 release, current-19990815
>Environment:
System: NetBSD geyser 1.4 NetBSD 1.4 (KUALALAMPUR) #4: Fri Jul 30 12:36:28 CDT 1999 wliao@kualalampur:/usr/src/sys/arch/i386/compile/KUALALAMPUR i386

Micron Mme (pent mmx), 32Mram

NetBSD 1.4 (KUALALAMPUR) #4: Fri Jul 30 12:36:28 CDT 1999
    wliao@kualalampur:/usr/src/sys/arch/i386/compile/KUALALAMPUR
cpu0: family 5 model 4 step 3
cpu0: Intel Pentium/MMX (586-class)
real mem  = 33161216
avail mem = 28803072
using 430 buffers containing 1761280 bytes of memory
mainbus0 (root)
pci0 at mainbus0 bus 0: configuration mode 1
pci0: i/o enabled, memory enabled
pchb0 at pci0 dev 0 function 0
pchb0: vendor 0x8086 product 0x7100 (rev. 0x01)
pcib0 at pci0 dev 7 function 0
pcib0: vendor 0x8086 product 0x7110 (rev. 0x01)
pciide0 at pci0 dev 7 function 1: Intel 82371AB IDE controller (PIIX4)
pciide0: bus-master DMA support present
pciide0: primary channel wired to compatibility mode
wd0 at pciide0 channel 0 drive 0: <ST33232A>
wd0: drive supports 16-sector pio transfers, lba addressing
wd0: 3077MB, 6253 cyl, 16 head, 63 sec, 512 bytes/sect x 6303024 sectors
wd0: 32-bits data port
wd0: drive supports PIO mode 4, DMA mode 2, Ultra-DMA mode 2
pciide0: primary channel interrupting at irq 14
pciide0: secondary channel wired to compatibility mode
atapibus0 at pciide0 channel 1
cd0 at atapibus0 drive 0: <HITACHI CDR-8235, , 0004> type 5 cdrom removable
cd0: 32-bits data port
cd0: drive supports PIO mode 4, DMA mode 1
pciide0: secondary channel interrupting at irq 15
wd0(pciide0:0:0): using PIO mode 4, Ultra-DMA mode 2 (using DMA data transfers)
cd0(pciide0:1:0): using PIO mode 0, DMA mode 1 (using DMA data transfers)
uhci0 at pci0 dev 7 function 2: vendor 0x8086 product 0x7112 (rev. 0x01)
uhci0: interrupting at irq 9
uhci0: USB version 1.0
usb0 at uhci0
uhub0 at usb0
uhub0: vendor 0x8086 UHCI root hub, class 9/0, rev 1.00/1.00, addr 1
uhub0: 2 ports with 2 removable, self powered
vendor 0x8086 product 0x7113 (miscellaneous bridge, revision 0x01) at pci0 dev 7 function 3 not configured
vga0 at pci0 dev 13 function 0: vendor 0x5333 product 0x8a01 (rev. 0x01)
wsdisplay0 at vga0: console (80x25, vt100 emulation)
ex0 at pci0 dev 14 function 0: 3Com 3c905B-TX 10/100 Ethernet
ex0: interrupting at irq 10
ex0: MAC address 00:10:4b:99:f1:35
exphy0 at ex0 phy 24: 3Com internal media interface
exphy0: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto
isa0 at pcib0
com0 at isa0 port 0x3f8-0x3ff irq 4: ns16550a, working fifo
com1 at isa0 port 0x2f8-0x2ff irq 3: ns16550a, working fifo
lpt0 at isa0 port 0x378-0x37b irq 7
pckbc0 at isa0 port 0x60-0x64
pckbd0 at pckbc0 (kbd slot)
pckbc0: using irq 1 for kbd slot
wskbd0 at pckbd0: console keyboard
pmsi0 at pckbc0 (aux slot)
pckbc0: using irq 12 for aux slot
wsmouse0 at pmsi0
pcppi0 at isa0 port 0x61
midi0 at pcppi0: <PC speaker>
spkr0 at pcppi0
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: read port 0x203
ym0 at isapnp0 port 0x220/16,0x530/8,0x388/8,0x330/2,0x370/2 irq 5 drq 0,1
ym0: OPL3-SA3 Snd System : OPL3-SA3
audio0 at ym0: full duplex
joy0 at isapnp0 port 0x201/1
joy0: OPL3-SA3 Snd System 
joy0: joystick not connected
apm0 at mainbus0: Power Management spec V1.1
apm0: A/C state: on
apm0: battery charge state: no battery
biomask c240 netmask c640 ttymask d6c2
wscons: wskbd0 glued to wsdisplay0 (console)
boot device: wd0
root on wd0a dumps on wd0b
root file system type: ffs

	During an amanda run, the machine (as client) will
	spontaneously reboot itself while dumping over the
	network. The reboots aren't very regular, either.
	Sometimes the machine will reboot while dumping /opt,
	sometimes /usr (this may be due to amanda's scheduling).
	It doesn't seem to reboot while dumping /.

	Filesystem  1K-blocks     Used    Avail Capacity  Mounted on
	/dev/wd0a       98967    26232    67786    27%    /
	/dev/wd0e      495151   203090   267303    43%    /usr
	/dev/wd0f      838854   245339   551572    30%    /opt

	Somebody on the port-i386 mailling list suggested
	using -current (1.4.1) and/or disabling the rnd
	pseudo-device. I tried the -current source with and
	without the rnd and same results both times.

>Description:
>How-To-Repeat:
	Place the machine on an automatic dump schedule, or
	use a remote machine to
	  rsh geyser /sbin/dump -0 -f- /usr

	Doing a dump over the network seems to be key, since
	dumping locally by hand doesn't trigger the reboot.

	This works in mulit-user mode (kern.securelevel = 0);
	too annoyed to try single-user mode or other securelevels.

>Fix:
	The only workaround I've found is to use a 1.4GENERIC
	kernel. My guess is the apm device. Don't know if it
	is /usr/sbin/apmd or /dev/apm(ctl) at fault; I just
	know that if I boot with a 1.4 GENERIC kernel, the 
	above rsh doesn't trigger a reboot.
>Audit-Trail:
>Unformatted: