Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 16 Jan 2000 16:47:35 +0100 (CET)
From:      Alexander Leidinger <Alexander@Leidinger.net>
To:        bright@wintelcom.net
Cc:        peter@netplex.com.au, current@FreeBSD.ORG
Subject:   Re: crash with ffs_softdep.c 1.52
Message-ID:  <200001161547.QAA00543@Magelan.Leidinger.net>
In-Reply-To: <20000115152625.T508@fw.wintelcom.net>

next in thread | previous in thread | raw e-mail | index | archive | help
--0-1804289383-948037658=:540
Content-Type: TEXT/plain; charset=us-ascii

On 15 Jan, Alfred Perlstein wrote:

>> >> > unfortunally no core dump, but I'm able to reproduce it (I just have to
>> >> > enable softupdates).
>> >> 
>> >> how?  It looks like splbio is not up but the softdep lock is held.
>> 
>>    ^^^^
>>    I just have to enable softupdates on /home, /var, /usr, /usr/obj to 
>> get a panic at "Additional daemons: syslogd" while booting.
>> If I disable softupdates at /var I'm able to log in (X11) and dial out
>> -> panic (because of fetchnews/fetchmail/whatever are accessing
>> something).

With only softupdates for /var I'm also able to reproduce the panic at
reboot.

>> > The best thing is to look at this global variable for lkt_held:
>> > static struct lockit {
>> >         int     lkt_spl;
>> >         pid_t   lkt_held;
>> > } lk;
>> > 
>> > and see which process held the lock.  Do a traceback on that process as well..

[HowTo DDB?]
> http://www.freebsd.org/handbook/kerneldebug.html

---snip---
db> x/ld,2 lk
lk: 0 161
db> ps
pid proc     addr     uid ppid pgrp flag   stat wmesg  wchan    cmd
161 d7cebg00 d86bd000 0   160  161  000004 3    getbuf c3361ccb syslogd
160 d7cec500 d86a5000 0     6    6  004086 3    wait   d7cec500 syslogd
[...]
   6                                            wait            sh
[...]
---snip---

How do I do a traceback on PID 161? "trace/u" outputs the same as
"trace" and I haven't found anything related except "trace/u" in ddb(4).

I'm still not able to get a core dump of this, perhaps a
misconfiguration?

fstab:
---snip---
/dev/da0s1b     none            swap    sw              0       0
---snip---

rc.conf:
---snip---
dumpdev="/dev/da0s1b"
---snip---

(104) netchild@ttyp2 > ll /dev/da0s1b
crw-r-----  1 root  operator   13, 0x00020001  1 Dez 12:41 /dev/da0s1b

Kernel config and output of dmesg attached.

Bye,
Alexander.

-- 
                Where do you think you're going today?

http://www.Leidinger.net                  Alexander+Home @ Leidinger.net
  Key fingerprint = 7423 F3E6 3A7E B334 A9CC  B10A 1F5F 130A A638 6E7E

--0-1804289383-948037658=:540
Content-Type: TEXT/plain; CHARSET=US-ASCII
Content-Disposition: attachment; filename=WORK

machine		i386
ident		WORK
maxusers	40

makeoptions	DEBUG=-g
makeoptions	CONF_CFLAGS=-fno-builtin

#
# Allow user-mode programs to manipulate their local descriptor tables.
# This option is required for the WINE Windows(tm) emulator, and is
# not used by anything else (that we know of).
# 
#options	USER_LDT                #allow user-level control of i386 ldt

# Options for the VM subsystem
#options	PQ_NOOPT		# No coloring
options		PQ_LARGECACHE		# color for 512k/16k cache
#options	PQ_HUGECACHE		# color for 1024k/16k cache

cpu		I686_CPU		# aka Pentium Pro(tm)
options		CPU_FASTER_5X86_FPU
options		CPU_SUSP_HLT
options		"NO_F00F_HACK"

options		COMPAT_43

options		SYSVSHM
options		SYSVSEM
options		SYSVMSG
options		MD5
options		DDB
options		GDB_REMOTE_CHAT
options		KTRACE			#kernel tracing
#options		PERFMON
options		UCONSOLE
options		USERCONFIG		#boot -c editor
options		VISUAL_USERCONFIG	#visual boot -c editor
options		INET			#Internet communications protocols
pseudo-device	ether			#Generic Ethernet
pseudo-device	sppp			#Generic Synchronous PPP
pseudo-device	loop			#Network loopback device
pseudo-device	bpf			#Berkeley packet filter
#pseudo-device	disc			#Discard device
pseudo-device	streams
options PPP_BSDCOMP			#PPP BSD-compress support
options PPP_DEFLATE			#PPP zlib/deflate/gzip support
options PPP_FILTER			#enable bpf filtering (needs bpfilter)

