Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 17 May 2004 15:46:06 -0400
From:      "Robin P. Blanchard" <robin.blanchard@gactr.uga.edu>
To:        <current@freebsd.org>
Subject:   panic: lockmgr: locking against myself (was Panic on very recent -CURRENT)
Message-ID:  <9B5C1FCAFB35084787C21EFFFA78DD9EE394@EBE1.gc.nat>

next in thread | raw e-mail | index | archive | help
Updated to latest -CURRENT and am getting (what seems to be) the same =
panic.
Panics are being brought on by heavy building of various ports.

# gdb -k /usr/obj/usr/src/sys/fbsd5.vpn/kernel.debug ./vmcore.7=20
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
at line 370 in file /usr/src/sys/kern/kern_lock.c
cpuid =3D 0;=20

syncing disks, buffers remaining... kernel trap 12 with interrupts =
disabled


Fatal trap 12: page fault while in kernel mode
cpuid =3D 0; apic id =3D 00
fault virtual address   =3D 0x24
fault code              =3D supervisor read, page not present
instruction pointer     =3D 0x8:0xc04f948e
stack pointer           =3D 0x10:0xc9567c38
frame pointer           =3D 0x10:0xc9567c58
code segment            =3D base 0x0, limit 0xfffff, type 0x1b
                        =3D DPL 0, pres 1, def32 1, gran 1
processor eflags        =3D resume, IOPL =3D 0
current process         =3D 28 (swi8: tty:sio clock)
trap number             =3D 12
panic: page fault
at line 815 in file /usr/src/sys/i386/i386/trap.ccpuid =3D 0;=20
Uptime: 29m7s
Dumping 127 MB
...snip...
#0  doadump () at /usr/src/sys/kern/kern_shutdown.c:236
236             dumping++;
(kgdb) bt full
#0  doadump () at /usr/src/sys/kern/kern_shutdown.c:236
No locals.
#1  0xc04cdca6 in boot (howto=3D260) at =
/usr/src/sys/kern/kern_shutdown.c:370
No locals.
#2  0xc04ce0dc in __panic () at /usr/src/sys/kern/kern_shutdown.c:548
        td =3D (struct thread *) 0xc0ec2000
        bootopt =3D 260
        newpanic =3D 0
        ap =3D 0xc9567b84 "=D5@f=C0\001"
        buf =3D "lockmgr: locking against myself", '\0' <repeats 224 =
times>
#3  0xc061e3cc in trap_fatal (frame=3D0xc9567bf8, eva=3D0) at
/usr/src/sys/i386/i386/trap.c:815
        code =3D 16
        type =3D 12
        ss =3D 16
        esp =3D 0
        softseg =3D {ssd_base =3D 0, ssd_limit =3D 1048575, ssd_type =3D =
27, ssd_dpl
=3D 0, ssd_p =3D 1, ssd_xx =3D 0,=20
  ssd_xx1 =3D 0, ssd_def32 =3D 1, ssd_gran =3D 1}
#4  0xc061da23 in trap (frame=3D
      {tf_fs =3D 24, tf_es =3D -1066860528, tf_ds =3D -1032060912, =
tf_edi =3D 0,
tf_esi =3D -1066762520, tf_ebp =3D -917078952, tf_isp =3D -917079004, =
tf_ebx =3D
-1030883264, tf_edx =3D -1058267136, tf_ecx =3D -1058267136, tf_eax =3D =
36,
tf_trapno =3D 12, tf_err =3D 0, tf_eip =3D -1068526450, tf_cs =3D 8, =
tf_eflags =3D
65683, tf_esp =3D -1066802016, tf_ss =3D -1058229392}) at
/usr/src/sys/i386/i386/trap.c:250
        td =3D (struct thread *) 0xc0ec2000
        p =3D (struct proc *) 0xc0ecb370
        sticks =3D 3228165280
        i =3D 0
        ucode =3D 0
        type =3D 12
        code =3D 0
        eva =3D 36
#5  0xc04f948e in propagate_priority (td=3D0xc28df840) at
/usr/src/sys/kern/subr_turnstile.c:225
        tc =3D (struct turnstile_chain *) 0xc06a7ee8
        ts =3D (struct turnstile *) 0x0
        td1 =3D (struct thread *) 0x0
        pri =3D 36
#6  0xc04f9d14 in turnstile_wait (ts=3D0xc0ec5080, lock=3D0xc069c640, =
owner=3D0x0)
    at /usr/src/sys/kern/subr_turnstile.c:505
        tc =3D (struct turnstile_chain *) 0xc06a7dd0
        td =3D (struct thread *) 0xc0ec2000
        td1 =3D (struct thread *) 0xc069c640
