Bug 28178

Summary: Ethernet drivers cause kernel panic
Product: Base System Reporter: Hal Peterson <hrp>
Component: kernAssignee: Thomas Moestl <tmm>
Status: Closed FIXED    
Severity: Affects Only Me    
Priority: Normal    
Version: 4.3-STABLE   
Hardware: Any   
OS: Any   

Description Hal Peterson 2001-06-15 16:00:03 UTC
When I use ifconfig to set the IPv4 address of an Ethernet interface (either xl0 or ne0), FreeBSD panics.

For more details, see PR #19219:

http://www.FreeBSD.org/cgi/query-pr.cgi?pr=19219

I have a couple of kernel dumps on the machine, which I'll be happy to provide if I can figure out how to get them OFF the machine without a network connection.
Failing that, I can run gdb and dig further information from the dumps at your request.

For now, here is the backtrace from one of the dumps:

        #0  dumpsys
        #1  boot
        #2  poweroff_wait
        #3  trap_fatal
        #4  trap_pfault
        #5  trap
        #6  ??
        #7  intr_mux
        #8  vec9
        #9  softclock
        #10 splz_swi
        #11 in_control
        #12 if_ioctl
        #13 soo_ioctl
        #14 ioctl
        #15 syscall2
        #16 Xint0x80_syscall
        #17 ??
        #18 ??

This machine, my primary desktop, is nearly useless without a network connection, so quick attention would be helpful.

Fix: 

No fix.  No workaround.
How-To-Repeat: Boot the system in single-user mode.

Connect Ethernet interface (xl0 or ne0) to a hub.

ifconfig xl0 up
ifconfig xl0 media 100baseTX
ifconfig xl0 inet 10.0.1.2 netmask 255.255.255.0

Panic!
Comment 1 Hal Peterson 2001-06-16 21:41:53 UTC
================ General information:

The machine is a Dell Dimension XPS R400.  The Ethernet cards are a
3c905B and an NE2000 clone; usually I use only the 3c905B.

It's running a copy of 4.3-STABLE that I fetched with Cvsup on 27 May,
checked out with the label RELENG_4.

I'd never seen this problem before this Tuesday, 12 June 2001.


================ Output from uname -a:

FreeBSD melchett.pinemarten.org.pri 4.3-STABLE FreeBSD 4.3-STABLE #5: Wed
Jun 13 18:38:01 CDT 2001
root@melchett.pinemarten.org.pri:/usr/src/sys/compile/MELCHETT  i386


================ Contents of /usr/src/sys/i386/conf/MELCHETT

#
# MELCHETT -- kernel configuration file for melchett.pinemarten.org.pri,
# based on the template file:
# GENERIC -- Generic kernel configuration file for FreeBSD/i386
#
# MELCHETT $Id: MELCHETT,v 1.2 2001/04/09 00:42:42 hrp Exp $
#
# For more information on this file, please read the handbook section on
# Kernel Configuration Files:
#
#    http://www.FreeBSD.org/handbook/kernelconfig-config.html
#
# The handbook is also available locally in /usr/share/doc/handbook
# if you've installed the doc distribution, otherwise always see the
# FreeBSD World Wide Web server (http://www.FreeBSD.org/) for the
# latest information.
#
# An exhaustive list of options and more detailed explanations of the
# device lines is also present in the ./LINT configuration file. If you are
# in doubt as to the purpose or necessity of a line, check first in LINT.
#
# $FreeBSD: src/sys/i386/conf/GENERIC,v 1.246.2.20 2000/10/31 23:16:07
n_hibma Exp $

machine		i386
cpu		I686_CPU
ident		MELCHETT
maxusers	32

#makeoptions	DEBUG=-g		#Build kernel with gdb(1) debug symbols