options		MROUTING		# Multicast routing
options         IPFIREWALL              #firewall
options         IPFIREWALL_VERBOSE      #print information about
					# dropped packets
options         IPFIREWALL_FORWARD      #enable transparent proxy support
options		IPFIREWALL_VERBOSE_LIMIT=100 #limit verbosity
#options		IPDIVERT		#divert sockets
#options		IPSTEALTH		#support for stealth forwarding
options         TCP_RESTRICT_RST        #restrict emission of TCP RST
options         ICMP_BANDLIM
options		FFS			#Fast filesystem
options		CD9660			#ISO 9660 filesystem
options		KERNFS			#Kernel filesystem
options         MSDOSFS                 #MS DOS File System
options         PROCFS                  #Process filesystem
options         MFS                     #Memory File System
#options         NFS                     #Network File System
#options		NFS_NOSERVER		#Disable the NFS-server code.
options		FFS_ROOT		#FFS usable as root device
options		SOFTUPDATES
options		P1003_1B
options		_KPOSIX_PRIORITY_SCHEDULING
options		_KPOSIX_VERSION=199309L

device	scbus0	#base SCSI code
#device		ch0	#SCSI media changers
device		da0	#SCSI direct access devices (aka disks)
#device		sa0	#SCSI tapes
device		cd0	#SCSI CD-ROMs
device		pass0	#CAM passthrough driver
device pt0 at scbus?	# SCSI processor type
options		CAM_MAX_HIGHPOWER=4
options		SCSI_DELAY=5000# Be pessimistic about Joe SCSI device

pseudo-device	pty		#Pseudo ttys
pseudo-device	speaker		#Play IBM BASIC-style noises out your speaker
pseudo-device	gzip		#Exec gzipped a.out's
pseudo-device	vn		#Vnode driver (turns a file into a device)
#pseudo-device	snp	3	#Snoop device - to look at pty/vty/etc..

options		MSGBUF_SIZE=40960

device	isa0

# Enable support for the kernel PLL to use an external PPS signal,
# under supervision of [x]ntpd(8)
# More info in ntpd documentation: http://www.eecis.udel.edu/~ntp

#options		PPS_SYNC

options		PNPBIOS

device	atkbdc0	at isa? port IO_KBD
device		atkbd0	at atkbdc? irq 1
options		ATKBD_DFLT_KEYMAP	# specify the built-in keymap
makeoptions	ATKBD_DFLT_KEYMAP="german.iso"
#options		KBD_DISABLE_KEYMAP_LOAD	# refuse to load a keymap
options		KBD_INSTALL_CDEV	# install a CDEV entry in /dev
device		psm0	at atkbdc? irq 12
device		vga0	at isa? port ? conflicts
options		VESA
pseudo-device	splash
device		sc0	at isa? flags 0x06
options		MAXCONS=16		# number of virtual consoles
options		SC_DFLT_FONT		# compile font in
makeoptions	SC_DFLT_FONT="iso"
options		SC_HISTORY_SIZE=800	# number of history buffer lines
#options		SC_DISABLE_REBOOT	# disable reboot key sequence

device		npx0	at nexus? port IO_NPX flags 0x0 irq 13

device	ata0
device		atadisk0	# ATA disk drives
#device		atapicd0	# ATAPI CDROM drives
device		atapifd0	# ATAPI floppy drives
#device		atapist0	# ATAPI tape drives

#device	wdc0	at isa? port IO_WD1 irq 14
#device		wd0	at wdc0 drive 0
#device		wd1	at wdc0 drive 1
#options		IDE_DELAY=2000	# Be optimistic about Joe IDE device
#device          wfd0

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

device		sio0	at isa? port IO_COM1 flags 0x20010 irq 4
device		sio1	at isa? port 0x2e8 irq 10 flags 0x20000

device ed0 

device pcm0
device sbc0

device          joy0

device pca0 at isa? port IO_TIMER1

device		apm0	at nexus? 

#ACPI Experimental Driver
#device acpi0

device	pci0
device	ahc0
options AHC_ALLOW_MEMIO

device smbus0
device intpm0
device smb0	at smbus?

device iicbus0
device iicbb0

device ic0	at iicbus?
device iic0	at iicbus?
device iicsmb0	at iicbus?

options AVM_A1
device	isic0 at isa? port 0x300 irq 3 flags 4
pseudo-device	"i4bq921"
pseudo-device	"i4bq931"
pseudo-device	"i4b"
pseudo-device   "i4btrc"	2
pseudo-device   "i4bctl"
pseudo-device   "i4brbch"       2
pseudo-device   "i4btel"        1
pseudo-device   "i4bipr"	2
options		IPR_VJ
pseudo-device	"i4bisppp"	2