#7  0xc04c2ec5 in _mtx_lock_sleep (m=3D0xc069c640, opts=3D0, file=3D0x0, =
line=3D0)
    at /usr/src/sys/kern/kern_mutex.c:541
        ts =3D (struct turnstile *) 0x0
        td =3D (struct thread *) 0xc0ec2000
        v =3D 0
#8  0xc04e0482 in softclock (dummy=3D0x0) at
/usr/src/sys/kern/kern_timeout.c:246
        c_func =3D (void (*)(void *)) 0xc06007f0 <scrn_timer>
        c_arg =3D (void *) 0xc06cae60
        c_flags =3D 7
        c =3D (struct callout *) 0x0
        bucket =3D (struct callout_tailq *) 0xc4d87950
        curticks =3D 174662
        steps =3D 7
        depth =3D 1
        mpcalls =3D 0
        gcalls =3D 0
        wakeup_cookie =3D 7
#9  0xc04b74f8 in ithread_loop (arg=3D0xc2572280) at
/usr/src/sys/kern/kern_intr.c:574
        ithd =3D (struct ithd *) 0xc2572280
        ih =3D (struct intrhand *) 0xc0ec4240
        td =3D (struct thread *) 0xc0ec2000
        p =3D (struct proc *) 0xc0ecb370
        count =3D 1
        warned =3D 0
#10 0xc04b6118 in fork_exit (callout=3D0xc04b72c0 <ithread_loop>, =
arg=3D0x0,
frame=3D0x0)
    at /usr/src/sys/kern/kern_fork.c:816
        p =3D (struct proc *) 0xc0ecb370
        td =3D (struct thread *) 0x0
(kgdb)=20

---------------------------------------
Robin P. Blanchard
Systems Integration Specialist
Georgia Center for Continuing Education
fon: 706.542.2404 < > fax: 706.542.6546
---------------------------------------
=20

