Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 19 Aug 2002 13:11:34 -0700
From:      Alex Zepeda <zipzippy@sonic.net>
To:        current@freebsd.org
Subject:   Re: lock order reversal / could sleep with process lock:
Message-ID:  <20020819201134.GB2182@blarf.homeip.net>
In-Reply-To: <20020819002713.GA69336@blarf.homeip.net>
References:  <20020819002713.GA69336@blarf.homeip.net>

next in thread | previous in thread | raw e-mail | index | archive | help
On Sun, Aug 18, 2002 at 05:27:13PM -0700, Alex Zepeda wrote:

> Should I set debug.witness_ddb to 1 and get a trace from it?  Or has this 
> one already been seen?

It already fell over in exec, here's what it said:

GNU gdb 5.2.0 (FreeBSD) 20020627
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: bremfree: bp 0xc42410a0 not locked
panic messages:
---
panic: Most recently used by temp

cpuid = 0; lapic.id = 00000000

syncing disks... panic: bremfree: bp 0xc42410a0 not locked
cpuid = 0; lapic.id = 00000000
Uptime: 4h13m25s
Dumping 127 MB
ata0: resetting devices ..
done
 16 32 48 64 80 96 112
---
#0  doadump () at ../../../kern/kern_shutdown.c:213
213		dumping++;
(kgdb) bt
#0  doadump () at ../../../kern/kern_shutdown.c:213
#1  0xc02216b1 in boot (howto=260) at ../../../kern/kern_shutdown.c:345
#2  0xc02218d3 in panic () at ../../../kern/kern_shutdown.c:493
#3  0xc0255f71 in bremfree (bp=0xc42410a0) at ../../../kern/vfs_bio.c:633
#4  0xc02582ba in getblk (vp=0xc1b4c940, blkno=2883984, size=8192, slpflag=0, 
    slptimeo=0) at ../../../kern/vfs_bio.c:2318
#5  0xc025605f in breadn (vp=0xc1b4c940, blkno=2883984, size=8192, 
    rablkno=0x0, rabsize=0x0, cnt=0, cred=0x0, bpp=0x0)
    at ../../../kern/vfs_bio.c:691
#6  0xc025602c in bread (vp=0xc1b4c940, blkno=2883984, size=8192, cred=0x0, 
    bpp=0xc9b2b904) at ../../../kern/vfs_bio.c:673
#7  0xc02d16d9 in ffs_update (vp=0xc1bd8128, waitfor=0)
    at ../../../ufs/ffs/ffs_inode.c:102
#8  0xc02e1bf9 in ffs_fsync (ap=0xc9b2b97c) at ../../../ufs/ffs/ffs_vnops.c:292
#9  0xc02e1122 in ffs_sync (mp=0xc1b93a00, waitfor=2, cred=0xc0bace80, 
    td=0xc03eda40) at vnode_if.h:545
#10 0xc0265860 in sync (td=0xc03eda40, uap=0x0)
    at ../../../kern/vfs_syscalls.c:129
#11 0xc022131e in boot (howto=256) at ../../../kern/kern_shutdown.c:254
#12 0xc02218d3 in panic () at ../../../kern/kern_shutdown.c:493
#13 0xc03021ec in mtrash_ctor (mem=0xc2093400, size=0, arg=0x0)
    at ../../../vm/uma_dbg.c:135
#14 0xc030113f in uma_zalloc_arg (zone=0xc0b859c0, udata=0x0, flags=0)
    at ../../../vm/uma_core.c:1358
#15 0xc0218824 in malloc (size=6, type=0xc03f02c0, flags=0)
    at ../../../kern/kern_malloc.c:171
#16 0xc0204324 in exec_elf32_imgact (imgp=0xc9b2bbc0) at imgact_elf.c:806
#17 0xc020e544 in execve (td=0xc1f1ed80, uap=0xc9b2bd14)
    at ../../../kern/kern_exec.c:270
#18 0xc033a7a4 in syscall (frame=
      {tf_fs = 47, tf_es = 47, tf_ds = 47, tf_edi = 0, tf_esi = 136140320, tf_ebp = -1077948136, tf_isp = -911032972, tf_ebx = 136156240, tf_edx = 136150624, tf_ecx = 5, tf_eax = 59, tf_trapno = 12, tf_err = 2, tf_eip = 134908427, tf_cs = 31, tf_eflags = 642, tf_esp = -1077948356, tf_ss = 47})
    at ../../../i386/i386/trap.c:1050
#19 0xc0326c1d in Xint0x80_syscall () at /var/tmp//ccTCRbXy.s:141
---Can't read userspace from dump, or kernel process---

(kgdb) quit

- alex

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?20020819201134.GB2182>