From owner-freebsd-hackers@FreeBSD.ORG Fri Mar 26 19:57:13 2010 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id AD07C1065678 for ; Fri, 26 Mar 2010 19:57:13 +0000 (UTC) (envelope-from kostikbel@gmail.com) Received: from mail.zoral.com.ua (mx0.zoral.com.ua [91.193.166.200]) by mx1.freebsd.org (Postfix) with ESMTP id 46D0B8FC1B for ; Fri, 26 Mar 2010 19:57:12 +0000 (UTC) Received: from deviant.kiev.zoral.com.ua (root@deviant.kiev.zoral.com.ua [10.1.1.148]) by mail.zoral.com.ua (8.14.2/8.14.2) with ESMTP id o2QJv0Hg090845 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Fri, 26 Mar 2010 21:57:00 +0200 (EET) (envelope-from kostikbel@gmail.com) Received: from deviant.kiev.zoral.com.ua (kostik@localhost [127.0.0.1]) by deviant.kiev.zoral.com.ua (8.14.4/8.14.4) with ESMTP id o2QJuxFX091480; Fri, 26 Mar 2010 21:56:59 +0200 (EET) (envelope-from kostikbel@gmail.com) Received: (from kostik@localhost) by deviant.kiev.zoral.com.ua (8.14.4/8.14.4/Submit) id o2QJuxfH091479; Fri, 26 Mar 2010 21:56:59 +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: Fri, 26 Mar 2010 21:56:59 +0200 From: Kostik Belousov To: Tom Judge Message-ID: <20100326195659.GU2415@deviant.kiev.zoral.com.ua> References: <4BACF92E.60600@tomjudge.com> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="5M2fOMh7RWu7idz2" Content-Disposition: inline In-Reply-To: <4BACF92E.60600@tomjudge.com> User-Agent: Mutt/1.4.2.3i X-Virus-Scanned: clamav-milter 0.95.2 at skuns.kiev.zoral.com.ua X-Virus-Status: Clean X-Spam-Status: No, score=-2.5 required=5.0 tests=ALL_TRUSTED,AWL,BAYES_50, DNS_FROM_OPENWHOIS autolearn=no version=3.2.5 X-Spam-Checker-Version: SpamAssassin 3.2.5 (2008-06-10) on skuns.kiev.zoral.com.ua Cc: freebsd-hackers@freebsd.org Subject: Re: Panic in vm_map_stack X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 26 Mar 2010 19:57:14 -0000 --5M2fOMh7RWu7idz2 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Fri, Mar 26, 2010 at 06:13:02PM +0000, Tom Judge wrote: > -----BEGIN PGP SIGNED MESSAGE----- > Hash: SHA1 >=20 > Hi, >=20 > I am seeing the following rare but re occurring panic in the > vm_map_stack code. >=20 > I have the core file and symbols available should more information be > required. >=20 > Tom >=20 > - ---- >=20 >=20 > > $ uname -a > FreeBSD XXX 7.1-RELEASE-p4 FreeBSD 7.1-RELEASE-p4 #0 @718:841: Mon Feb > 8 20:14:39 UTC 2010 tj@XXX:/usr/obj/usr/src/sys/XXXv8 amd64 >=20 >=20 > > $ kgdb /boot/kernel/kernel /var/crash/vmcore.0 > 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 > conditions. > 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"... >=20 > Unread portion of the kernel message buffer: > Sleeping thread (tid 100119, pid 1554) owns a non-sleepable lock > panic: sleeping thread > cpuid =3D 0 > Uptime: 44d17h36m22s > Physical memory: 32746 MB > Dumping 1467 MB: 1452 1436 1420 1404 1388 1372 1356 1340 1324 1308 1292 > 1276 1260 1244 1228 1212 1196 1180 1164 1148 1132 1116 1100 1084 1068 > 1052 1036 1020 1004 988 972 956 940 924 908 892 876 860 844 828 812 796 > 780 764 748 732 716 700 684 668 652 636 620 604 588 572 556 540 524 508 > 492 476 460 444 428 412 396 380 364 348 332 316 300 284 268 252 236 220 > 204 188 172 156 140 124 108 92 76 60 44 28 12 >=20 > #0 doadump () at pcpu.h:195 > 195 pcpu.h: No such file or directory. > in pcpu.h > (kgdb) bt > #0 doadump () at pcpu.h:195 > #1 0x0000000000000004 in ?? () > #2 0xffffffff8048e2a9 in boot (howto=3D260) at > /usr/src/sys/kern/kern_shutdown.c:418 > #3 0xffffffff8048e6b2 in panic (fmt=3D0x104
bounds>) at /usr/src/sys/kern/kern_shutdown.c:574 > #4 0xffffffff804c4a95 in propagate_priority (td=3DVariable "td" is not > available. > ) at /usr/src/sys/kern/subr_turnstile.c:222 > #5 0xffffffff804c58a5 in turnstile_wait (ts=3DVariable "ts" is not avail= able. > ) at /usr/src/sys/kern/subr_turnstile.c:740 > #6 0xffffffff804816af in _mtx_lock_sleep (m=3D0xffffff0654567118, > tid=3D18446742976254672896, opts=3DVariable "opts" is not available. > ) at /usr/src/sys/kern/kern_mutex.c:420 > #7 0xffffffff80646057 in vm_map_stack (map=3D0xffffff000447cd00, > addrbos=3D140736951484416, max_ssize=3D536870912, prot=3D7 '\a', max=3D7 = '\a', > cow=3D4096) at /usr/src/sys/vm/vm_map.c:2722 > #8 0xffffffff80467115 in exec_new_vmspace (imgp=3D0xffffffffb92b4a10, > sv=3D0xffffffff809b0a40) at /usr/src/sys/kern/kern_exec.c:971 > #9 0xffffffff8044e534 in exec_elf64_imgact (imgp=3D0xffffffffb92b4a10) at > /usr/src/sys/kern/imgact_elf.c:680 > #10 0xffffffff80467532 in kern_execve (td=3D0xffffff007a978000, > args=3D0xffffffffb92b4b00, mac_p=3DVariable "mac_p" is not available. > ) at /usr/src/sys/kern/kern_exec.c:432 > #11 0xffffffff80468477 in execve (td=3D0xffffff007a978000, uap=3DVariable > "uap" is not available. > ) at /usr/src/sys/kern/kern_exec.c:201 > #12 0xffffffff806d8217 in syscall (frame=3D0xffffffffb92b4c80) at > /usr/src/sys/amd64/amd64/trap.c:907 > #13 0xffffffff806be2db in Xfast_syscall () at > /usr/src/sys/amd64/amd64/exception.S:330 > #14 0x000000080091bcec in ?? () > Previous frame inner to this frame (corrupt stack?) > (kgdb) Switch to the thread 100119, and get a backtrace for it. You can look up the kgdb thread number by kernel tid by issuing "threads" command. --5M2fOMh7RWu7idz2 Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.10 (FreeBSD) iEYEARECAAYFAkutEYsACgkQC3+MBN1Mb4hBiACggNIr42bfQBZn0EUUnssQOMIO JZAAnjaa9HizVhgNBfymQ4NXKhrlNss7 =NF/w -----END PGP SIGNATURE----- --5M2fOMh7RWu7idz2--