options 	INET			#InterNETworking
options 	FFS			#Berkeley Fast Filesystem
options 	FFS_ROOT		#FFS usable as root device [keep this!]
options 	SOFTUPDATES		#Enable FFS soft updates support
options 	MFS			#Memory Filesystem
options 	MD_ROOT			#MD is a potential root device
options 	PROCFS			#Process filesystem
options 	COMPAT_43		#Compatible with BSD 4.3 [KEEP THIS!]
options 	SCSI_DELAY=15000	#Delay (in ms) before probing SCSI
options 	UCONSOLE		#Allow users to grab the console
options 	USERCONFIG		#boot -c editor
options 	VISUAL_USERCONFIG	#visual boot -c editor
options 	KTRACE			#ktrace(1) support
options 	SYSVSHM			#SYSV-style shared memory
options 	SYSVMSG			#SYSV-style message queues
options 	SYSVSEM			#SYSV-style semaphores
options 	P1003_1B		#Posix P1003_1B real-time extensions
options 	_KPOSIX_PRIORITY_SCHEDULING
options		ICMP_BANDLIM		#Rate limit bad replies
options 	KBD_INSTALL_CDEV	# install a CDEV entry in /dev
options		NETGRAPH		# I seem to need this....

device		isa
device		eisa
device		pci

# Floppy drives
device		fdc0	at isa? port IO_FD1 irq 6 drq 2
device		fd0	at fdc0 drive 0

# ATA and ATAPI devices
device		ata
device		atadisk			# ATA disk drives
device		atapicd			# ATAPI CDROM drives
device		atapifd			# ATAPI floppy drives
device		atapist			# ATAPI tape drives
options 	ATA_STATIC_ID		#Static device numbering
#options 	ATA_ENABLE_ATAPI_DMA	#Enable DMA on ATAPI devices

# atkbdc0 controls both the keyboard and the PS/2 mouse
device		atkbdc0	at isa? port IO_KBD
device		atkbd0	at atkbdc? irq 1 flags 0x1
device		psm0	at atkbdc? irq 12

device		vga0	at isa?

# splash screen/screen saver
pseudo-device	splash

# syscons is the default console driver, resembling an SCO console
device		sc0	at isa? flags 0x100

# Floating point support - do not disable.
device		npx0	at nexus? port IO_NPX irq 13

# Power management support (see LINT for more options)
device		apm0    at nexus? disable flags 0x20 # Advanced Power Management

# Serial (COM) ports
device		sio0	at isa? port IO_COM1 flags 0x10 irq 4
device		sio1	at isa? port IO_COM2 irq 3
device		sio2	at isa? disable port IO_COM3 irq 5
device		sio3	at isa? disable port IO_COM4 irq 9

# Parallel port
device		ppc0	at isa? irq 7
device		ppbus		# Parallel port bus (required)
device		lpt		# Printer

# PCI Ethernet NICs that use the common MII bus controller code.
# NOTE: Be sure to keep the 'device miibus' line in order to use these NICs!
device		miibus		# MII bus support
device		xl		# 3Com 3c90x (``Boomerang'', ``Cyclone'')

# ISA Ethernet NICs.
device		ed0	at isa? port 0x280 irq 10 iomem 0xd8000

# Pseudo devices - the number indicates how many units to allocated.
pseudo-device	loop		# Network loopback
pseudo-device	ether		# Ethernet support
pseudo-device	pty		# Pseudo-ttys (telnet etc)
pseudo-device	md		# Memory "disks"

# The `bpf' pseudo-device enables the Berkeley Packet Filter.
# Be aware of the administrative consequences of enabling this!
pseudo-device	bpf		#Berkeley packet filter

# USB support
device		uhci		# UHCI PCI->USB interface
device		usb		# USB Bus (required)
device		ugen		# Generic
device		uhid		# "Human Interface Devices"

# Additional devices for Melchett.

# Crystal audio
device		pcm


================ Output from dmesg after boot -s -v:

Copyright (c) 1992-2001 The FreeBSD Project.
Copyright (c) 1979, 1980, 1983, 1986, 1988, 1989, 1991, 1992, 1993, 1994
	The Regents of the University of California. All rights reserved.
FreeBSD 4.3-STABLE #5: Wed Jun 13 18:38:01 CDT 2001
    root@melchett.pinemarten.org.pri:/usr/src/sys/compile/MELCHETT
