panic: lockmgr: locking against myself

From: Daniel C. Sobral <dcs_at_tcoip.com.br>
Date: Fri, 04 Apr 2003 14:19:52 -0300
As always, whenever I crash before background fsck is finished...

root_at_dcs:/opt/home/dcs$ gdb -k /usr/obj/usr/src/sys/DCS/kernel.debug 
/var/crash/vmcore.8
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: lockmgr: locking against myself
panic messages:
---
panic: lockmgr: locking against myself

syncing disks, buffers remaining... 882 882 880 880 880 880 880 880 880 
880 880 822 823 822 822 822 822 822 unknown: device timeout
unknown: DMA timeout
824 822 827 822 822 822 822 822 822 822 822 822 822 822 822 822 822 822 
822 822 822 822 822
giving up on 710 buffers
Uptime: 4m41s
Dumping 255 MB
ata0: resetting devices ..
done
  16 32 48 64 80 96 112 128 144 160 176 192 208 224 240
---
Reading symbols from /boot/kernel/snd_cmi.ko...done.
Loaded symbols for /boot/kernel/snd_cmi.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/DCS/modules/usr/src/sys/modules/acpi/acpi.ko.debug...done.
Loaded symbols for 
/usr/obj/usr/src/sys/DCS/modules/usr/src/sys/modules/acpi/acpi.ko.debug
Reading symbols from /boot/kernel/green_saver.ko...done.
Loaded symbols for /boot/kernel/green_saver.ko
Reading symbols from 
/usr/obj/usr/src/sys/DCS/modules/usr/src/sys/modules/linux/linux.ko.debug...done.
Loaded symbols for 
/usr/obj/usr/src/sys/DCS/modules/usr/src/sys/modules/linux/linux.ko.debug
#0  doadump () at /usr/src/sys/kern/kern_shutdown.c:239
239             dumping++;
(kgdb) bt full
#0  doadump () at /usr/src/sys/kern/kern_shutdown.c:239
No locals.
#1  0xc01ec443 in boot (howto=256) at /usr/src/sys/kern/kern_shutdown.c:371
No locals.
#2  0xc01ec743 in panic () at /usr/src/sys/kern/kern_shutdown.c:542
         td = (struct thread *) 0xc29fc980
         bootopt = 256
         newpanic = 1
         buf = "lockmgr: locking against myself", '\0' <repeats 224 times>
#3  0xc01d0c22 in lockmgr (lkp=0xc77cf97c, flags=34144290, 
interlkp=0x2000020, td=0xc29fc980)
     at /usr/src/sys/kern/kern_lock.c:447
         error = 0
         thr = (struct thread *) 0xc29fc980
         extflags = 33554464
         lockflags = 34144290
#4  0xc0245f10 in BUF_TIMELOCK (bp=0xc77cf97c, locktype=34144290, 
interlock=0x0, wmesg=0x0, catch=0, timo=0)
     at buf.h:319
         ret = 0
#5  0xc0241528 in flushbuflist (blist=0xc77cf8b0, flags=4, 
vp=0xc2ef86d8, slpflag=0, slptimeo=0, errorp=0x0)
     at /usr/src/sys/kern/vfs_subr.c:1226
         bp = (struct buf *) 0xc77cf97c
         nbp = (struct buf *) 0x2090022
         found = 1
         error = 0
#6  0xc02411d9 in vinvalbuf (vp=0xc2ef86d8, flags=4, cred=0x0, td=0x0, 
slpflag=0, slptimeo=0)
     at /usr/src/sys/kern/vfs_subr.c:1140
         blist = (struct buf *) 0x0
         error = 0
         object = (struct vm_object *) 0xc038d420
#7  0xc027ef0a in ffs_truncate (vp=0xc2ef86d8, length=0, flags=2048, 
cred=0x0, td=0xc29fc980)
     at /usr/src/sys/ufs/ffs/ffs_inode.c:273
         ovp = (struct vnode *) 0xc2ef86d8
         oip = (struct inode *) 0xc2506510
         bn = -4595188392983498048
         lbn = -4595796903951530429
---Type <return> to continue, or q <return> to quit---
         lastblock = -3284296585705422848
         lastiblock = {7825250020, 4294852608, 4294983680}
         indir_lbn = {-3284295173694292736, 0, -3976995127051695744}
         oldblks = {-4422543730025529563, -4597468310878027639, 
-4603193868120500600, 7560230888,
   1545117794085, -4074619939888858781, 3530282736, 
-4603163193464072504, 3265263592, 591635055342,
   24892416000, 1425736, 1427344, 3262735212, -4444941709473941328}
         newblks = {-4595796560354146749, -4595830507774119232, 
-4595689636071734605, -4602925638822930956,
   -3284296118623889348, -4595830507775840915, -4597472472701337599, 
-4422543733250063938,
   -3284296015545203986, -4597468307654643792, 16109450424, 
-3284295792166188672, -4597468310878027194,
   -4597197328506420774, -4595797247547378808}
         count = -3284296431086600192
         blocksreleased = 0
         datablocks = 96
         fs = (struct fs *) 0xc279d000
         bp = (struct buf *) 0xc0210643
         needextclean = 0
         softdepslowdown = 0
         extblocks = 0
         offset = -1024489768
         size = 0
         level = 0
         nblocks = -764684924
         i = -1024489768
         error = 0
         allerror = 0
         osize = 3224950592
#8  0xc02825c0 in ffs_snapshot (mp=0xc25ecc00, snapfile=---Can't read 
userspace from dump, or kernel process---

) at /usr/src/sys/ufs/ffs/ffs_snapshot.c:654
         numblks = 262138
         blkno = -4595798621938448829
         blkp = (ufs2_daddr_t *) 0xc0387108
         snapblklist = (ufs2_daddr_t *) 0xc03862a8
         error = 5
         cg = -1071577533
         snaploc = 0
         i = 0
---Type <return> to continue, or q <return> to quit---
         size = 0
         len = -1033974784
         loc = 0
         flag = 220270592
         starttime = {tv_sec = 0, tv_nsec = 0}
         endtime = {tv_sec = -1071577533, tv_nsec = -1070042672}
         saved_nice = 0 '\0'
         redo = 0
         snaplistsize = 0
         lp = (int32_t *) 0x0
         space = (void *) 0xc0387108
         copy_fs = (struct fs *) 0x0
         fs = (struct fs *) 0xc279d000
         snaphead = (struct snaphead *) 0xc02105db
         td = (struct thread *) 0xc29fc980
         ip = (struct inode *) 0xc2506510
         xp = (struct inode *) 0xd26bd7e8
         bp = (struct buf *) 0xc77cf8b0
         nbp = (struct buf *) 0xc038d320
         ibp = (struct buf *) 0x0
         sbp = (struct buf *) 0x0
         nd = {ni_dirp = 0x80c1c80
---Can't read userspace from dump, or kernel process---


-- 
Daniel C. Sobral                   (8-DCS)
Gerencia de Operacoes
Divisao de Comunicacao de Dados
Coordenacao de Seguranca
TCO
Fones: 55-61-313-7654/Cel: 55-61-9618-0904
E-mail: Daniel.Capo_at_tco.net.br
         Daniel.Sobral_at_tcoip.com.br
         dcs_at_tcoip.com.br

Outros:
	dcs_at_newsguy.com
	dcs_at_freebsd.org
	capo_at_notorious.bsdconspiracy.net

The rule on staying alive as a forcaster is to give 'em a number or
give 'em a date, but never give 'em both at once.
		-- Jane Bryant Quinn
Received on Fri Apr 04 2003 - 07:19:57 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:37:02 UTC