Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 18 Dec 2004 23:23:15 -0600 (CST)
From:      Sean Farley <sean-freebsd@farley.org>
To:        freebsd-stable@freebsd.org
Subject:   initiate_write_inodeblock_ufs2() panic in 5-STABLE
Message-ID:  <20041218230706.W4318@thor.farley.org>

next in thread | raw e-mail | index | archive | help
  This message is in MIME format.  The first part should be readable text,
  while the remaining parts are likely unreadable without MIME-aware tools.

--0-165016352-1103433795=:4318
Content-Type: TEXT/PLAIN; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: QUOTED-PRINTABLE

Here is a panic on a 5-STABLE system.

I was testing out a system (Dell PII 400MHz) my father retired.  I
thought heard some activity on the drive, so I ssh'd over to it then
exited right away (time to leave for a movie :)).  It panicked shortly
afterward.

Although it is on a different bus and probably not the cause:
Dec 18 08:58:54 celt kernel: ata1-slave: FAILURE - SETFEATURES SET
     TRANSFER MODE status=3D1<ERROR> error=3D4<ABORTED>

Just before panic:
Dec 18 08:56:03 celt kernel: ad0: TIMEOUT - WRITE_DMA retrying (2
     retries left) LBA=3D5336671
Dec 18 08:56:10 celt kernel: ad0: FAILURE - WRITE_DMA timed out

Panic recovery:
Dec 18 08:58:54 celt savecore: reboot after panic:
     initiate_write_inodeblock_ufs2: already started

Stack trace:
GNU gdb 6.1.1 [FreeBSD]
Copyright 2004 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you ar=
e
welcome to change it and/or distribute copies of it under certain condition=
s.
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-marcel-freebsd".
doadump () at pcpu.h:159
(kgdb) where
#0  doadump () at pcpu.h:159
#1  0xc04ad01d in boot (howto=3D260) at /usr/src/sys/kern/kern_shutdown.c:3=
97
#2  0xc04ad2d9 in panic (fmt=3D0xc0640aca "initiate_write_inodeblock_ufs2: =
already started")
     at /usr/src/sys/kern/kern_shutdown.c:553
#3  0xc05b19b2 in initiate_write_inodeblock_ufs2 (inodedep=3D0xc101d500, bp=
=3D0x0)
     at /usr/src/sys/ufs/ffs/ffs_softdep.c:3772
#4  0xc05b1343 in softdep_disk_io_initiation (bp=3D0xc378b7f0) at /usr/src/=
sys/ufs/ffs/ffs_softdep.c:3500
#5  0xc05b1270 in softdep_disk_prewrite (vp=3D0xc1059528, bp=3D0xc378b7f0) =
at buf.h:417
#6  0xc04ee7d4 in ibwrite (bp=3D0xc378b7f0) at buf.h:408
#7  0xc04ee38c in bwrite (bp=3D0x0) at /usr/src/sys/kern/vfs_bio.c:771
#8  0xc04f0608 in vfs_bio_awrite (bp=3D0xc378b7f0) at /usr/src/sys/kern/vfs=
_bio.c:1721
#9  0xc04f806d in vop_stdfsync (ap=3D0xc7f0dce4) at /usr/src/sys/kern/vfs_d=
efault.c:574
#10 0xc04761e3 in spec_fsync (ap=3D0xc7f0dce4) at /usr/src/sys/fs/specfs/sp=
ec_vnops.c:437
#11 0xc047580f in spec_vnoperate (ap=3D0x0) at /usr/src/sys/fs/specfs/spec_=
vnops.c:118
#12 0xc04ff345 in sched_sync () at vnode_if.h:627
#13 0xc04983b9 in fork_exit (callout=3D0xc04fef84 <sched_sync>, arg=3D0x0, =
frame=3D0xc7f0dd48)
     at /usr/src/sys/kern/kern_fork.c:811
#14 0xc060084c in fork_trampoline () at /usr/src/sys/i386/i386/exception.s:=
209
(kgdb) where full
#0  doadump () at pcpu.h:159
No locals.
#1  0xc04ad01d in boot (howto=3D260) at /usr/src/sys/kern/kern_shutdown.c:3=
97
 =09first_buf_printf =3D 1
#2  0xc04ad2d9 in panic (fmt=3D0xc0640aca "initiate_write_inodeblock_ufs2: =
already started")
     at /usr/src/sys/kern/kern_shutdown.c:553
 =09td =3D (struct thread *) 0xc0f53c80
 =09bootopt =3D 260
 =09newpanic =3D 0
 =09ap =3D 0xc0f53c80 "=C4!=F5=C0p@=F5=C0"
 =09buf =3D "initiate_write_inodeblock_ufs2: already started", '\0' <repeat=
s 208 times>
#3  0xc05b19b2 in initiate_write_inodeblock_ufs2 (inodedep=3D0xc101d500, bp=
=3D0x0)
     at /usr/src/sys/ufs/ffs/ffs_softdep.c:3772
 =09adp =3D (struct allocdirect *) 0xc378b7f0
 =09lastadp =3D (struct allocdirect *) 0x0
 =09dp =3D (struct ufs2_dinode *) 0x72dc7000
 =09fs =3D (struct fs *) 0x1000
 =09i =3D (kgdb) quit

/var/run/dmesg.boot:
Copyright (c) 1992-2004 The FreeBSD Project.
Copyright (c) 1979, 1980, 1983, 1986, 1988, 1989, 1991, 1992, 1993, 1994
 =09The Regents of the University of California. All rights reserved.