Calibrating clock(s) ... TSC clock: 398268837 Hz, i8254 clock: 1193182 Hz
CLK_USE_I8254_CALIBRATION not specified - using default frequency
Timecounter "i8254"  frequency 1193182 Hz
CLK_USE_TSC_CALIBRATION not specified - using old calibration method
CPU: Pentium II/Pentium II Xeon/Celeron (398.27-MHz 686-class CPU)
  Origin = "GenuineIntel"  Id = 0x652  Stepping = 2

Features=0x183f9ff<FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,SEP,MTRR,PGE,MCA,CMOV,
PAT,PSE36,MMX,FXSR>
real memory  = 134217728 (131072K bytes)
Physical memory chunk(s):
0x00001000 - 0x0009efff, 647168 bytes (158 pages)
0x0031e000 - 0x040fcfff, 64876544 bytes (15839 pages)
0x04100000 - 0x07ff7fff, 66027520 bytes (16120 pages)
avail memory = 127676416 (124684K bytes)
bios32: Found BIOS32 Service Directory header at 0xc00f6b40
bios32: Entry = 0xfd7a0 (c00fd7a0)  Rev = 0  Len = 1
pcibios: PCI BIOS entry at 0x203
pnpbios: Found PnP BIOS data at 0xc00f6b90
pnpbios: Entry = f0000:9f56  Rev = 1.0
Other BIOS signatures found:
ACPI: 000f6b70
Pentium Pro MTRR support enabled
md0: Malloc disk
Creating DISK md0
pci_open(1):	mode 1 addr port (0x0cf8) is 0x80003904
pci_open(1a):	mode1res=0x80000000 (0x80000000)
pci_cfgcheck:	device 0 [class=060000] [hdr=00] is there (id=71908086)
npx0: <math processor> on motherboard
npx0: INT 16 interface
pci_open(1):	mode 1 addr port (0x0cf8) is 0x00000000
pci_open(1a):	mode1res=0x80000000 (0x80000000)
pci_cfgcheck:	device 0 [class=060000] [hdr=00] is there (id=71908086)
pcib0: <Intel 82443BX (440 BX) host to PCI bridge> on motherboard
found->	vendor=0x8086, dev=0x7190, revid=0x03
	class=06-00-00, hdrtype=0x00, mfdev=0
	subordinatebus=0 	secondarybus=0
	map[10]: type 1, range 32, base f8000000, size 26
found->	vendor=0x8086, dev=0x7191, revid=0x03
	class=06-04-00, hdrtype=0x01, mfdev=0
	subordinatebus=1 	secondarybus=1
found->	vendor=0x8086, dev=0x7110, revid=0x02
	class=06-01-00, hdrtype=0x00, mfdev=1
	subordinatebus=0 	secondarybus=0
found->	vendor=0x8086, dev=0x7111, revid=0x01
	class=01-01-80, hdrtype=0x00, mfdev=0
	subordinatebus=0 	secondarybus=0
	map[20]: type 1, range 32, base 000010c0, size  4
found->	vendor=0x8086, dev=0x7112, revid=0x01
	class=0c-03-00, hdrtype=0x00, mfdev=0
	subordinatebus=0 	secondarybus=0
	intpin=d, irq=9
	map[20]: type 1, range 32, base 00001080, size  5
found->	vendor=0x8086, dev=0x7113, revid=0x02
	class=06-80-00, hdrtype=0x00, mfdev=0
	subordinatebus=0 	secondarybus=0
	map[90]: type 1, range 32, base 00007000, size  4
found->	vendor=0x1013, dev=0x6001, revid=0x01
	class=04-01-00, hdrtype=0x00, mfdev=0
	subordinatebus=0 	secondarybus=0
	intpin=a, irq=9
	map[10]: type 1, range 32, base f4100000, size 12
	map[14]: type 1, range 32, base f4000000, size 20
found->	vendor=0x10ec, dev=0x8029, revid=0x00
	class=02-00-00, hdrtype=0x00, mfdev=0
	subordinatebus=0 	secondarybus=0
	intpin=a, irq=9
	map[10]: type 1, range 32, base 000010a0, size  5