> -----Original Message-----
> From: Robin P. Blanchard=20
> Sent: Monday, May 17, 2004 11:40 AM
> To: current@freebsd.org
> Subject: Panic on very recent -CURRENT
>=20
> Ident of kernel at:
> http://people.gactr.uga.edu/robin/kernel_ident.txt
>=20
>=20
> # gdb -k /usr/obj/usr/src/sys/fbsd5.vpn/kernel.debug=20
> ./vmcore.5 GNU gdb 5.2.1 (FreeBSD) Copyright 2002 Free=20
> Software Foundation, Inc.
> GDB is free software, covered by the GNU General Public=20
> License, and you are welcome to change it and/or distribute=20
> copies of it under certain conditions.
> Type "show copying" to see the conditions.
> There is absolutely no warranty for GDB.  Type "show=20
> warranty" for details.
> This GDB was configured as "i386-undermydesk-freebsd"...
> panic: lockmgr: locking against myself
> panic messages:
> ---
> panic: lockmgr: locking against myself
> at line 370 in file /usr/src/sys/kern/kern_lock.c cpuid =3D 0;=20
>=20
> syncing disks, buffers remaining... 1401 1401 1400 panic:=20
> bremfree: removing a buffer not on a queue at line 649 in=20
> file /usr/src/sys/kern/vfs_bio.ccpuid =3D 0;
> Uptime: 3h52m23s
> Dumping 127 MB
>  16 32 48 64 80 96 112
>=20
> #0  doadump () at /usr/src/sys/kern/kern_shutdown.c:236
> 236             dumping++;
> (kgdb) exec-file /boot/kernel/kernel
> (kgdb) bt full
> #0  doadump () at /usr/src/sys/kern/kern_shutdown.c:236
> No locals.
> #1  0xc04cdcc6 in boot (howto=3D260) at=20
> /usr/src/sys/kern/kern_shutdown.c:370
> No locals.
> #2  0xc04ce0fc in __panic () at /usr/src/sys/kern/kern_shutdown.c:548
>         td =3D (struct thread *) 0xc27dc6e0
>         bootopt =3D 260
>         newpanic =3D 0
>         ap =3D 0xd255d834=20
> =
"(\025=E3=C4(\025=E3=C4T=D8U=D2=BB=CEQ=C0(\025=E3=C4(\025=E3=C4(\025=E3=C4=
\""
>         buf =3D "lockmgr: locking against myself", '\0'=20
> <repeats 224 times>
> #3  0xc051cfc1 in bremfreel (bp=3D0xc4e31528) at=20
> /usr/src/sys/kern/vfs_bio.c:649
>         old_qindex =3D 0
> #4  0xc051cebb in bremfree (bp=3D0x0) at=20
> /usr/src/sys/kern/vfs_bio.c:631 No locals.
> #5  0xc052193e in getblk (vp=3D0xc26ea924, blkno=3D12000,=20
> size=3D2048, slpflag=3D0, slptimeo=3D0, flags=3D0)
>     at /usr/src/sys/kern/vfs_bio.c:2472
>         lockflags =3D 0
>         bp =3D (struct buf *) 0xc4e31528
> #6  0xc05b2b59 in ffs_sbupdate (mp=3D0xc2686300, waitfor=3D2) at=20
> /usr/src/sys/ufs/ffs/ffs_vfsops.c:1482
>         fs =3D (struct fs *) 0xc269d800
>         bp =3D (struct buf *) 0x0
>         blks =3D 1
>         space =3D (void *) 0xc26cb000
>         i =3D 0
>         size =3D 2048
>         error =3D 0
>         allerror =3D 0
> #7  0xc05b24c2 in ffs_sync (mp=3D0xc263d400, waitfor=3D2,=20
> cred=3D0xc0eb9200, td=3D0xc0698ae0)
>     at /usr/src/sys/ufs/ffs/ffs_vfsops.c:1207
>         nvp =3D (struct vnode *) 0x0
>         vp =3D (struct vnode *) 0xc26ea924
>         devvp =3D (struct vnode *) 0xc26ea924
>         ip =3D (struct inode *) 0x0
>         ump =3D (struct ufsmount *) 0xc2686300
>         fs =3D (struct fs *) 0xc269d800
>         error =3D 0
>         count =3D 0
>         lockreq =3D 65554
>         allerror =3D 0
> #8  0xc05363de in sync (td=3D0xc0698ae0, uap=3D0x0) at=20
> /usr/src/sys/kern/vfs_syscalls.c:136
>         mp =3D (struct mount *) 0xc263d400
>         nmp =3D (struct mount *) 0x0
>         asyncflag =3D 0
> #9  0xc04cd854 in boot (howto=3D256) at=20
> /usr/src/sys/kern/kern_shutdown.c:302
>         bp =3D (struct buf *) 0xc4dadd68
>         iter =3D 0
>         nbusy =3D 1400
>         pbusy =3D 1400
>         subiter =3D 50
> #10 0xc04ce0fc in __panic () at /usr/src/sys/kern/kern_shutdown.c:548
>         td =3D (struct thread *) 0xc27dc6e0
>         bootopt =3D 256
>         newpanic =3D 0=20
>         ap =3D 0xd255da1c "\""
>         buf =3D "lockmgr: locking against myself", '\0'=20
> <repeats 224 times>
> #11 0xc04bfe65 in lockmgr (lkp=3D0xc0ece5c4, flags=3D2,=20
> interlkp=3D0x1000000, td=3D0xc27dc6e0)
>     at /usr/src/sys/kern/kern_lock.c:439
>         error =3D 0
>         thr =3D (struct thread *) 0xc27dc6e0
>         extflags =3D 16777216
>         lockflags =3D 2
> #12 0xc05cd70a in _vm_map_lock_read (map=3D0x0, file=3D0x0,=20
> line=3D0) at machine/pcpu.h:156 No locals.
> #13 0xc05d1508 in vm_map_lookup (var_map=3D0xd255db1c, vaddr=3D0,=20
> fault_typea=3D1 '\001', out_entry=3D0xd255db20,=20
>     object=3D0x0, pindex=3D0x0, out_prot=3D0x0, wired=3D0xd255daf8)=20
> at /usr/src/sys/vm/vm_map.c:2867
>         entry =3D 0x0
>         map =3D 0xc0ece588
>         prot =3D 0 '\0'
>         fault_type =3D 1 '\001'
> #14 0xc05c716f in vm_fault (map=3D0xc0ece588, vaddr=3D0,=20
> fault_type=3D1 '\001', fault_flags=3D0)
>     at /usr/src/sys/vm/vm_fault.c:232
>         prot =3D 192 '=C0'
>         is_first_object_locked =3D -766125352
>         result =3D 0
>         growstack =3D 1
>         wired =3D -766125288
>         map_generation =3D -1033337320
>         next_object =3D 0x0
>         marray =3D {0x0, 0x0, 0xc0d30820, 0xc0532e4c,=20
> 0xc2688618, 0x10002, 0xc8989070, 0xc27ccf00, 0x8051000,
>   0xc0e75af8, 0xc0ece628, 0xd255db6c, 0xc06164dd, 0xc0c381c0,=20
> 0x0, 0x246}
>         hardfault =3D 0
>         faultcount =3D -1058216568
>         fs =3D {m =3D 0xd255db34, object =3D 0xc05402b0, pindex =3D=20
> 14014576280821825536, first_m =3D 0xc0e6edd8,
>   first_object =3D 0xc2688618, first_pindex =3D=20
> 14014576280821825536, map =3D 0xc0ece588, entry =3D 0xc0dde568,
>   lookup_still_valid =3D 0, vp =3D 0xd255db34}
> #15 0xc061a995 in trap_pfault (frame=3D0xd255dbf4, usermode=3D0,=20
> eva=3D16) at /usr/src/sys/i386/i386/trap.c:710
>         va =3D 0
>         vm =3D (struct vmspace *) 0x0
>         map =3D 0xc0ece588
>         rv =3D -1058216568
>         ftype =3D 1 '\001'
>         td =3D (struct thread *) 0xc27dc6e0
>         p =3D (struct proc *) 0xc27dd1b8
> #16 0xc061a65d in trap (frame=3D
>       {tf_fs =3D 672530456, tf_es =3D 16, tf_ds =3D 16, tf_edi =3D=20
> -1058216568, tf_esi =3D -1032160388, tf_ebp =3D -766124984,=20
> tf_isp =3D -766125024, tf_ebx =3D 0, tf_edx =3D 0, tf_ecx =3D 0,=20
> tf_eax =3D 0, tf_trapno =3D 12, tf_err =3D 0, tf_eip =3D -1067654093,=20
> tf_cs =3D 8, tf_eflags =3D 66118, tf_esp =3D 3, tf_ss =3D 0}) at=20
> /usr/src/sys/i386/i386/trap.c:420
>         td =3D (struct thread *) 0xc27dc6e0
>         p =3D (struct proc *) 0xc27dd1b8
>         sticks =3D 3528842444
>         i =3D 0
>         ucode =3D 0
>         type =3D 12
>         code =3D 0
>         eva =3D 16
> #17 0xc05ce433 in vm_map_simplify_entry (map=3D0xc0ece588,=20
> entry=3D0xc27a7b7c) at /usr/src/sys/vm/vm_map.c:1041
>         next =3D 0x0
>         prev =3D 0x0
>         prevsize =3D 0
>         esize =3D 0
> #18 0xc05ce064 in vm_map_insert (map=3D0xc27a7b7c,=20
> object=3D0xc0ece588, offset=3D0, start=3D134553600,=20
>     end=3D134557696, prot=3D7 '\a', max=3D7 '\a', cow=3D0) at=20
> /usr/src/sys/vm/vm_map.c:815
>         new_entry =3D 0x0
>         prev_entry =3D 0xc27a7b7c
>         temp_entry =3D 0xc27a7b7c
>         protoeflags =3D 0
> #19 0xc05dd536 in obreak (td=3D0x0, uap=3D0x0) at=20
> /usr/src/sys/vm/vm_unix.c:119
>         vm =3D (struct vmspace *) 0xc0ece588
>         new =3D 0
>         old =3D 134553600
>         base =3D 0
>         datalim =3D -4545005548382553220
>         vmemlim =3D 9223372036854775807
>         rv =3D 0
>         error =3D 0
>         do_map_wirefuture =3D 0
> #20 0xc061b200 in syscall (frame=3D
>       {tf_fs =3D 47, tf_es =3D 47, tf_ds =3D 47, tf_edi =3D=20
> 134557696, tf_esi =3D 134553600, tf_ebp =3D -1077942680, tf_isp =3D=20
> -766124684, tf_ebx =3D 672459276, tf_edx =3D 672449032, tf_ecx =3D=20
> 672449028, tf_eax =3D 17, tf_trapno =3D 12, tf_err =3D 2, tf_eip =3D=20
> 671988075, tf_cs =3D 31, tf_eflags =3D 643, tf_esp =3D -1077942708,=20
> tf_ss =3D 47})
>     at /usr/src/sys/i386/i386/trap.c:1004
>         params =3D 0xbfbfe650---Can't read userspace from dump,=20
> or kernel process---
>=20
> (kgdb)
>=20
>=20
> ---------------------------------------
> Robin P. Blanchard
> Systems Integration Specialist
> Georgia Center for Continuing Education
> fon: 706.542.2404 < > fax: 706.542.6546
> ---------------------------------------
>=20



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