Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 26 Aug 2000 11:18:32 +0200 (CEST)
From:      Blaz Zupan <blaz@gold.amis.net>
To:        FreeBSD-bugs@freebsd.org
Subject:   Crash in kern/subr_disklabel:diskerr() on floppy access
Message-ID:  <200008260918.e7Q9IWT00795@gold.amis.net>

next in thread | raw e-mail | index | archive | help

>Submitter-Id:   current-users
>Originator:     Blaz Zupan
>Organization:   Medinet d.o.o. 
>Confidential:   no 
>Synopsis:       System crash in diskerr() when no floppy present on floppy access 
>Severity:       serious 
>Priority:       low 
>Category:       kern <[ advocacy | alpha | bin | conf | docs | gnu | i386 | kern | misc | ports | sparc ]>
>Release:        FreeBSD 5.0-CURRENT i386
>Class:          sw-bug 
>Environment: 

5.0-CURRENT as of 2000-08-26, output of dmesg and kernel configuration below:

Copyright (c) 1992-2000 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 5.0-CURRENT #0: Sat Aug 26 09:00:16 CEST 2000
    root@gold.amis.net:/home/blaz/FreeBSD/src/sys/compile/GOLD
Timecounter "i8254"  frequency 1193182 Hz
CPU: Pentium/P55C (232.88-MHz 586-class CPU)
  Origin = "GenuineIntel"  Id = 0x543  Stepping = 3
  Features=0x8001bf<FPU,VME,DE,PSE,TSC,MSR,MCE,CX8,MMX>
real memory  = 67108864 (65536K bytes)
avail memory = 61415424 (59976K bytes)
Preloaded elf kernel "kernel" at 0xc03e1000.
Intel Pentium detected, installing workaround for F00F bug
apm0: <APM BIOS> on motherboard
apm0: found APM BIOS v1.2, connected at v1.2
npx0: <math processor> on motherboard
npx0: INT 16 interface
pcib0: <Host to PCI bridge> on motherboard
pci0: <PCI bus> on pcib0
pci0: <Intel 82439TX System controller (MTXC)> at 0.0
isab0: <Intel 82371AB PCI to ISA bridge> at device 7.0 on pci0
isa0: <ISA bus> on isab0
atapci0: <Intel PIIX4 ATA33 controller> port 0xfc90-0xfc9f at device 7.1 on pci0
ata0: at 0x1f0 irq 14 on atapci0
ata1: at 0x170 irq 15 on atapci0
pci0: <Intel 82371AB/EB (PIIX4) USB controller> at 7.2 irq 9
pci0: <Intel 82371AB Power management controller> at 7.3
pci0: <S3 Trio graphics accelerator> at 13.0 irq 11
xl0: <3Com 3c900-TPO Etherlink XL> port 0xfcc0-0xfcff irq 9 at device 14.0 on pci0
xl0: Ethernet address: 00:a0:24:d8:32:0b
xl0: selecting 10baseT transceiver, half duplex
ahc0: <Adaptec 2940 SCSI adapter> port 0xf800-0xf8ff mem 0xfedff000-0xfedfffff irq 9 at device 15.0 on pci0
ahc0: aic7870 Single Channel A, SCSI Id=7, 16/255 SCBs
atkbdc0: <Keyboard controller (i8042)> at port 0x60,0x64 on isa0
atkbd0: <AT Keyboard> flags 0x1 irq 1 on atkbdc0
psm0: <PS/2 Mouse> irq 12 on atkbdc0
psm0: model IntelliMouse, device ID 3
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
pcic0: <Vadem 469> at port 0x3e0 iomem 0xd0000 on isa0
pcic0: Polling mode
pccard0: <PC Card bus -- kludge version> on pcic0
pccard1: <PC Card bus -- kludge version> on pcic0
sc0: <System console> at flags 0x100 on isa0
sc0: CGA <16 virtual consoles, flags=0x300>
sio0 at port 0x3f8-0x3ff irq 4 flags 0x10 on isa0
sio0: type 16550A
sio1 at port 0x2f8-0x2ff irq 3 on isa0
sio1: type 16550A
vga0: <Generic ISA VGA> at port 0x3d0-0x3db iomem 0xb8000-0xbffff on isa0
isic0: <ELSA QuickStep 1000pro> at port 0x160-0x167 irq 5 on isa0
pcm0: <Yamaha OPL-SAx> at port 0x240-0x24f,0xe80-0xe87,0x388-0x38f,0x300-0x301,0x100-0x101 irq 7 drq 0,1 on isa0
joy0: <Generic PnP Joystick> at port 0x201 on isa0
unknown: <PNP0303> can't assign resources
pca0: <AT-style speaker sound> at port 0x61 on isa0
unknown: <PNP0501> can't assign resources
unknown: <PNP0700> can't assign resources
unknown: <PNP0f13> can't assign resources
i4btrc: 4 ISDN trace device(s) attached
i4bisppp: 4 ISDN SyncPPP device(s) attached
i4b: ISDN call control device attached
i4btel: 2 ISDN telephony interface device(s) attached
i4brbch: 4 raw B channel access device(s) attached
i4bctl: ISDN system control port attached
IPsec: Initialized Security Association Processing.
ad0: 13783MB <IBM-DTTA-371440> [28005/16/63] at ata0-master using UDMA33
ad1: 6179MB <Maxtor 90648D5> [12555/16/63] at ata1-master using UDMA33
pccard: card inserted, slot 0
cd0 at ahc0 bus 0 target 3 lun 0
cd0: <TEAC CD-ROM CD-532S 3.0A> Removable CD-ROM SCSI-2 device 
cd0: 10.000MB/s transfers (10.000MHz, offset 15)
cd0: cd present [321562 x 2048 byte records]
Mounting root from ufs:/dev/ad0s1a
WARNING: / was not properly dismounted
da0 at ahc0 bus 0 target 0 lun 0
da0: <IBM DORS-32160 WA6A> Fixed Direct Access SCSI-2 device 
da0: 10.000MB/s transfers (10.000MHz, offset 15)
da0: 2063MB (4226725 512 byte sectors: 255H 63S/T 263C)
wi0: <WaveLAN/IEEE 802.11> at port 0x280-0x2bf irq 10 slot 0 on pccard0
wi0: Ethernet address: 00:60:1d:f1:15:bb