found->	vendor=0x10b7, dev=0x9055, revid=0x24
	class=02-00-00, hdrtype=0x00, mfdev=0
	subordinatebus=0 	secondarybus=0
	intpin=a, irq=9
	map[10]: type 1, range 32, base 00001000, size  7
	map[14]: type 1, range 32, base f4101000, size  7
pci0: <PCI bus> on pcib0
pcib1: <Intel 82443BX (440 BX) PCI-PCI (AGP) bridge> at device 1.0 on pci0
found->	vendor=0x10de, dev=0x0020, revid=0x04
	class=03-00-00, hdrtype=0x00, mfdev=0
	subordinatebus=0 	secondarybus=0
	intpin=a, irq=11
	map[10]: type 1, range 32, base f5000000, size 24
	map[14]: type 1, range 32, base fc000000, size 24
pci1: <PCI bus> on pcib1
pci1: <NVidia Riva TNT graphics accelerator> (vendor=0x10de, dev=0x0020) at
0.0 irq 11
isab0: <Intel 82371AB PCI to ISA bridge> at device 7.0 on pci0
isa0: <ISA bus> on isab0
atapci0: <Intel PIIX4 ATA33 controller> port 0x10c0-0x10cf at device 7.1 on
pci0
ata0: iobase=0x01f0 altiobase=0x03f6 bmaddr=0x10c0
ata0: mask=03 status0=50 status1=50
ata0: mask=03 ostat0=50 ostat2=50
ata0-master: ATAPI probe a=00 b=00
ata0-slave: ATAPI probe a=00 b=00
ata0: mask=03 status0=50 status1=50
ata0-master: ATA probe a=01 b=a5
ata0-slave: ATA probe a=01 b=a5
ata0: devices=03
ata0: at 0x1f0 irq 14 on atapci0
ata1: iobase=0x0170 altiobase=0x0376 bmaddr=0x10c8
ata1: mask=03 status0=00 status1=50
ata1: mask=03 ostat0=00 ostat2=50
ata1-slave: ATAPI probe a=14 b=eb
ata1-master: ATAPI probe a=14 b=eb
ata1: mask=03 status0=10 status1=10
ata1: devices=0c
ata1: at 0x170 irq 15 on atapci0
uhci0: <Intel 82371AB/EB (PIIX4) USB controller> port 0x1080-0x109f irq 9 at
device 7.2 on pci0
usb0: <Intel 82371AB/EB (PIIX4) USB controller> on uhci0
usb0: USB revision 1.0
uhub0: Intel UHCI root hub, class 9/0, rev 1.00/1.00, addr 1
uhub0: 2 ports with 2 removable, self powered
chip1: <Intel 82371AB Power management controller> port 0x7000-0x700f at
device 7.3 on pci0
csa0: <Crystal Semiconductor CS4610/4611 Audio accelerator> mem
0xf4000000-0xf40fffff,0xf4100000-0xf4100fff irq 9 at device 11.0 on pci0
	using shared irq9.
