From owner-freebsd-current@FreeBSD.ORG Thu Mar 11 01:39:51 2004 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 30E2E16A4CE for ; Thu, 11 Mar 2004 01:39:51 -0800 (PST) Received: from crf-consulting.co.uk (82-44-220-218.cable.ubr10.haye.blueyonder.co.uk [82.44.220.218]) by mx1.FreeBSD.org (Postfix) with ESMTP id 6FF8043D48 for ; Thu, 11 Mar 2004 01:39:50 -0800 (PST) (envelope-from nik@freebsd.org) Received: from [192.168.1.150] ([192.168.1.150])i2B9dnIP074442; Thu, 11 Mar 2004 09:39:49 GMT (envelope-from nik@freebsd.org) In-Reply-To: <20040309213630.GA656@tin.it> References: <20040307184421.GA18871@tin.it> <200403081210.40697.peter@wemm.org> <20040309213630.GA656@tin.it> Mime-Version: 1.0 (Apple Message framework v612) Content-Type: multipart/signed; protocol="application/pgp-signature"; micalg=pgp-sha1; boundary="Apple-Mail-4--240942791" Message-Id: <09C04C1A-7340-11D8-BE9D-000393863D48@freebsd.org> Content-Transfer-Encoding: 7bit From: Nik Clayton Date: Thu, 11 Mar 2004 09:39:48 +0000 To: flag@oltrelinux.com X-Pgp-Agent: GPGMail 1.0 (v30, 10.3) X-Mailer: Apple Mail (2.612) cc: FreeBSD_Current Subject: lockmgr: locking against myself, kern_lock.c line 370, dump available (was Re: LOR in yesterday CURRENT: system map vs Giant) X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 11 Mar 2004 09:39:51 -0000 --Apple-Mail-4--240942791 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=US-ASCII; delsp=yes; format=flowed On 9 Mar 2004, at 21:36, flag@oltrelinux.com wrote: > On Mon, Mar 08, 2004 at 12:10:40PM -0800, Peter Wemm wrote: >> >> This particular one was my fault, I believe it's been fixed. =20 >> However, I >> also believe this particular LOR happens via other code paths that =20= >> were >> not my fault. > > actually it's still there, and today (after a succesful > buildkernel/installkernel) i got eveen a solid freeze of my laptop > with this on my text console: > > panic: lockmgr: locking against myself at line 370 in file =20 > /usr/src/sys/kern/kern_lock.c > [something else] I've just had one of these after 16 hours of uptime. At the time the =20= system was at the console, in the middle of building kde3 (it had just =20= unpacked the kdemultimedia port). I've included the backtrace below. If anyone wants any more =20 (kernel.debug + the dump, for example) let me know. I'll be hanging =20 around the channels that shall not be named today if anyone wants to go =20= through this in realtime. N Script started on Thu Mar 11 09:32:26 2004 clan# gdb -k kernel.debug /var/crash/m=08=1B[Kvmcore.0 GNU gdb 5.2.1 (FreeBSD) Copyright 2002 Free Software Foundation, Inc. GDB is free software, covered by the GNU General Public License, and =20 you are welcome to change it and/or distribute copies of it under certain =20 conditions. Type "show copying" to see the conditions. There is absolutely no warranty for GDB. Type "show warranty" for =20 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 ../../../kern/kern_lock.c cpuid =3D 0; Debugger("panic") panic: from debugger at line 453 in file ../../../ddb/db_command.ccpuid =3D 0; boot() called on cpu#0 Uptime: 16h22m45s Dumping 511 MB 16 32 48 64 80 96 112 128 144 160 176 192 208 224 240 256 272 288 304 =20= 320 336 352 368 384 400 416 432 448 464 480 496 --- Reading symbols from /boot/kernel/snd_mss.ko...done. Loaded symbols for /boot/kernel/snd_mss.ko Reading symbols from /boot/kernel/snd_pcm.ko...done. Loaded symbols for /boot/kernel/snd_pcm.ko Reading symbols from =20 /local/1/usr/src/sys/i386/compile/CLAN/modules/local/1/usr/src/sys/=20 modules/acpi/acpi.ko...done. Loaded symbols for =20 /local/1/usr/src/sys/i386/compile/CLAN/modules/local/1/usr/src/sys/=20 modules/acpi/acpi.ko Reading symbols from =20 /local/1/usr/src/sys/i386/compile/CLAN/modules/local/1/usr/src/sys/=20 modules/nfsserver/nfsserver.ko.debug...done. Loaded symbols for =20 /local/1/usr/src/sys/i386/compile/CLAN/modules/local/1/usr/src/sys/=20 modules/nfsserver/nfsserver.ko.debug Reading symbols from =20 /local/1/usr/src/sys/i386/compile/CLAN/modules/local/1/usr/src/sys/=20 modules/linux/linux.ko.debug...done. Loaded symbols for =20 /local/1/usr/src/sys/i386/compile/CLAN/modules/local/1/usr/src/sys/=20 modules/linux/linux.ko.debug #0 doadump () at ../../../kern/kern_shutdown.c:240 240 dumping++; (kgdb) backtrace #0 doadump () at ../../../kern/kern_shutdown.c:240 #1 0xc051ab0f in boot (howto=3D260) at = ../../../kern/kern_shutdown.c:374 #2 0xc051af7b in __panic () at ../../../kern/kern_shutdown.c:552 #3 0xc0445b42 in db_panic () at ../../../ddb/db_command.c:453 #4 0xc0445a92 in db_command (last_cmdp=3D0xc06f96e0, cmd_table=3D0x0, aux_cmd_tablep=3D0xc06c6cc4, aux_cmd_tablep_end=3D0xc06c6cc8) at ../../../ddb/db_command.c:348 #5 0xc0445be5 in db_command_loop () at ../../../ddb/db_command.c:475 #6 0xc0448da5 in db_trap (type=3D3, code=3D0) at = ../../../ddb/db_trap.c:73 #7 0xc06582ec in kdb_trap (type=3D3, code=3D0, regs=3D0xdda752d0) at ../../../i386/i386/db_interface.c:171 #8 0xc066db5c in trap (frame=3D {tf_fs =3D 24, tf_es =3D -1047003120, tf_ds =3D 16, tf_edi =3D =20= -1066738309, tf_esi =3D 1, tf_ebp =3D -576236772, tf_isp =3D -576236804, = =20 tf_ebx =3D 0, tf_edx =3D 0, tf_ecx =3D -1056882688, tf_eax =3D 18, = tf_trapno =3D =20 3, tf_err =3D 0, tf_eip =3D -1067088379, tf_cs =3D 8, tf_eflags =3D 658, = tf_esp =20 =3D -1066666039, tf_ss =3D -1066733316}) at ../../../i386/i386/trap.c:579 #9 0xc0658605 in Debugger (msg=3D0x0) at machine/cpufunc.h:60 #10 0xc051aed2 in __panic (file=3D0xc06addd9 = "../../../kern/kern_lock.c", line=3D370, fmt=3D0xc06add7b "lockmgr: locking against myself") at ../../../kern/kern_shutdown.c:536 #11 0xc050cc95 in lockmgr (lkp=3D0xce8f1f14, flags=3D34144290, =20 interlkp=3D0x2000020, td=3D0xc4a13540) at ../../../kern/kern_lock.c:439 ---Type to continue, or q to quit--- #12 0xc056d9d9 in getblk (vp=3D0xc467db2c, blkno=3D7150880, size=3D16384, = =20 slpflag=3D0, slptimeo=3D0, flags=3D0) at machine/pcpu.h:156 #13 0xc0569102 in breadn (vp=3D0xc467db2c, blkno=3D0, size=3D0, = rablkno=3D0x0, rabsize=3D0x0, cnt=3D0, cred=3D0x0, bpp=3D0x0) at =20 ../../../kern/vfs_bio.c:700 #14 0xc05690ac in bread (vp=3D0x0, blkno=3D0, size=3D0, cred=3D0x0, = bpp=3D0x0) at ../../../kern/vfs_bio.c:682 #15 0xc05e99ff in ffs_alloccg (ip=3D0xc4699000, cg=3D19, bpref=3D1787680, = =20 size=3D16384) at ../../../ufs/ffs/ffs_alloc.c:1287 #16 0xc05e9447 in ffs_hashalloc (ip=3D0xc4699000, cg=3D19, pref=3D0, =20 size=3D16384, allocator=3D0xc05e9910 ) at =20 ../../../ufs/ffs/ffs_alloc.c:1155 #17 0xc05e72c2 in ffs_alloc (ip=3D0xc4699000, lbn=3D223468, = bpref=3D1787680, size=3D16384, cred=3D0xc1976200, bnp=3D0xdda75610) at ../../../ufs/ffs/ffs_alloc.c:157 #18 0xc05eeaf3 in ffs_balloc_ufs2 (vp=3D0xc4698b2c, startoffset=3D0, =20 size=3D16384, cred=3D0xc1976200, flags=3D0, bpp=3D0xdda75720) at ../../../ufs/ffs/ffs_balloc.c:774 #19 0xc05f7aa0 in ffs_copyonwrite (devvp=3D0xc467db2c, bp=3D0xce848618) at ../../../ufs/ffs/ffs_snapshot.c:2035 #20 0xc04deab2 in spec_xstrategy (vp=3D0xc467db2c, bp=3D0xce848618) at ../../../fs/specfs/spec_vnops.c:493 #21 0xc04debab in spec_specstrategy (ap=3D0x0) at ../../../fs/specfs/spec_vnops.c:553 #22 0xc04ddc18 in spec_vnoperate (ap=3D0x0) ---Type to continue, or q to quit--- at ../../../fs/specfs/spec_vnops.c:122 #23 0xc0569934 in bwrite (bp=3D0xce848618) at vnode_if.h:1141 #24 0xc056a42c in bawrite (bp=3D0x0) at ../../../kern/vfs_bio.c:1150 #25 0xc05ea8fa in ffs_nodealloccg (ip=3D0xc5aadc94, cg=3D19, ipref=3D65, = =20 mode=3D33188) at ../../../ufs/ffs/ffs_alloc.c:1637 #26 0xc05e9447 in ffs_hashalloc (ip=3D0xc5aadc94, cg=3D19, pref=3D0, =20 size=3D33188, allocator=3D0xc05ea380 ) at ../../../ufs/ffs/ffs_alloc.c:1155 #27 0xc05e8b69 in ffs_valloc (pvp=3D0xc66a0410, mode=3D33188, =20 cred=3D0xc48d2600, vpp=3D0xdda75908) at ../../../ufs/ffs/ffs_alloc.c:857 #28 0xc0613bbf in ufs_makeinode (mode=3D33188, dvp=3D0xc66a0410, =20 vpp=3D0xdda75bf0, cnp=3D0xdda75c04) at ../../../ufs/ufs/ufs_vnops.c:2386 #29 0xc0610639 in ufs_create (ap=3D0xdda75a70) at ../../../ufs/ufs/ufs_vnops.c:200 #30 0xc0614168 in ufs_vnoperate (ap=3D0x0) at =20 ../../../ufs/ufs/ufs_vnops.c:2822 #31 0xc058b0ee in vn_open_cred (ndp=3D0xdda75bdc, flagp=3D0xdda75cdc, =20= cmode=3D420, cred=3D0xc48d2600, fdidx=3D0) at vnode_if.h:118 #32 0xc058af43 in vn_open (ndp=3D0x0, flagp=3D0x0, cmode=3D0, fdidx=3D0) at ../../../kern/vfs_vnops.c:93 #33 0xc0584098 in kern_open (td=3D0xc4a13540, path=3D0x0, =20 pathseg=3DUIO_USERSPACE, flags=3D2562, mode=3D420) at ../../../kern/vfs_syscalls.c:971 #34 0xc0583fc0 in open (td=3D0x0, uap=3D0x0) at =20 ../../../kern/vfs_syscalls.c:941 #35 0xc066e600 in syscall (frame=3D ---Type to continue, or q to quit--- {tf_fs =3D 47, tf_es =3D 47, tf_ds =3D 47, tf_edi =3D 134672579, = tf_esi =3D =20 2561, tf_ebp =3D -1077942136, tf_isp =3D -576234124, tf_ebx =3D 420, = tf_edx =3D =20 -19, tf_ecx =3D 67, tf_eax =3D 5, tf_trapno =3D 0, tf_err =3D 2, tf_eip = =3D =20 672040575, tf_cs =3D 31, tf_eflags =3D 514, tf_esp =3D -1077942628, = tf_ss =3D =20 47}) at ../../../i386/i386/trap.c:1008 #36 0x280e867f in ?? () ---Can't read userspace from dump, or kernel process--- (kgdb) q clan# ^D=08=08exit Script done on Thu Mar 11 09:32:46 2004 --Apple-Mail-4--240942791 content-type: application/pgp-signature; x-mac-type=70674453; name=PGP.sig content-description: This is a digitally signed message part content-disposition: inline; filename=PGP.sig content-transfer-encoding: 7bit -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.3 (Darwin) iD8DBQFAUDPok6gHZCw343URAnQAAJ9j/Z+OF23d2YYzOeSCqpVWQA0liQCdGGTE Vgrh4qqiygFLUaATz9u5tcA= =ENci -----END PGP SIGNATURE----- --Apple-Mail-4--240942791--