panic: initiate_write_inodeblock_ufs2: already started

2003-12-03 Thread Robert Watson

Ran into this on a box with -CURRENT from yesterday, running with MAC
(although in this case I suspect it doesn't make a difference, I'm not
using the multilabel/extattr code in UFS2).  I have a core on disk, so
please let me know what further information would be useful.  This machine
spends a lot of time in bgfsck these days due to a bug causing X Windows
to occasionally hang when starting (interestingly, it seems to start much
better when bgfsck is running, suggesting a race that's avoided by slowing
the system down...) 

Robert N M Watson FreeBSD Core Team, TrustedBSD Projects
[EMAIL PROTECTED]  Senior Research Scientist, McAfee Research

Script started on Wed Dec  3 08:04:46 2003
GNU gdb 5.2.1 (FreeBSD)
Copyright 2002 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you are
welcome to change it and/or distribute copies of it under certain conditions.
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-undermydesk-freebsd...
panic: initiate_write_inodeblock_ufs2: already started
panic messages:
---
panic: initiate_write_inodeblock_ufs2: already started
cpuid = 0; 

syncing disks, buffers remaining... 3834 3834 3829 3829 3829 3829 3829 3829 3829 3829 
3829 3829 3829 3829 3829 3829 3829 3829 3829 3829 3829 3829 
giving up on 2705 buffers
Uptime: 9h20m19s
Dumping 511 MB
[CTRL-C to abort]  16 32 48 64 80 96 112 128 144 160 176 192 208 224 240 256 272 288 
304 320 336 352 368 384 400 416 432 448 464 480 496
---
Reading symbols from /boot/kernel/snd_maestro3.ko...done.
Loaded symbols for /boot/kernel/snd_maestro3.ko
Reading symbols from /boot/kernel/snd_pcm.ko...done.
Loaded symbols for /boot/kernel/snd_pcm.ko
Reading symbols from 
/usr/obj/usr/src/sys/PAPRIKAMAC/modules/usr/src/sys/modules/mac_biba/mac_biba.ko.debug...done.
Loaded symbols for 
/usr/obj/usr/src/sys/PAPRIKAMAC/modules/usr/src/sys/modules/mac_biba/mac_biba.ko.debug
Reading symbols from 
/usr/obj/usr/src/sys/PAPRIKAMAC/modules/usr/src/sys/modules/mac_mls/mac_mls.ko.debug...done.
Loaded symbols for 
/usr/obj/usr/src/sys/PAPRIKAMAC/modules/usr/src/sys/modules/mac_mls/mac_mls.ko.debug
Reading symbols from /boot/kernel/r128.ko...done.
Loaded symbols for /boot/kernel/r128.ko
Reading symbols from 
/usr/obj/usr/src/sys/PAPRIKAMAC/modules/usr/src/sys/modules/linprocfs/linprocfs.ko.debug...done.
Loaded symbols for 
/usr/obj/usr/src/sys/PAPRIKAMAC/modules/usr/src/sys/modules/linprocfs/linprocfs.ko.debug
Reading symbols from 
/usr/obj/usr/src/sys/PAPRIKAMAC/modules/usr/src/sys/modules/linux/linux.ko.debug...done.
Loaded symbols for 
/usr/obj/usr/src/sys/PAPRIKAMAC/modules/usr/src/sys/modules/linux/linux.ko.debug
#0  doadump () at /usr/src/sys/kern/kern_shutdown.c:240
240 dumping++;
(kgdb) bt
#0  doadump () at /usr/src/sys/kern/kern_shutdown.c:240
#1  0xc0671987 in boot (howto=256) at /usr/src/sys/kern/kern_shutdown.c:372
#2  0xc0671d8d in panic () at /usr/src/sys/kern/kern_shutdown.c:550
#3  0xc07cf179 in initiate_write_inodeblock_ufs2 (inodedep=0xc58c2880, bp=0x0)
at /usr/src/sys/ufs/ffs/ffs_softdep.c:3902
#4  0xc07ce30d in softdep_disk_io_initiation (bp=0xcec33148)
at /usr/src/sys/ufs/ffs/ffs_softdep.c:3468
#5  0xc0635547 in spec_xstrategy (vp=0xc49c4514, bp=0xcec33148)
at /usr/src/sys/sys/buf.h:413
#6  0xc06356e2 in spec_specstrategy (ap=0xd7830bf0)
at /usr/src/sys/fs/specfs/spec_vnops.c:534
#7  0xc0634828 in spec_vnoperate (ap=0x0)
at /usr/src/sys/fs/specfs/spec_vnops.c:122
#8  0xc06b8324 in bwrite (bp=0xd7830bf0) at vnode_if.h:1141
#9  0xc06ba152 in vfs_bio_awrite (bp=0xcec33148)
at /usr/src/sys/kern/vfs_bio.c:1715
#10 0xc06c2307 in vop_stdfsync (ap=0xd7830cd4)
at /usr/src/sys/kern/vfs_default.c:738
#11 0xc06353e0 in spec_fsync (ap=0xd7830cd4)
at /usr/src/sys/fs/specfs/spec_vnops.c:422
#12 0xc0634828 in spec_vnoperate (ap=0x0)
at /usr/src/sys/fs/specfs/spec_vnops.c:122
#13 0xc06ca516 in sched_sync () at vnode_if.h:627
#14 0xc065b2f4 in fork_exit (callout=0xc06ca290 sched_sync, arg=0x0, 
---Type return to continue, or q return to quit---
frame=0x0) at /usr/src/sys/kern/kern_fork.c:793
(kgdb) up
#1  0xc0671987 in boot (howto=256) at /usr/src/sys/kern/kern_shutdown.c:372
372 doadump();
(kgdb) up
#2  0xc0671d8d in panic () at /usr/src/sys/kern/kern_shutdown.c:550
550 boot(bootopt);
(kgdb) up
#3  0xc07cf179 in initiate_write_inodeblock_ufs2 (inodedep=0xc58c2880, bp=0x0)
at /usr/src/sys/ufs/ffs/ffs_softdep.c:3902
3902panic(softdep_write_inodeblock: lost dep3);
(kgdb) list
3897for (i = 0; i  NIADDR; i++) {
3898#ifdef DIAGNOSTIC
3899if (dp-di_ib[i] != 0 
3900(deplist  ((1  NDADDR)  i)) == 0) {
3901FREE_LOCK(lk);
3902panic

Re: panic: initiate_write_inodeblock_ufs2: already started

2003-12-03 Thread Kirk McKusick
This error happens if things are not properly locked. As per my
previous message, I am not able to look at it now, but am hoping
that resolving some of the other races will solve this as well.

Kirk McKusick
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-current
To unsubscribe, send any mail to [EMAIL PROTECTED]


panic: initiate_write_inodeblock_ufs2: already started

2003-06-03 Thread Markus Niemistö
Hi

My laptop paniced while it was (mostly) idle, running X server and X
chat. I wasn't about when the panic happened so I don't know very much
about it. I'll try to reproduce this panic. Any way here is a kgdb log
from debug session and few most interesting lines from dmesg and uname:

GNU gdb 5.2.1 (FreeBSD)
Copyright 2002 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you
are welcome to change it and/or distribute copies of it under certain
conditions. 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-undermydesk-freebsd...
panic: initiate_write_inodeblock_ufs2: already started
panic messages:
---
panic: initiate_write_inodeblock_ufs2: already started

syncing disks, buffers remaining... 1109 1109 1109 1109 1109 1109 1109
1109 1109 1109 1109 1109 1109 1109 1109 1109 1109 1109 1109 1109 giving
up on 366 buffers Uptime: 56m45s
Dumping 80 MB
ata0: resetting devices ..
ata0-slave: timeout waiting for cmd=ec s=00 e=04
ata0-slave: ATA identify failed
done
 16 32 48 64 80
---
Reading symbols from /boot/kernel/if_ep.ko...done.
Loaded symbols for /boot/kernel/if_ep.ko
Reading symbols from /boot/kernel/snd_pcm.ko...done.
Loaded symbols for /boot/kernel/snd_pcm.ko
Reading symbols from /boot/kernel/snd_mss.ko...done.
Loaded symbols for /boot/kernel/snd_mss.ko
Reading symbols from
/usr/src/sys/i386/compile/-=DLW=-/modules/usr/src/sys/modules/ipfw/ipfw
.ko.debug...done. Loaded symbols for
/usr/src/sys/i386/compile/-=DLW=-/modules/usr/src/sys/modules/ipfw/ipfw
.ko.debug Reading symbols from
/usr/src/sys/i386/compile/-=DLW=-/modules/usr/src/sys/modules/linux/lin
ux.ko.debug...done. Loaded symbols for
/usr/src/sys/i386/compile/-=DLW=-/modules/usr/src/sys/modules/linux/lin
ux.ko.debug Reading symbols from
/usr/src/sys/i386/compile/-=DLW=-/modules/usr/src/sys/modules/if_tap/if
_tap.ko.debug...done. Loaded symbols for
/usr/src/sys/i386/compile/-=DLW=-/modules/usr/src/sys/modules/if_tap/if
_tap.ko.debug
#0  0xc01896a0 in doadump ()
(kgdb) bt
#0  0xc01896a0 in doadump ()
#1  0xc0189b80 in boot ()
#2  0xc0189df7 in panic ()
#3  0xc024cd33 in initiate_write_inodeblock_ufs2 ()
#4  0xc024bf9f in softdep_disk_io_initiation ()
#5  0xc015df16 in spec_xstrategy ()
#6  0xc015e1b1 in spec_specstrategy ()
#7  0xc015d483 in spec_vnoperate ()
#8  0xc01c0ff9 in bwrite ()
#9  0xc01c27d3 in vfs_bio_awrite ()
#10 0xc01c89c6 in vop_stdfsync ()
#11 0xc015de23 in spec_fsync ()
#12 0xc015d483 in spec_vnoperate ()
#13 0xc01cf8e5 in sched_sync ()
#14 0xc017a678 in fork_exit ()
(kgdb) quit

# dmesg | grep ata
GNU gdb 5.2.1 (FreeBSD)
Copyright 2002 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you
are welcome to change it and/or distribute copies of it under certain
conditions. 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-undermydesk-freebsd...
panic: initiate_write_inodeblock_ufs2: already started
panic messages:
---
panic: initiate_write_inodeblock_ufs2: already started

syncing disks, buffers remaining... 1109 1109 1109 1109 1109 1109 1109
1109 1109 1109 1109 1109 1109 1109 1109 1109 1109 1109 1109 1109 giving
up on 366 buffers Uptime: 56m45s
Dumping 80 MB
ata0: resetting devices ..
ata0-slave: timeout waiting for cmd=ec s=00 e=04
ata0-slave: ATA identify failed
done
 16 32 48 64 80
---
Reading symbols from /boot/kernel/if_ep.ko...done.
Loaded symbols for /boot/kernel/if_ep.ko
Reading symbols from /boot/kernel/snd_pcm.ko...done.
Loaded symbols for /boot/kernel/snd_pcm.ko
Reading symbols from /boot/kernel/snd_mss.ko...done.
Loaded symbols for /boot/kernel/snd_mss.ko
Reading symbols from
/usr/src/sys/i386/compile/-=DLW=-/modules/usr/src/sys/modules/ipfw/ipfw
.ko.debug...done. Loaded symbols for
/usr/src/sys/i386/compile/-=DLW=-/modules/usr/src/sys/modules/ipfw/ipfw
.ko.debug Reading symbols from
/usr/src/sys/i386/compile/-=DLW=-/modules/usr/src/sys/modules/linux/lin
ux.ko.debug...done. Loaded symbols for
/usr/src/sys/i386/compile/-=DLW=-/modules/usr/src/sys/modules/linux/lin
ux.ko.debug Reading symbols from
/usr/src/sys/i386/compile/-=DLW=-/modules/usr/src/sys/modules/if_tap/if
_tap.ko.debug...done. Loaded symbols for
/usr/src/sys/i386/compile/-=DLW=-/modules/usr/src/sys/modules/if_tap/if
_tap.ko.debug
#0  0xc01896a0 in doadump ()
(kgdb) bt
#0  0xc01896a0 in doadump ()
#1  0xc0189b80 in boot ()
#2  0xc0189df7 in panic ()
#3  0xc024cd33 in initiate_write_inodeblock_ufs2 ()
#4  0xc024bf9f in softdep_disk_io_initiation ()
#5  0xc015df16 in spec_xstrategy ()
#6  0xc015e1b1 in spec_specstrategy ()
#7  0xc015d483 in spec_vnoperate ()
#8  0xc01c0ff9 in bwrite ()
#9  0xc01c27d3 in vfs_bio_awrite ()
#10 0xc01c89c6 in vop_stdfsync ()
#11 0xc015de23 in spec_fsync ()
#12 0xc015d483 in spec_vnoperate ()
#13 0xc01cf8e5 in sched_sync ()
#14 0xc017a678