device_probe_and_attach: csa0 attach returned 6
ed0: <NE2000 PCI Ethernet (RealTek 8029)> port 0x10a0-0x10bf irq 9 at device
14.0 on pci0
bpf: ed0 attached
ed0: address 00:20:18:57:26:26, type NE2000 (16 bit)
xl0: <3Com 3c905B-TX Fast Etherlink XL> port 0x1000-0x107f mem
0xf4101000-0xf410107f irq 9 at device 15.0 on pci0
xl0: Ethernet address: 00:10:4b:6b:3b:e1
xl0: media options word: a
xl0: found MII/AUTO
miibus0: <MII bus> on xl0
xlphy0: <3Com internal media interface> on miibus0
xlphy0:  10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto
bpf: xl0 attached
ed-: ed0 exists, using next available unit number
Trying Read_Port at 203
CSC0000: start dependant
CSC0000: adding dma mask 0x2
CSC0000: adding dma mask 0x9
CSC0000: adding irq mask 0x20
CSC0000: adding io range 0x534-0x537, size=0x4, align=0x4
CSC0000: adding io range 0x388-0x38b, size=0x4, align=0x8
CSC0000: adding io range 0x220-0x22f, size=0x10, align=0x20
CSC0000: start dependant
CSC0000: adding dma mask 0xa
CSC0000: adding dma mask 0xb
CSC0000: adding irq mask 0xcb8
CSC0000: adding io range 0x534-0xfff, size=0x4, align=0x4
CSC0000: adding io range 0x388-0x38b, size=0x4, align=0x8
CSC0000: adding io range 0x220-0x26f, size=0x10, align=0x20
CSC0000: start dependant
CSC0000: adding dma mask 0xb
CSC0000: adding irq mask 0xcb8
CSC0000: adding io range 0x534-0xfff, size=0x4, align=0x4
CSC0000: adding io range 0x388-0x3cb, size=0x4, align=0x8
CSC0000: adding io range 0x220-0x30f, size=0x10, align=0x20
CSC0000: end dependant
CSC0001: start dependant
CSC0001: adding io range 0x200-0x207, size=0x8, align=0x8
CSC0001: start dependant
CSC0001: adding io range 0x208-0x20f, size=0x8, align=0x8
CSC0001: end dependant
CSC0010: adding io range 0x120-0x3af, size=0x8, align=0x8
CSC0003: start dependant
CSC0003: adding irq mask 0x400
CSC0003: adding io range 0x330-0x331, size=0x2, align=0x8
CSC0003: start dependant
CSC0003: adding irq mask 0xcb8
CSC0003: adding io range 0x330-0x361, size=0x2, align=0x8
CSC0003: start dependant
CSC0003: adding io range 0x330-0x3e1, size=0x2, align=0x8
CSC0003: end dependant
USR3090: start dependant
USR3090: adding io range 0x2f8-0x2ff, size=0x8, align=0x8
USR3090: adding irq mask 00x8
USR3090: start dependant
USR3090: adding io range 0x3f8-0x3ff, size=0x8, align=0x8
USR3090: adding irq mask 0x10
USR3090: start dependant
USR3090: adding io range 0x3e8-0x3ef, size=0x8, align=0x8
USR3090: adding irq mask 0xbc
USR3090: start dependant
USR3090: adding io range 0x2e8-0x2ef, size=0x8, align=0x8
USR3090: adding irq mask 0xbc
USR3090: start dependant
USR3090: adding io range 0x2f8-0x2ff, size=0x8, align=0x8
USR3090: adding irq mask 0xa8
USR3090: start dependant
USR3090: adding io range 0x3f8-0x3ff, size=0x8, align=0x8
USR3090: adding irq mask 0xbc
USR3090: end dependant
isa_probe_children: disabling PnP devices
isa_probe_children: probing non-PnP devices
fdc0: <NEC 72065B or clone> at port 0x3f0-0x3f5,0x3f7 irq 6 drq 2 on isa0
fdc0: FIFO enabled, 8 bytes threshold
fd0: <1440-KB 3.5" drive> on fdc0 drive 0
atkbdc0: <Keyboard controller (i8042)> at port 0x60,0x64 on isa0
atkbd0: <AT Keyboard> flags 0x1 irq 1 on atkbdc0
atkbd: the current kbd controller command byte 0047
atkbd: keyboard ID 0x41ab (2)
kbd0 at atkbd0
kbd0: atkbd0, AT 101/102 (2), config:0x1, flags:0x3d0000
psm0: current command byte:0047
psm0: <PS/2 Mouse> irq 12 on atkbdc0
psm0: model Generic PS/2 mouse, device ID 0-00, 3 buttons
psm0: config:00000000, flags:00000000, packet size:3
psm0: syncmask:c0, syncbits:00
vga0: <Generic ISA VGA> at port 0x3c0-0x3df iomem 0xa0000-0xbffff on isa0
fb0: vga0, vga, type:VGA (5), flags:0x7007f
fb0: port:0x3c0-0x3df, crtc:0x3d4, mem:0xa0000 0x20000
fb0: init mode:24, bios mode:3, current mode:24
fb0: window:0xc00b8000 size:32k gran:32k, buf:0 size:32k
VGA parameters upon power-up
50 18 10 00 00 00 03 00 02 67 5f 4f 50 82 55 81
bf 1f 00 4f 0e 0f 00 00 01 40 9c 8e 8f 28 1f 96
b9 a3 ff 00 01 02 03 04 05 14 07 38 39 3a 3b 3c
3d 3e 3f 0c 00 0f 08 00 00 00 00 00 10 0e 00 ff
VGA parameters in BIOS for mode 24
50 18 10 00 10 00 03 00 02 67 5f 4f 50 82 55 81
bf 1f 00 4f 0d 0e 00 00 00 00 9c 8e 8f 28 1f 96
b9 a3 ff 00 01 02 03 04 05 14 07 38 39 3a 3b 3c
3d 3e 3f 0c 00 0f 08 00 00 00 00 00 10 0e 00 ff
EGA/VGA parameters to be used for mode 24
50 18 10 00 10 00 03 00 02 67 5f 4f 50 82 55 81
bf 1f 00 4f 0d 0e 00 00 00 00 9c 8e 8f 28 1f 96
b9 a3 ff 00 01 02 03 04 05 14 07 38 39 3a 3b 3c
3d 3e 3f 0c 00 0f 08 00 00 00 00 00 10 0e 00 ff
sc0: <System console> at flags 0x100 on isa0
sc0: VGA <16 virtual consoles, flags=0x300>
sc0: fb0, kbd0, terminal emulator: sc (syscons terminal)
sio0: irq maps: 0x461 0x471 0x461 0x461
sio0 at port 0x3f8-0x3ff irq 4 flags 0x10 on isa0
sio0: type 16550A
sio1: configured irq 3 not in bitmap of probed irqs 0
sio1: irq maps: 0x461 0x461 0x461 0x461
sio1: probe failed test(s): 0 1 2 4 6 7 9
sio1 failed to probe at port 0x2f8-0x2ff irq 3 on isa0
sio2: not probed (disabled)
sio3: not probed (disabled)
ppc0: parallel port found at 0x378
ppc0: using extended I/O port range
ppc0: ECP SPP ECP+EPP SPP
ppc0: <Parallel port> at port 0x378-0x37f irq 7 on isa0
ppc0: SMC-like chipset (ECP/EPP/PS2/NIBBLE) in COMPATIBLE mode
ppc0: FIFO with 16/16/8 bytes threshold
lpt0: <Printer> on ppbus0
lpt0: Interrupt-driven port
ed1 failed to probe at port 0x280-0x29f iomem 0xd8000 irq 10 on isa0
isa_probe_children: probing PnP devices
pcm0: <CS423x> at port 0x534-0x537,0x388-0x38b,0x220-0x22f irq 5 drq 1,0 on
isa0
pcm: setmap 25000, 1000; 0xc7835000 -> 25000
pcm: setmap 26000, 1000; 0xc7836000 -> 26000
unknown: <Game> failed to probe at port 0x200-0x207 on isa0
unknown: <Ctrl> failed to probe at port 0x120-0x127 on isa0
unknown: <MPU> failed to probe at port 0x330-0x331 irq 10 on isa0
sio4: irq maps: 0x41 0x49 0x41 0x41
sio4: <U.S. Robotics 56K Voice INT> at port 0x2f8-0x2ff irq 3 on isa0
sio4: type 16550A
BIOS Geometries:
 0:03fefe3f 0..1022=1023 cylinders, 0..254=255 heads, 1..63=63 sectors
 1:03fefe3f 0..1022=1023 cylinders, 0..254=255 heads, 1..63=63 sectors
 0 accounted for