machine		i386
cpu		I386_CPU
cpu		I486_CPU
cpu		I586_CPU
cpu		I686_CPU
ident		GOLD
maxusers	32
makeoptions	DEBUG=-g
options 	INET
options		IPSEC
options		IPSEC_ESP
options 	FFS
options 	FFS_ROOT
options		SOFTUPDATES
options		DEVFS
options		NFS
options		MSDOSFS
options 	CD9660
options 	PROCFS
options 	COMPAT_43
options 	SCSI_DELAY=5000
options 	UCONSOLE
options 	USERCONFIG
options 	VISUAL_USERCONFIG
options 	KTRACE
options 	SYSVSHM
options 	SYSVMSG
options 	SYSVSEM
options 	P1003_1B
options 	_KPOSIX_PRIORITY_SCHEDULING
options		COMPAT_LINUX
options		DDB
options		RANDOMDEV
options		INCLUDE_CONFIG_FILE
device		isa
device		pci
device		fdc
device		ata
device		atadisk
device		ahc
device		scbus
device		da
device		cd
device		pass
device		atkbdc	1
device		atkbd
options		ATKBD_DFLT_KEYMAP
makeoptions	ATKBD_DFLT_KEYMAP="si.iso"
device		psm
device		vga
device		splash
options		SC_DFLT_FONT
makeoptions	SC_DFLT_FONT=iso02
device		sc	1
device		npx
device		apm
device		pcm
device		joy
device		pca
device		sio
device		miibus
device		xl
device		card
device		pcic
device		wi
device		loop
device		ether
device		tun
device		pty
device		bpf
device		vn
options		ELSA_QS1ISA
device		isic
device		"i4bq921"
device		"i4bq931"
device		"i4b"
device		"i4btrc"	4
device		"i4bctl"
device		"i4brbch"	4
device		"i4btel"	2
device		"i4bisppp"	4
device		sppp


>Description: 

I have "amd" running so that I don't need to manually mount my CD-ROM's and
floppies. I recently noticed that starting xmms and trying to use it's file
requester, moving to the top directory consistantly crashed my machine. I
tracked it down to xmms apparently trying to go to my floppy mount point,
which is handled by amd. amd tried to mount the floppy, but no disk was in
the drive, the result was a crash. I can reproduce the problem with a simple
mount (as describe in How-To-Repeat).