options		PERIPH_1284	# Makes your computer act as a IEEE1284
				# compliant peripheral
device	ppbus0
device		lpt0	at ppbus?
#device		plip0	at ppbus?
device		ppi0	at ppbus?
#device		pps0	at ppbus?
device		lpbb0	at ppbus?

device		ppc0	at isa? port? irq 7

#options		CLK_CALIBRATION_LOOP
options		CLK_USE_I8254_CALIBRATION
options		CLK_USE_TSC_CALIBRATION

device    uhci0
device    ohci0
device    usb0
device        ums0
device        ukbd0
device        ulpt0
device        uhid0
device        ugen0

--0-1804289383-948037658=:540
Content-Type: TEXT/plain; CHARSET=US-ASCII
Content-Disposition: attachment; filename="dmesg.txt"

Copyright (c) 1992-2000 The FreeBSD Project.
Copyright (c) 1982, 1986, 1989, 1991, 1993
	The Regents of the University of California. All rights reserved.
FreeBSD 4.0-CURRENT #33: Thu Jan 13 16:29:27 CET 2000
    root@Magelan.Leidinger.net:/usr/src/sys/compile/WORK
Timecounter "i8254"  frequency 1193273 Hz
CPU: Pentium II/Celeron (400.94-MHz 686-class CPU)
  Origin = "GenuineIntel"  Id = 0x665  Stepping = 5
  Features=0x183f9ff<FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,MMX,FXSR>
