From owner-freebsd-current@FreeBSD.ORG Fri Nov 30 16:47:24 2012 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 1274A4E0; Fri, 30 Nov 2012 16:47:24 +0000 (UTC) (envelope-from kostikbel@gmail.com) Received: from kib.kiev.ua (kib.kiev.ua [IPv6:2001:470:d5e7:1::1]) by mx1.freebsd.org (Postfix) with ESMTP id 9DEBB8FC08; Fri, 30 Nov 2012 16:47:23 +0000 (UTC) Received: from tom.home (localhost [127.0.0.1]) by kib.kiev.ua (8.14.5/8.14.5) with ESMTP id qAUGlGo8028201; Fri, 30 Nov 2012 18:47:16 +0200 (EET) (envelope-from kostikbel@gmail.com) DKIM-Filter: OpenDKIM Filter v2.7.1 kib.kiev.ua qAUGlGo8028201 Received: (from kostik@localhost) by tom.home (8.14.5/8.14.5/Submit) id qAUGlFdd028200; Fri, 30 Nov 2012 18:47:15 +0200 (EET) (envelope-from kostikbel@gmail.com) X-Authentication-Warning: tom.home: kostik set sender to kostikbel@gmail.com using -f Date: Fri, 30 Nov 2012 18:47:15 +0200 From: Konstantin Belousov To: sig6247 Subject: Re: clang compiled kernel panic when mounting zfs root on i386 Message-ID: <20121130164715.GW3013@kib.kiev.ua> References: <50b37d46.8584440a.735c.ffffb4e6@mx.google.com> <20121126171658.GD3013@kib.kiev.ua> <20121127071243.D1255@besplex.bde.org> <20121129232944.GQ3013@kib.kiev.ua> <50b8a9c5.e64dec0a.1d88.133a@mx.google.com> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="iwX7oKFvAj2SwWc7" Content-Disposition: inline In-Reply-To: <50b8a9c5.e64dec0a.1d88.133a@mx.google.com> User-Agent: Mutt/1.5.21 (2010-09-15) X-Spam-Status: No, score=-2.0 required=5.0 tests=ALL_TRUSTED,BAYES_00, DKIM_ADSP_CUSTOM_MED,FREEMAIL_FROM,NML_ADSP_CUSTOM_MED autolearn=no version=3.3.2 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on tom.home Cc: freebsd-current@freebsd.org, Bruce Evans , fs@freebsd.org X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.14 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: Fri, 30 Nov 2012 16:47:24 -0000 --iwX7oKFvAj2SwWc7 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Fri, Nov 30, 2012 at 04:42:45AM -0800, sig6247 wrote: > On Fri, 30 Nov 2012 01:29:44 +0200, Konstantin Belousov wrote: >=20 > > Please apply the patch below and obtain the backtrace of the double fau= lt > > panic again. I will commit the patch later. >=20 > Thanks for the patch.=20 >=20 > WARNING: WITNESS option enabled, expect reduced performance. > Trying to mount root from zfs:zroot []... >=20 > Fatal double fault: > eip =3D 0xc0e93e07 > esp =3D 0xc86bffbc > ebp =3D 0xc86c0032 > cpuid =3D 1; apic id =3D 01 > panic: double fault > cpuid =3D 1 > KDB: enter: panic > [ thread pid 1 tid 100002 ] > Stopped at kdb_enter+0x3d: movl $0,kdb_why > db> bt > Tracing pid 1 tid 100002 td 0xc89efbc0 > kdb_enter(c1065960,c1065960,c10b903b,c139f438,aef01785,...) at kdb_enter+= 0x3d/frame 0xc139f3f0 > panic(c10b903b,1,1,1,c86c0032,...) at panic+0x14b/frame 0xc139f42c > dblfault_handler() at dblfault_handler+0xab/frame 0xc139f42c > --- trap 0x17, eip =3D 0xc0e93e07, esp =3D 0xc86bffbc, ebp =3D 0xc86c0032= --- > __qdivrem(0,aba80000,c10d,98600000,68c119,...) at __qdivrem+0x197/frame 0= xc86c0032 > db>=20 Hm, this is not very useful. Although the panic is again caused by the stack overflow, most likely (please also include the output of the "show thread" =66rom ddb), it is at different place, and probably at the leaf function. Can you try some more times, so that we could see 'big' backtrace ? --iwX7oKFvAj2SwWc7 Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.19 (FreeBSD) iQIcBAEBAgAGBQJQuOMTAAoJEJDCuSvBvK1Bfb4QAKfQlzWqbvLNxc0iMg7NQlJ8 ZlJanY91GWIuZbgtSYSwkLZ0mJ0xhHgCRGJLFnVncZGY56bPmIDnkV0h776RY7RU 2fH1BI2QLCEVqRH/y4n3uoJZRfdZ2xrqRuvw3qkWQ5xUbMgTFZamckv1Z0rTsp9w NKwzFcWBGvZeioJJALMDbKr4FtmPeFK1K61aQlAL2WzwbTn7xd3Iqs9CrMm8oUEi FMl3mHajW61g2dYY1LwxEpR4/GnMmJARFqMRugN68W0PyfXvYfX7QFJcL/TuZZHS 3pl3fvVIR00sCmEwT1xYyI4Q9oF/5Hs5ybFFFBkLX0CABXyVoAZbUo/Z+JldM6SQ VgjMF+qucbcacBCYerSXjTQv0Hv+3P4ALMepJBuwiE/DCwnWe4UO3LhpUx1rVR5X 8siL9sE4u0qkyxirti7TTlOQS30MEneyYtybNQaiY3cn5YCrCy5otovc047hd65w JIX6I5R0ZS84KoXQe/gfyOcWz87zfFInVfRWevz62x7rfQqF3srlIenpfE1d0ZP1 qRYKGZcRiR02RACoLerlTKukj6ZzXK0XXTt84GZaqzUZvb3tzYS6e22gAEKRd7T6 xcvNILDcPaUHRRLr8+OPGPJNj0ZpKkeGT9EtVWSXBz+Sy+v7jB+nF8Yw4Y85DvnO 4UPihvsOQq9VptkFTkn0 =rLF0 -----END PGP SIGNATURE----- --iwX7oKFvAj2SwWc7--