Device configuration finished.
bpf: lo0 attached
ata0-master: success setting UDMA2 on Intel chip
Creating DISK ad0
Creating DISK wd0
ad0: <Maxtor 90845D4/GAS54112> ATA-4 disk at ata0-master
ad0: 8063MB (16514064 sectors), 16383 cyls, 16 heads, 63 S/T, 512 B/S
ad0: 16 secs/int, 1 depth queue, UDMA33
ad0: piomode=4 dmamode=2 udmamode=2 cblid=0
ad0: 8063MB <Maxtor 90845D4> [16383/16/63] at ata0-master UDMA33
ata0-slave: success setting UDMA2 on Intel chip
Creating DISK ad1
Creating DISK wd1
ad1: <IBM-DTTA-371290/T79OA73A> ATA-4 disk at ata0-slave
ad1: 12395MB (25385472 sectors), 25184 cyls, 16 heads, 63 S/T, 512 B/S
ad1: 16 secs/int, 1 depth queue, UDMA33
ad1: piomode=4 dmamode=2 udmamode=2 cblid=0
ad1: 12395MB <IBM-DTTA-371290> [25184/16/63] at ata0-slave UDMA33
ata1-master: piomode=4 dmamode=2 udmamode=-1 dmaflag=1
ata1-master: success setting PIO4 on generic chip
ast0: <Seagate STT20000A/8.25> tape drive at ata1 as master
ast0: 1000KB/s, transfer limit 52 blks, 364KB buffer, PIO4
ast0: Drive empty, readonly, qfa, ecc, 512b
ata1-slave: piomode=4 dmamode=2 udmamode=2 dmaflag=1
ata1-slave: success setting PIO4 on generic chip
acd0: <NEC CD-ROM DRIVE:28D/3.04> CDROM drive at ata1 as slave
acd0: read 2928KB/s (6890KB/s), 128KB buffer, PIO4
acd0: Reads: CD-R, CD-RW, CD-DA
acd0: Audio: play, 256 volume levels
acd0: Mechanism: ejectable tray
acd0: Medium: no/blank disc inside, unlocked
Mounting root from ufs:wd1s1a
wd1s1: type 0xa5, start 63, end = 25382699, size 25382637 : OK
start_init: trying /sbin/init
ad0s1: type 0xc, start 63, end = 16498754, size 16498692 : OK