FreeBSD 5.3-STABLE #1: Sun Nov 14 16:52:31 CST 2004
     root@celt.farley.org:/usr/obj/usr/src/sys/CELT
Timecounter "i8254" frequency 1193182 Hz quality 0
CPU: Pentium II/Pentium II Xeon/Celeron (398.27-MHz 686-class CPU)
   Origin =3D "GenuineIntel"  Id =3D 0x651  Stepping =3D 1
   Features=3D0x183f9ff<FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,SEP,MTRR,PGE,MCA=
,CMOV,PAT,PSE36,MMX,FXSR>
real memory  =3D 134217728 (128 MB)
avail memory =3D 125870080 (120 MB)
npx0: [FAST]
npx0: <math processor> on motherboard
npx0: INT 16 interface
acpi0: <PTLTD   RSDT> on motherboard
acpi0: Power Button (fixed)
Timecounter "ACPI-safe" frequency 3579545 Hz quality 1000
acpi_timer0: <24-bit timer at 3.579545MHz> port 0x8008-0x800b on acpi0
cpu0: <ACPI CPU (3 Cx states)> on acpi0
pcib0: <ACPI Host-PCI bridge> port 0xcf8-0xcff on acpi0
pci0: <ACPI PCI bus> on pcib0
agp0: <Intel 82443BX (440 BX) host to PCI bridge> mem 0xf8000000-0xfbffffff=
 at device 0.0 on pci0
pcib1: <PCI-PCI bridge> at device 1.0 on pci0
pci1: <PCI bus> on pcib1
pci1: <display, VGA> at device 0.0 (no driver attached)
isab0: <PCI-ISA bridge> at device 7.0 on pci0
isa0: <ISA bus> on isab0
atapci0: <Intel PIIX4 UDMA33 controller> port 0x1420-0x142f,0x376,0x170-0x1=
77,0x3f6,0x1f0-0x1f7 at device 7.1 on pci0
ata0: channel #0 on atapci0
ata1: channel #1 on atapci0
pci0: <serial bus, USB> at device 7.2 (no driver attached)
pci0: <bridge, PCI-unknown> at device 7.3 (no driver attached)
sis0: <NatSemi DP8381[56] 10/100BaseTX> port 0x1000-0x10ff mem 0xf4020000-0=
xf4020fff irq 11 at device 13.0 on pci0
sis0: Silicon Revision: DP83815C
miibus0: <MII bus> on sis0
ukphy0: <Generic IEEE 802.3u media interface> on miibus0
ukphy0:  10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto
sis0: Ethernet address: 00:a0:cc:7b:aa:8c
pci0: <multimedia, video> at device 14.0 (no driver attached)
pci0: <multimedia, audio> at device 16.0 (no driver attached)
atkbdc0: <Keyboard controller (i8042)> port 0x64,0x60 irq 1 on acpi0
atkbd0: <AT Keyboard> irq 1 on atkbdc0
kbd0 at atkbd0
atkbd0: [GIANT-LOCKED]
fdc0: <floppy drive controller> port 0x3f7,0x3f0-0x3f5 irq 6 drq 2 on acpi0
fdc0: [FAST]
fd0: <1440-KB 3.5" drive> on fdc0 drive 0
sio0: configured irq 0 not in bitmap of probed irqs 0
sio0: port may not be enabled
sio0: configured irq 0 not in bitmap of probed irqs 0
sio0: port may not be enabled
orm0: <ISA Option ROMs> at iomem 0xe4000-0xeffff,0xdc000-0xdffff,0xc0000-0x=
c7fff on isa0
pmtimer0 on isa0
ppc0: parallel port not found.
sc0: <System console> at flags 0x100 on isa0
sc0: VGA <16 virtual consoles, flags=3D0x300>
sio0: configured irq 4 not in bitmap of probed irqs 0
sio0: port may not be enabled
sio0 at port 0x3f8-0x3ff irq 4 flags 0x10 on isa0
sio0: type 8250 or not responding
sio1: configured irq 3 not in bitmap of probed irqs 0
sio1: port may not be enabled
vga0: <Generic ISA VGA> at port 0x3c0-0x3df iomem 0xa0000-0xbffff on isa0
sio4: <U.S.Robotics Inc. Sportster 56000 Voice Internal> at port 0x2f8-0x2f=
f irq 3 on isa0
sio4: type 16550A
Timecounter "TSC" frequency 398270269 Hz quality 800
Timecounters tick every 10.000 msec
ad0: 13783MB <IBM-DTTA-371440/T71OA70B> [28005/16/63] at ata0-master UDMA33
ata1-slave: FAILURE - SETFEATURES SET TRANSFER MODE status=3D1<ERROR> error=
=3D4<ABORTED>
acd0: DVDROM <HITACHI GD-2000/0056> at ata1-master PIO4
afd0: REMOVABLE <IOMEGA ZIP 100 ATAPI/23.D> at ata1-slave BIOSPIO
Mounting root from ufs:/dev/ad0s1a
WARNING: / was not properly dismounted
WARNING: /tmp was not properly dismounted
WARNING: /usr was not properly dismounted
WARNING: /var was not properly dismounted
/var: mount pending error: blocks 4 files 1
sis0: Applying short cable fix (reg=3Df0)

Questions:
1. gdb -k is still in the man page.  Is the feature pulled from gdb or
    should the man page have it removed?
2. Why can I not get a full backtrace (bt full)?  Only the first three
    frames can be displayed that way.  I can see all of the frames
    without the "full" option.

Any ideas?

Sean
--=20
sean-freebsd@farley.org
--0-165016352-1103433795=:4318--



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