From owner-freebsd-stable@FreeBSD.ORG Sun Dec 19 05:23:12 2004 Return-Path: Delivered-To: freebsd-stable@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id A570416A4CE for ; Sun, 19 Dec 2004 05:23:12 +0000 (GMT) Received: from mail.farley.org (farley.org [67.64.95.201]) by mx1.FreeBSD.org (Postfix) with ESMTP id 2F90943D1F for ; Sun, 19 Dec 2004 05:23:12 +0000 (GMT) (envelope-from sean-freebsd@farley.org) Received: from thor.farley.org (thor.farley.org [IPv6:2001:470:1f01:290:1::5]) by mail.farley.org (8.13.1/8.13.1) with ESMTP id iBJ5NA72046121 for ; Sat, 18 Dec 2004 23:23:10 -0600 (CST) (envelope-from sean-freebsd@farley.org) Received: from thor.farley.org (localhost [127.0.0.1]) by thor.farley.org (8.13.1/8.13.1) with ESMTP id iBJ5NFEV004468 for ; Sat, 18 Dec 2004 23:23:15 -0600 (CST) (envelope-from sean-freebsd@farley.org) Received: from localhost (sean@localhost)iBJ5NFkj004465 for ; Sat, 18 Dec 2004 23:23:15 -0600 (CST) (envelope-from sean-freebsd@farley.org) X-Authentication-Warning: thor.farley.org: sean owned process doing -bs Date: Sat, 18 Dec 2004 23:23:15 -0600 (CST) From: Sean Farley X-X-Sender: sean@thor.farley.org To: freebsd-stable@freebsd.org Message-ID: <20041218230706.W4318@thor.farley.org> MIME-Version: 1.0 Content-Type: MULTIPART/MIXED; BOUNDARY="0-165016352-1103433795=:4318" Subject: initiate_write_inodeblock_ufs2() panic in 5-STABLE X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 19 Dec 2004 05:23:12 -0000 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=3D4 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 , 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' #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 real memory =3D 134217728 (128 MB) avail memory =3D 125870080 (120 MB) npx0: [FAST] npx0: on motherboard npx0: INT 16 interface acpi0: 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: on acpi0 pcib0: port 0xcf8-0xcff on acpi0 pci0: on pcib0 agp0: mem 0xf8000000-0xfbffffff= at device 0.0 on pci0 pcib1: at device 1.0 on pci0 pci1: on pcib1 pci1: at device 0.0 (no driver attached) isab0: at device 7.0 on pci0 isa0: on isab0 atapci0: 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: at device 7.2 (no driver attached) pci0: at device 7.3 (no driver attached) sis0: port 0x1000-0x10ff mem 0xf4020000-0= xf4020fff irq 11 at device 13.0 on pci0 sis0: Silicon Revision: DP83815C miibus0: on sis0 ukphy0: on miibus0 ukphy0: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto sis0: Ethernet address: 00:a0:cc:7b:aa:8c pci0: at device 14.0 (no driver attached) pci0: at device 16.0 (no driver attached) atkbdc0: port 0x64,0x60 irq 1 on acpi0 atkbd0: irq 1 on atkbdc0 kbd0 at atkbd0 atkbd0: [GIANT-LOCKED] fdc0: 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: at iomem 0xe4000-0xeffff,0xdc000-0xdffff,0xc0000-0x= c7fff on isa0 pmtimer0 on isa0 ppc0: parallel port not found. sc0: 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: at port 0x3c0-0x3df iomem 0xa0000-0xbffff on isa0 sio4: 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 [28005/16/63] at ata0-master UDMA33 ata1-slave: FAILURE - SETFEATURES SET TRANSFER MODE status=3D1 error= =3D4 acd0: DVDROM at ata1-master PIO4 afd0: REMOVABLE 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--