From owner-freebsd-current@FreeBSD.ORG Wed Mar 27 13:32:25 2013 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.freebsd.org (mx1.FreeBSD.org [8.8.178.115]) by hub.freebsd.org (Postfix) with ESMTP id 96555ECA; Wed, 27 Mar 2013 13:32:25 +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 0A7EAD4D; Wed, 27 Mar 2013 13:32:24 +0000 (UTC) Received: from tom.home (kostik@localhost [127.0.0.1]) by kib.kiev.ua (8.14.6/8.14.6) with ESMTP id r2RDWKHB072147; Wed, 27 Mar 2013 15:32:20 +0200 (EET) (envelope-from kostikbel@gmail.com) DKIM-Filter: OpenDKIM Filter v2.8.0 kib.kiev.ua r2RDWKHB072147 Received: (from kostik@localhost) by tom.home (8.14.6/8.14.6/Submit) id r2RDWKoL072146; Wed, 27 Mar 2013 15:32:20 +0200 (EET) (envelope-from kostikbel@gmail.com) X-Authentication-Warning: tom.home: kostik set sender to kostikbel@gmail.com using -f Date: Wed, 27 Mar 2013 15:32:20 +0200 From: Konstantin Belousov To: mh@kernel32.de Subject: Re: panic at serial boot Message-ID: <20130327133220.GZ3794@kib.kiev.ua> References: <515289AC.3050204@FreeBSD.org> <936608f069b988fcd58707edb9b4dde0@kernel32.de> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="fgtZULS2sMs/xlF6" Content-Disposition: inline In-Reply-To: <936608f069b988fcd58707edb9b4dde0@kernel32.de> 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, Andriy Gapon 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: Wed, 27 Mar 2013 13:32:25 -0000 --fgtZULS2sMs/xlF6 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Wed, Mar 27, 2013 at 01:56:29PM +0100, mh@kernel32.de wrote: > Am 2013-03-27 06:54, schrieb Andriy Gapon: > > on 27/03/2013 00:00 mh@kernel32.de said the following: > >> Hi Ho, > >> > >> I'm trying to install FreeBSD 10.0-CURRENT snapshot from 23.03.2013=20 > >> on a Dell > >> M620 blade. > >> However, I'm getting a panic and drop to db while booting. > >> > >> Looks like that: > >> > >> Root mount waiting for: usbus1 usbus0 > >> ugen0.2: at usbus0 > >> uhub2: >> 2> on usbus0 > >> ugen1.2: at usbus1 > >> uhub3: >> 2> on usbus1 > >> Root mount waiting for: usbus1 usbus0 > >> uhub2: 6 ports with 6 removable, self powered > >> uhub3: 8 ports with 8 removable, self powered > >> ugen0.3: at usbus0 > >> uhub4: >> addr 3> on usbus0 > >> Root mount waiting for: usbus1 usbus0 > >> ugen1.3: at usbus1 > >> ukbd0: on usbus1 > >> kbd0 at ukbd0 > >> kbd0: ukbd0, generic (0), config:0x0, flags:0x3d0000 > >> uhub4: 6 ports with 6 removable, self powered > >> Root mount waiting for: usbus0 > >> ugen0.4: at usbus0 > >> ukbd1: on usbus0 > >> kbd2 at ukbd1 > >> kbd2: ukbd1, generic (0), config:0x0, flags:0x3d0000 > >> Trying to mount root from ufs:/dev/md0 []... > >> start_init: trying /sbin/init > >> panic: vm_fault: fault on nofault entry, addr: ffffff80002be000 > >> cpuid =3D 15 > >> KDB: enter: panic > >> [ thread pid 4 tid 100101 ] > >> Stopped at kdb_enter+0x3e: movq $0,kdb_why > >> db> > >> > >> Any idea where to go from here? > >> > >> initially I tried 9.1-STABLE snapshot from the same date, but that=20 > >> one doesn't > >> even give serial output while booting. odd thing, but that's another= =20 > >> story. > >> > >> I just thought since I'm giving -current on this hardware a short=20 > >> and there is a > >> problem, it might be worth reporting. > >> Anything I should do? > > > > 'bt' command at the 'db>' prompt >=20 > Here we go: >=20 > db> bt > Tracing pid 5 tid 100109 td 0xfffffe00466bf920 > kdb_enter() at kdb_enter+0x3e/frame 0xffffff8688d3e340 > vpanic() at vpanic+0x147/frame 0xffffff8688d3e380 > panic() at panic+0x43/frame 0xffffff8688d3e3e0 > vm_fault_hold() at vm_fault_hold+0x14ac/frame 0xffffff8688d3e630 > vm_fault() at vm_fault+0x77/frame 0xffffff8688d3e670 > trap_pfault() at trap_pfault+0x207/frame 0xffffff8688d3e720 > trap() at trap+0x659/frame 0xffffff8688d3e930 > calltrap() at calltrap+0x8/frame 0xffffff8688d3e930 > --- trap 0xc, rip =3D 0xffffffff80c1a396, rsp =3D 0xffffff8688d3e9f0, rbp= =3D=20 > 0xffffff8688d3ea20 --- > bcopy() at bcopy+0x16/frame 0xffffff8688d3ea20 > md_kthread() at md_kthread+0x17d/frame 0xffffff8688d3ea70 > fork_exit() at fork_exit+0x84/frame 0xffffff8688d3eab0 > fork_trampoline() at fork_trampoline+0xe/frame 0xffffff8688d3eab0 > --- trap 0, rip =3D 0, rsp =3D 0xffffff8688d3eb70, rbp =3D 0 --- > db> >=20 > where to go from now? :) Do you use preload md(4) ? If yes, try the following patch: diff --git a/sys/dev/md/md.c b/sys/dev/md/md.c index d32ddb3..e871d8f 100644 --- a/sys/dev/md/md.c +++ b/sys/dev/md/md.c @@ -1008,7 +1008,15 @@ mdinit(struct md_s *sc) pp =3D g_new_providerf(gp, "md%d", sc->unit); pp->mediasize =3D sc->mediasize; pp->sectorsize =3D sc->sectorsize; - pp->flags |=3D G_PF_ACCEPT_UNMAPPED; + switch (sc->type) { + case MD_MALLOC: + case MD_VNODE: + case MD_SWAP: + pp->flags |=3D G_PF_ACCEPT_UNMAPPED; + break; + case MD_PRELOAD: + break; + } sc->gp =3D gp; sc->pp =3D pp; g_error_provider(pp, 0); --fgtZULS2sMs/xlF6 Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.19 (FreeBSD) iQIcBAEBAgAGBQJRUvTjAAoJEJDCuSvBvK1BZdUP/jP8JrGjrmt7KHQBOXZQXmZK vA0fhArX+PPGa/YHMLlnpTZF3/lyCwmwb9CXm+hozb5vJWvnisaqxfZ2AMMBMqFZ VYL5Y7fZdQPqj5EiLUjOvOQhQDWS+6+KOJflSSzyyH4stUzGPJY2FfTuPumZTZip iq8oVOrQxvF1dKgM7eI1oPPNYZiWLRwHnmDl1ExpNc/jG8YREaxn/azYqZxD0h8q CjFT3KH7QB+MIlFNDBp27Cm4/K+HXOaO+TyhsLE2iVTEW4KNUEi430447IfPe4i+ bVnck8YOgsKQN7CX5h8V5eVcYzKf32GtqWzHhz+fMCKGwKL4zPGCvrbht0qCLSUf 5xuB6x19/WCRnPgRjFO0uJB9mvThTJvQnGpYqa7I0GLtyXLVNLnW7l9knVjGaAJO 7M0t46/x7/7JLZIvXGo8jFuAdMp7a7SsaXMMqCimt4b0yFEx1LBo/j8JRJTeV/dz M4a5TlJ/BgyHwLIjZMA4rPXC3P/DDrq1Yp3XVWERGQ3Tp3ljvWqMfEvqqw1+Z0Tz Kow5Wiv2LkXhw7Cf6wvFgyQKeWUwRAtMSTd5g54d1NhXJEDav/ed3vu+QK+XTXWT B4FRUskyTAigUc1BbmyjE4Uv4YI3HlrO/iqk8zKMMMlR2FhU/MNLSz2ngHcQ6lJM hrC2THyKrGc+9lWkQY/l =wiGO -----END PGP SIGNATURE----- --fgtZULS2sMs/xlF6--