From owner-freebsd-current@FreeBSD.ORG Sat Aug 29 20:57:48 2009 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 44168106564A for ; Sat, 29 Aug 2009 20:57:48 +0000 (UTC) (envelope-from kostikbel@gmail.com) Received: from mail.zoral.com.ua (skuns.zoral.com.ua [91.193.166.194]) by mx1.freebsd.org (Postfix) with ESMTP id D1AE98FC18 for ; Sat, 29 Aug 2009 20:57:47 +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 n7TKvOFW050272 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Sat, 29 Aug 2009 23:57:24 +0300 (EEST) (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.3/8.14.3) with ESMTP id n7TKvOwg081129; Sat, 29 Aug 2009 23:57:24 +0300 (EEST) (envelope-from kostikbel@gmail.com) Received: (from kostik@localhost) by deviant.kiev.zoral.com.ua (8.14.3/8.14.3/Submit) id n7TKvNWT081128; Sat, 29 Aug 2009 23:57:23 +0300 (EEST) (envelope-from kostikbel@gmail.com) X-Authentication-Warning: deviant.kiev.zoral.com.ua: kostik set sender to kostikbel@gmail.com using -f Date: Sat, 29 Aug 2009 23:57:23 +0300 From: Kostik Belousov To: Andreas Tobler Message-ID: <20090829205723.GW1881@deviant.kiev.zoral.com.ua> References: <4A997442.1060200@fgznet.ch> <20090829183906.GS1881@deviant.kiev.zoral.com.ua> <4A9988ED.2040403@fgznet.ch> <20090829201614.GU1881@deviant.kiev.zoral.com.ua> <4A999344.5000703@fgznet.ch> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="UTjKcilERHWBCdCp" Content-Disposition: inline In-Reply-To: <4A999344.5000703@fgznet.ch> 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=-4.4 required=5.0 tests=ALL_TRUSTED,AWL,BAYES_00 autolearn=ham version=3.2.5 X-Spam-Checker-Version: SpamAssassin 3.2.5 (2008-06-10) on skuns.kiev.zoral.com.ua Cc: freebsd-current Subject: Re: Boot panic -CURRENT #196643 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: Sat, 29 Aug 2009 20:57:48 -0000 --UTjKcilERHWBCdCp Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Sat, Aug 29, 2009 at 10:44:52PM +0200, Andreas Tobler wrote: > Kostik Belousov wrote: > >On Sat, Aug 29, 2009 at 10:00:45PM +0200, Andreas Tobler wrote: > >>Kostik Belousov wrote: > >>>On Sat, Aug 29, 2009 at 08:32:34PM +0200, Andreas Tobler wrote: > >>>>Hello, > >>>> > >>>>I synced the sources today to #196643. > >>>Try 196644. > >>[tc:head/src/sys] andreast% svn info > >>Path: . > >>URL: svn://svn.freebsd.org/base/head/sys > >>Repository Root: svn://svn.freebsd.org/base > >>Repository UUID: ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f > >>Revision: 196644 > >>Node Kind: directory > >>Schedule: normal > >>Last Changed Author: kib > >>Last Changed Rev: 196644 > >>Last Changed Date: 2009-08-29 20:01:02 +0200 (Sat, 29 Aug 2009) > >> > >>Still the same, as below. > >> > >>But with WITNESS etc. on: > >> > >>I get this panic: > >>--- > >>Trying to mount root from zfs:zroot > >>panic: thread_alloc got thread with kstack > >>cpuid =3D 0 > >>KDB: enter: panic > >>[thread pid 1 tid 100002 ] > >>Stopped at kdb_enter+0x3a: movl $0,kdb_why > >Can you show me the backtrace (from ddb) ? >=20 > I would like, yes, but as I said, the keyboard is not functional at this= =20 > moment, it would be activated after this mount. >=20 > Do I have other possibilties to get in connection with this machine? >=20 >=20 >=20 > >>>>And built a kernel with WITNESS etc. off. > >>>> > >>>>My boot partition sits on zfs. > >>>> > >>>>I get the below panic. Unfortunately I can't bt since the usb keyboar= d=20 > >>>>ist not functional at this moment. > >>>> > >>>>--- > >>>>Trying to mount root from zfs:zroot > >>>>spin lock 0x80dccc00 (sched lock 1) held by 0x8595baf0 (tid 100003) t= oo=20 > >>>>long > >>>>panic: spin lock held too long > >>>>cpuid =3D 0 > >>>>KDB: enter: panic > >>>>[thread pid 1 tid 100002 ] > >>>>Stopped at kdb_enter+0x3a: movl $0,kdb_why > >>>>--- > >>>> > >>>>Unfortunately I can't say exactly which version the previous, working= ,=20 > >>>>kernel has. The svn nbr has gone. (I have this subversion: > >>>>subversion-freebsd-1.6.5) > >>This question is still open. > > > >r196639 will work for you. >=20 > :) I'll need a quick eye on it then. Please, try this. diff --git a/sys/vm/vm_glue.c b/sys/vm/vm_glue.c index 234cde9..b0e8d3c 100644 --- a/sys/vm/vm_glue.c +++ b/sys/vm/vm_glue.c @@ -447,6 +447,8 @@ vm_thread_dispose(struct thread *td) pages =3D td->td_kstack_pages; ksobj =3D td->td_kstack_obj; ks =3D td->td_kstack; + td->td_kstack =3D 0; + td->td_kstack_pages =3D 0; if (pages =3D=3D KSTACK_PAGES && kstacks <=3D kstack_cache_size) { ks_ce =3D (struct kstack_cache_entry *)ks; ks_ce->ksobj =3D ksobj; @@ -457,8 +459,6 @@ vm_thread_dispose(struct thread *td) return; } vm_thread_stack_dispose(ksobj, ks, pages); - td->td_kstack =3D 0; - td->td_kstack_pages =3D 0; } =20 static void --UTjKcilERHWBCdCp Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.9 (FreeBSD) iEYEARECAAYFAkqZljMACgkQC3+MBN1Mb4ijTQCfRbU5tMk+RPNu0uEjGHyeoejn D9AAn0yeIwDxVmi/jUxHgJ3tSwHG2dsp =ThMF -----END PGP SIGNATURE----- --UTjKcilERHWBCdCp--