Here is the backtrace on a kernel with full debugging symbols. Kernel in
vmcore available upon request (I will keep them for another month).

#0  boot (howto=260) at ../../kern/kern_shutdown.c:303
#1  0xc018dbb1 in panic (fmt=0xc02e5d4f "page fault") at
../../kern/kern_shutdown.c:553
#2  0xc0292b46 in trap_fatal (frame=0xc02eff48, eva=48) at
../../i386/i386/trap.c:951
#3  0xc02927f9 in trap_pfault (frame=0xc02eff48, usermode=0, eva=48) at
../../i386/i386/trap.c:844
#4  0xc029236f in trap (frame={tf_fs = 16, tf_es = 16, tf_ds = 16, tf_edi =
0, tf_esi = 0,
      tf_ebp = -1070661748, tf_isp = -1070661772, tf_ebx = -1070407532,
tf_edx = 6864960,
      tf_ecx = -1064028147, tf_eax = 0, tf_trapno = 12, tf_err = 0, tf_eip =
-1071351100, tf_cs = 8,
      tf_eflags = 66050, tf_esp = -1043511488, tf_ss = -1070661724}) at
../../i386/i386/trap.c:443
#5  0xc0247ac4 in acquire_lock (lk=0xc032e094) at
../../ufs/ffs/ffs_softdep.c:263
#6  0xc024cdbc in softdep_count_dependencies (bp=0xc1cd4740, wantcount=0) at
../../ufs/ffs/ffs_softdep.c:4566
#7  0xc025010f in ffs_fsync (ap=0xc02f0020) at ../../sys/buf.h:439
#8  0xc024ec57 in ffs_sync (mp=0xc093c600, waitfor=2, cred=0xc059a980,
p=0xc036e8a0) at vnode_if.h:537
#9  0xc01befa1 in sync (p=0xc036e8a0, uap=0x0) at
../../kern/vfs_syscalls.c:566
#10 0xc018d5e7 in boot (howto=256) at ../../kern/kern_shutdown.c:225
#11 0xc018dbb1 in panic (fmt=0xc02e5d4f "page fault") at
../../kern/kern_shutdown.c:553
#12 0xc0292b46 in trap_fatal (frame=0xc02f012c, eva=32) at
../../i386/i386/trap.c:951
#13 0xc02927f9 in trap_pfault (frame=0xc02f012c, usermode=0, eva=32) at
../../i386/i386/trap.c:844
#14 0xc029236f in trap (frame={tf_fs = 16, tf_es = 16, tf_ds = 16, tf_edi =
-1043548800, tf_esi = 0,
      tf_ebp = -1070661252, tf_isp = -1070661288, tf_ebx = -1070661198, tf_edx = 2, tf_ecx = 0, tf_eax = 0,
      tf_trapno = 12, tf_err = 0, tf_eip = -1072056048, tf_cs = 8, tf_eflags = 66199, tf_esp = -1063396736,
      tf_ss = 0}) at ../../i386/i386/trap.c:443
#15 0xc019b910 in dsname (dev=0xc09dda80, unit=0, slice=0, part=2, partname=0xc02f01b2 "")
    at ../../kern/subr_diskslice.c:591
#16 0xc019ad0a in diskerr (bp=0xc1ccb580, what=0xc02eb564 "hard error", pri=-1, blkdone=0, lp=0x0)
    at ../../kern/subr_disklabel.c:377
#17 0xc02a5508 in retrier (fdc=0xc059b600) at ../../isa/fd.c:2240
#18 0xc02a5380 in fdstate (fdc=0xc059b600) at ../../isa/fd.c:2157
#19 0xc02a494e in fdc_intr (xfdc=0xc059b600) at ../../isa/fd.c:1671
#20 0xc02a490f in fd_iotimeout (xfdc=0xc059b600) at ../../isa/fd.c:1647
#21 0xc0193fe9 in softclock () at ../../kern/kern_timeout.c:131


>How-To-Repeat: 

Type "mount -t msdos /dev/fd0 /mnt" without a floppy disk in the drive

>Fix: 

unknown


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-bugs" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200008260918.e7Q9IWT00795>