From owner-freebsd-current@FreeBSD.ORG Tue Jan 15 14:39:34 2008 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 3F63D16A417 for ; Tue, 15 Jan 2008 14:39:34 +0000 (UTC) (envelope-from kostikbel@gmail.com) Received: from relay02.kiev.sovam.com (relay02.kiev.sovam.com [62.64.120.197]) by mx1.freebsd.org (Postfix) with ESMTP id E0DE113C447 for ; Tue, 15 Jan 2008 14:39:33 +0000 (UTC) (envelope-from kostikbel@gmail.com) Received: from [212.82.216.226] (helo=deviant.kiev.zoral.com.ua) by relay02.kiev.sovam.com with esmtps (TLSv1:AES256-SHA:256) (Exim 4.67) (envelope-from ) id 1JEmwn-000Ggp-IC for freebsd-current@freebsd.org; Tue, 15 Jan 2008 16:39:32 +0200 Received: from deviant.kiev.zoral.com.ua (kostik@localhost [127.0.0.1]) by deviant.kiev.zoral.com.ua (8.14.2/8.14.2) with ESMTP id m0FEdOqx092932; Tue, 15 Jan 2008 16:39:24 +0200 (EET) (envelope-from kostikbel@gmail.com) Received: (from kostik@localhost) by deviant.kiev.zoral.com.ua (8.14.2/8.14.2/Submit) id m0FEdO05092931; Tue, 15 Jan 2008 16:39:24 +0200 (EET) (envelope-from kostikbel@gmail.com) X-Authentication-Warning: deviant.kiev.zoral.com.ua: kostik set sender to kostikbel@gmail.com using -f Date: Tue, 15 Jan 2008 16:39:24 +0200 From: Kostik Belousov To: Scot Hetzel Message-ID: <20080115143924.GB57756@deviant.kiev.zoral.com.ua> References: <790a9fff0801150552l542a4238ofc12efe5fdb45fc2@mail.gmail.com> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="LaOWr55S2G0Q4C4N" Content-Disposition: inline In-Reply-To: <790a9fff0801150552l542a4238ofc12efe5fdb45fc2@mail.gmail.com> User-Agent: Mutt/1.4.2.3i X-Scanner-Signature: 5fdc4a360edd9950fa55977ea4c6e665 X-DrWeb-checked: yes X-SpamTest-Envelope-From: kostikbel@gmail.com X-SpamTest-Group-ID: 00000000 X-SpamTest-Info: Profiles 1996 [Jan 15 2008] X-SpamTest-Info: helo_type=3 X-SpamTest-Info: {received from trusted relay: not dialup} X-SpamTest-Method: none X-SpamTest-Method: Local Lists X-SpamTest-Rate: 0 X-SpamTest-Status: Not detected X-SpamTest-Status-Extended: not_detected X-SpamTest-Version: SMTP-Filter Version 3.0.0 [0255], KAS30/Release Cc: freebsd-current@freebsd.org Subject: Re: panic: System call lstat returning with 1 locks held X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 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: Tue, 15 Jan 2008 14:39:34 -0000 --LaOWr55S2G0Q4C4N Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Tue, Jan 15, 2008 at 07:52:12AM -0600, Scot Hetzel wrote: > When I boot a Jan 13th or Jan 15th kernel, and then run > /usr/local/etc/cvsup/update.sh to update the local CVS repository, I > get the following panic: >=20 > panic: System call lstat returning with 1 locks held > cpuid =3D 0 > KDB: enter: panic > [thread ; pid 1240 tid 10031] > stopped at kdb_enter+0x3d: movq $0,0x41b048(%rip) > db> show alllocks > db> show locks > db> bt > tracing pid 1240 tid 10031 td 0xffffff001c1ad360 > kdb_enter() at kdb_enter+0x3d > panic() at panic+0x176 > syscalls() at syscalls+0x66d > Xfast_syscalls() at Xfast_syscalls+0xab > --- syscall (0, FreeBSD ELF64, nosys), rip =3D 0x8009e87ec, rsp=3D > 0x72ec50, rbp =3D 0x72ed28 --- >=20 I think this could be related to the recent vn_lock()/VOP_LOCK() KPI change= s. Please, add DEBUG_VFS_LOCKS to the kernel config, and do the show lockedvnods from the ddb prompt when the panic occurs. The witness does not track the lockmgr locks. > ---- > $ strings /boot/kernel_hp_debug/kernel | grep CURRENT > @(#)FreeBSD 8.0-CURRENT #0: Tue Jan 15 01:30:50 CST 2008 > FreeBSD 8.0-CURRENT #0: Tue Jan 15 01:30:50 CST 2008 > 8.0-CURRENT >=20 > $ strings /boot/kernel_hp_debug.old/kernel | grep CURRENT > @(#)FreeBSD 8.0-CURRENT #0: Sun Jan 13 13:12:56 CST 2008 > FreeBSD 8.0-CURRENT #0: Sun Jan 13 13:12:56 CST 2008 > 8.0-CURRENT > --- >=20 > When I try to look at the core file that gets generated, kgdb is > having problems reading it: >=20 > hp010# cd /sys/amd64/compile/DV8135NR > hp010# kgdb -n 14 kernel.debug > kgdb: kvm_read: invalid address (0x1050000) > [GDB will not be able to debug user-mode threads: > /usr/lib/libthread_db.so: Undefined symbol "ps_pglobal_lookup"] > GNU gdb 6.1.1 [FreeBSD] > Copyright 2004 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 conditi= ons. > Type "show copying" to see the conditions. > There is absolutely no warranty for GDB. Type "show warranty" for detail= s. > This GDB was configured as "amd64-marcel-freebsd". > Ready to go. Enter 'tr' to connect to the remote target > with /dev/cuad0, 'tr /dev/cuad1' to connect to a different port > or 'trf portno' to connect to the remote target with the firewire > interface. portno defaults to 5556. >=20 > Type 'getsyms' after connection to load kld symbols. >=20 > If you're debugging a local system, you can use 'kldsyms' instead > to load the kld symbols. That's a less obnoxious interface. > During symbol reading...location expression too complex... > During symbol reading, unsupported tag: 'DW_TAG_const_type'. > Cannot access memory at address 0x0 > (kgdb) >=20 > --- >=20 > A Jan 9th kernel doesn't exhibit this problem with lstat when > /usr/local/etc/cvsup/update.sh is run. >=20 > Any suggestions to isolate this problem? >=20 > Scot > options CONFIG_AUTOGENERATED > ident DV8135NR-debug > machine amd64 > cpu HAMMER > makeoptions KODIR=3D/boot/${KERNEL}_hp_debug > makeoptions DEBUG=3D-g > options INCLUDE_CONFIG_FILE > options WITNESS_SKIPSPIN > options WITNESS > options INVARIANT_SUPPORT > options INVARIANTS > options GDB > options DDB > options KDB > options ATA_STATIC_ID > options SMP > options AUDIT > options STOP_NMI > options KBD_INSTALL_CDEV > options _KPOSIX_PRIORITY_SCHEDULING > options SYSVSEM > options SYSVMSG > options SYSVSHM > options STACK > options KTRACE > options SCSI_DELAY=3D5000 > options COMPAT_FREEBSD7 > options COMPAT_FREEBSD6 > options COMPAT_FREEBSD5 > options COMPAT_FREEBSD4 > options COMPAT_IA32 > options COMPAT_43TTY > options GEOM_LABEL > options GEOM_PART_GPT > options PSEUDOFS > options PROCFS > options CD9660 > options MSDOSFS > options NTFS > options NFS_ROOT > options NFSSERVER > options NFSCLIENT > options MD_ROOT > options UFS_GJOURNAL > options UFS_DIRHASH > options UFS_ACL > options SOFTUPDATES > options FFS > options SCTP > options INET6 > options INET > options PREEMPTION > options SCHED_ULE > options KSE > options GEOM_MBR > options GEOM_BSD > device isa > device mem > device io > device uart_ns8250 > device cpufreq > device acpi > device pci > device fdc > device ata > device atadisk > device ataraid > device atapicd > device atapifd > device atapist > device scbus > device ch > device da > device sa > device cd > device pass > device ses > device atkbdc > device atkbd > device psm > device kbdmux > device vga > device splash > device sc > device agp > device cbb > device pccard > device cardbus > device sio > device uart > device miibus > device rl > device loop > device random > device ether > device sl > device ppp > device tun > device pty > device md > device gif > device faith > device firmware > device bpf > device uhci > device ohci > device ehci > device usb > device ugen > device uhid > device ukbd > device ulpt > device umass > device ums > device urio > device uscanner > device ucom > device uark > device ubsa > device ubser > device uftdi > device uipaq > device uplcom > device uvisor > device uvscom > device firewire > device sbp > device fwe > device fwip > device dcons > device dcons_crom > =00 > _______________________________________________ > freebsd-current@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-current > To unsubscribe, send any mail to "freebsd-current-unsubscribe@freebsd.org" --LaOWr55S2G0Q4C4N Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.8 (FreeBSD) iEYEARECAAYFAkeMxZwACgkQC3+MBN1Mb4jvBgCfW4lAizJW+I6Go7QN2t7Cmxry TWwAn39Ofd1Rnf5FKkI23qpojla4pBe0 =CcUE -----END PGP SIGNATURE----- --LaOWr55S2G0Q4C4N--