================ Console messages at crash:

Fatal trap 12: page fault while in kernel mode
fault virtual address   = 0xb380c0a3
fault code              = supervisor write, page not present
instruction pointer     = 0x8:0xc0a3b280
stack pointer           = 0x10:0xc871dcb4
frame pointer           = 0x10:0xc871dcc8
code segment            = base rx0, limit 0xfffff, type 0x1b
                        = DPL 0, pres 1, def32 1, gran 1
processor eflags        = interrupt enabled, resume, IOPL = 0
current process         = 31 (ifconfig)
interrupt mask          = tty
trap number             = 12
panic: page fault

syncing disks...
done
Uptime: 4m53s

dumping to dev #ad/0x20009, offset 524288


================ Backtrace from dump:

#0  dumpsys () at ../../kern/kern_shutdown.c:469
#1  0xc0137993 in boot (howto=256) at ../../kern/kern_shutdown.c:309
#2  0xc0137d10 in poweroff_wait (junk=0xc024642f, howto=-942259136)
    at ../../kern/kern_shutdown.c:556
#3  0xc02100a1 in trap_fatal (frame=0xc871dc74, eva=3011559587)
    at ../../i386/i386/trap.c:951
#4  0xc020fd79 in trap_pfault (frame=0xc871dc74, usermode=0, eva=3011559587)
    at ../../i386/i386/trap.c:844
#5  0xc020f95f in trap (frame={tf_fs = 16, tf_es = 6684688, tf_ds = 16,
      tf_edi = -1062986748, tf_esi = -1, tf_ebp = -932062008,
      tf_isp = -932062048, tf_ebx = -1062986752, tf_edx = 0, tf_ecx = 0,
      tf_eax = -1063013760, tf_trapno = 12, tf_err = 2, tf_eip
= -1063013760,
      tf_cs = 8, tf_eflags = 66178, tf_esp = -1071866134, tf_ss