real memory  = 134205440 (131060K bytes)
avail memory = 126513152 (123548K bytes)
Preloaded elf kernel "kernel" at 0xc035d000.
VESA: v3.0, 16384k memory, flags:0x1, mode table:0xc02fc9f7 (1000117)
VESA: 3dfx Interactive, Inc.
Pentium Pro MTRR support enabled
npx0: <math processor> on motherboard
npx0: INT 16 interface
apm0: <APM BIOS> on motherboard
apm: found APM BIOS v1.2, connected at v1.2
pcib0: <Intel 82443LX (440 LX) host to PCI bridge> on motherboard
pci0: <PCI bus> on pcib0
pcib1: <Intel 82443LX (440 LX) PCI-PCI (AGP) bridge> at device 1.0 on pci0
pci1: <PCI bus> on pcib1
vga-pci0: <3Dfx Voodoo 3 graphics accelerator> port 0xd800-0xd8ff mem 0xde000000-0xdfffffff,0xda000000-0xdbffffff irq 11 at device 0.0 on pci1
isab0: <Intel 82371AB PCI to ISA bridge> at device 4.0 on pci0
isa0: <ISA bus> on isab0
ata-pci0: <Intel PIIX4 ATA-33 controller> port 0xb800-0xb80f at device 4.1 on pci0
ata-pci0: Busmastering DMA supported
ata0 at 0x01f0 irq 14 on ata-pci0
uhci0: <Intel 82371AB/EB (PIIX4) USB controller> port 0xb400-0xb41f irq 9 at device 4.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
intpm0: <Intel 82371AB Power management controller> port 0xe800-0xe80f irq 9 at device 4.3 on pci0
intpm0: I/O mapped e800
intpm0: intr IRQ 9 enabled revision 0
smbus0: <System Management Bus> on intsmb0
smb0: <SMBus general purpose I/O> on smbus0
intpm0: PM I/O mapped e400 
ahc0: <Adaptec aic7880 Ultra SCSI adapter> port 0xb000-0xb0ff mem 0xd9800000-0xd9800fff irq 9 at device 6.0 on pci0
ahc0: aic7880 Wide Channel A, SCSI Id=7, 16/255 SCBs
ed0: <NE2000 PCI Ethernet (RealTek 8029)> port 0xa800-0xa81f irq 15 at device 10.0 on pci0
ed0: address 00:80:ad:40:bd:e7, type NE2000 (16 bit) 
atkbdc0: <keyboard controller (i8042)> at port 0x60-0x6f on isa0
atkbd0: <AT Keyboard> irq 1 on atkbdc0
kbd0 at atkbd0
psm0: <PS/2 Mouse> irq 12 on atkbdc0
psm0: model Generic PS/2 mouse, device ID 0
vga0: <Generic ISA VGA> at port 0x3c0-0x3df iomem 0xa0000-0xbffff on isa0
sc0: <System console> at flags 0x6 on isa0
sc0: VGA <16 virtual consoles, flags=0x206>
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
sio0 at port 0x3f8-0x3ff irq 4 flags 0x20010 on isa0
sio0: type ST16650A
sio1 at port 0x2e8-0x2ef irq 10 flags 0x20000 on isa0
sio1: type ST16650A
pca0 at port 0x40 on isa0
pca0: PC speaker audio driver
isic0 at port 0x1b00-0x1b1f,0x16e0-0x16ff,0x6e0-0x6ff,0xee0-0xeff,0x1300-0x131f,0x300-0x31f,0xb00-0xb1f irq 3 flags 0x4 on isa0
isic0: AVM A1 or Fritz!Card Classic
ppc0 at port 0x378-0x37f irq 7 on isa0
ppc0: SMC-like chipset (ECP/EPP/PS2/NIBBLE) in COMPATIBLE mode
ppc0: FIFO with 16/16/9 bytes threshold
lpt0: <generic printer> on ppbus 0
lpt0: Interrupt-driven port
ppi0: <generic parallel i/o> on ppbus 0
unknown: <PNP0401> can't assign resources
unknown: <PNP0501> can't assign resources
unknown: <PNP0501> can't assign resources
unknown: <PNP0700> can't assign resources
unknown: <PNP0f13> can't assign resources
unknown0: <PNP0c01> at iomem 0-0x9ffff,0x100000-0x7ffffff,0xe8000-0xeffff,0xf0000-0xf3fff,0xf4000-0xf7fff,0xf8000-0xfffff,0xcd000-0xcffff,0xfffe0000-0xffffffff on isa0
unknown: <PNP0000> can't assign resources
unknown1: <PNP0100> at port 0x41-0x44 irq 0 on isa0
unknown2: <PNP0b00> at port 0x70-0x71 irq 8 on isa0
unknown: <PNP0303> can't assign resources
unknown3: <PNP0c04> at port 0xf0 irq 13 on isa0
unknown4: <PNP0200> at port 0-0xf,0x80-0x90,0x94-0x9f,0xc0-0xde drq 4 on isa0
unknown: <PNP0800> can't assign resources
unknown5: <PNP0a03> at port 0xcf8-0xcff on isa0
unknown: <PNP0c02> can't assign resources
sbc0: <Creative ViBRA16C> at port 0x220-0x22f,0x330-0x331,0x388-0x38b irq 5 drq 1,5 on isa0
sbc0: setting card to irq 5, drq 1, 5
pcm0: <SB DSP 4.13> on sbc0
joy0: <Generic PnP Joystick> at port 0x200-0x207 on isa0
IP packet filtering initialized, divert disabled, rule-based forwarding enabled, logging limited to 100 packets/entry by default
i4b: ISDN call control device attached
i4bisppp: 2 ISDN SyncPPP device(s) attached
i4bctl: ISDN system control port attached
i4bipr: 2 IP over raw HDLC ISDN device(s) attached (VJ header compression)
i4btel: 1 ISDN telephony interface device(s) attached
i4brbch: 2 raw B channel access device(s) attached
i4btrc: 2 ISDN trace device(s) attached
ad0: <Conner Peripherals 420MB - CFS420A/6BT9.2Ap> ATA-0 disk at ata0 as master
ad0: 406MB (832608 sectors), 826 cyls, 16 heads, 63 S/T, 512 B/S
ad0: 16 secs/int, 1 depth queue, PIO3
afd0: <IOMEGA ZIP 100 ATAPI/23.D> rewriteable drive at ata0 as slave 
afd0: 96MB (196608 sectors), 32 cyls, 64 heads, 96 S/T, 512 B/S
afd0: 4096KB/s, transfer limit 64 blks, PIO0
afd0: Medium: Unknown media (0x0)
Waiting 5 seconds for SCSI devices to settle
Mounting root from ufs:/dev/da0s1a
da0 at ahc0 bus 0 target 0 lun 0
da0: <MICROP 4743NS S168> Fixed Direct Access SCSI-2 device 
da0: 20.000MB/s transfers (20.000MHz, offset 15), Tagged Queueing Enabled
da0: 4100MB (8398656 512 byte sectors: 255H 63S/T 522C)
cd0 at ahc0 bus 0 target 1 lun 0
cd0: <TEAC CD-R55S 1.0Q> Removable CD-ROM SCSI-2 device 
cd0: 10.000MB/s transfers (10.000MHz, offset 15)
cd0: Attempt to query device size failed: NOT READY, Medium not present
cd1 at ahc0 bus 0 target 2 lun 0
cd1: <PIONEER CD-ROM DR-U16S 1.01> Removable CD-ROM SCSI-2 device 
cd1: 20.000MB/s transfers (20.000MHz, offset 15)
cd1: Attempt to query device size failed: NOT READY, Medium not present
WARNING: / was not properly dismounted
ed0: device timeout

--0-1804289383-948037658=:540--


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




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