= -1070975360})
    at ../../i386/i386/trap.c:443
#6  0xc0a3b280 in ?? ()
#7  0xc0217f2d in intr_mux (arg=0xc072a8c0)
    at ../../i386/isa/intr_machdep.c:582
#8  0xc0174f56 in ifa_ifwithroute (flags=257, dst=0xc0ad8e98,
    gateway=0xc0ad8e98) at ../../net/route.c:435
#9  0xc0175157 in rtrequest (req=1, dst=0xc0ad8e98, gateway=0xc0ad8e98,
    netmask=0xc0ad8eb8, flags=257, ret_nrt=0xc871dda8) at
../../net/route.c:566
#10 0xc017581b in rtinit (ifa=0xc0ad8e00, cmd=1, flags=1)
    at ../../net/route.c:1011
#11 0xc017c711 in in_ifinit (ifp=0xc0a3c000, ia=0xc0ad8e00, sin=0xc871debc,
    scrub=0) at ../../netinet/in.c:719
#12 0xc017c0bd in in_control (so=0xc7c38f00, cmd=2151704858,
    data=0xc871deac "xl0", ifp=0xc0a3c000, p=0xc7d64440)
    at ../../netinet/in.c:412
#13 0xc0171a8f in ifioctl (so=0xc7c38f00, cmd=2151704858,
    data=0xc871deac "xl0", p=0xc7d64440) at ../../net/if.c:972
#14 0xc01491de in soo_ioctl (fp=0xc0a4f300, cmd=2151704858,
    data=0xc871deac "xl0", p=0xc7d64440) at ../../kern/sys_socket.c:143
#15 0xc014619e in ioctl (p=0xc7d64440, uap=0xc871df80) at
../../sys/file.h:178
#16 0xc021034d in syscall2 (frame={tf_fs = 47, tf_es = 47, tf_ds = 47,
      tf_edi = 0, tf_esi = -1077936844, tf_ebp = -1077937080,
      tf_isp = -932061228, tf_ebx = 134669336, tf_edx = 3, tf_ecx =
134749040,
      tf_eax = 54, tf_trapno = 12, tf_err = 2, tf_eip = 134529672, tf_cs =
31,
      tf_eflags = 647, tf_esp = -1077937220, tf_ss = 47})
    at ../../i386/i386/trap.c:1150
#17 0xc0205185 in Xint0x80_syscall ()
#18 0x80486e1 in ?? ()
#19 0x8048135 in ?? ()
Comment 2 Hal Peterson 2001-06-17 01:02:42 UTC
>>>>> "Thomas" == Thomas Moestl <tmoestl@gmx.net> writes:
    Thomas> recompile your kernel without "device pcm" and look if
    Thomas> that stops the panics? 

The panics stopped.  I can boot and run cleanly with the network card
running.  So, does that mean that the bug is in the PCM driver?

--
Hal Peterson                                    cisco Systems
                                                St Paul, MN, USA
Comment 3 Hal Peterson 2001-06-17 02:00:01 UTC
>>>>> "Thomas" == Thomas Moestl <tmoestl@gmx.net> writes:
    Thomas> I think there is a bug in the csa driver which has the
    Thomas> potential to cause corruption. I'm not completely sure
    Thomas> whether that is the reason, though. If it is, the attached
    Thomas> patch should (hopefully) fix it.

The patch appears to have fixed the problem.  Now I have both network
connectivity and sound.  Bravo!

Is there anything else I can do to help?

--
Hal Peterson                                    cisco Systems
                                                St Paul, MN, USA
Comment 4 Thomas Moestl freebsd_committer freebsd_triage 2001-06-18 19:49:32 UTC
State Changed
From-To: open->closed

The panics were apparently caused by a bug in the csa driver. A fix 
for this has been committed to -CURRENT and will be MFC'd in a few 
days. 



Comment 5 Thomas Moestl freebsd_committer freebsd_triage 2001-06-18 19:49:32 UTC
Responsible Changed
From-To: freebsd-bugs->tmm

I handled this PR.