Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 27 Mar 2013 15:32:20 +0200
From:      Konstantin Belousov <kostikbel@gmail.com>
To:        mh@kernel32.de
Cc:        freebsd-current@freebsd.org, Andriy Gapon <avg@freebsd.org>
Subject:   Re: panic at serial boot
Message-ID:  <20130327133220.GZ3794@kib.kiev.ua>
In-Reply-To: <936608f069b988fcd58707edb9b4dde0@kernel32.de>
References:  <e755813a47d9e5a05dd2d308a6b3d8a9@kernel32.de> <515289AC.3050204@FreeBSD.org> <936608f069b988fcd58707edb9b4dde0@kernel32.de>

next in thread | previous in thread | raw e-mail | index | archive | help

--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: <vendor 0x8087> at usbus0
> >> uhub2: <vendor 0x8087 product 0x0024, class 9/0, rev 2.00/0.00, addr=
=20
> >> 2> on usbus0
> >> ugen1.2: <vendor 0x8087> at usbus1
> >> uhub3: <vendor 0x8087 product 0x0024, class 9/0, rev 2.00/0.00, addr=
=20
> >> 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: <no manufacturer> at usbus0
> >> uhub4: <no manufacturer Gadget USB HUB, class 9/0, rev 2.00/0.00,=20
> >> addr 3> on usbus0
> >> Root mount waiting for: usbus1 usbus0
> >> ugen1.3: <Avocent> at usbus1
> >> ukbd0: <EP1 Interrupt> 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: <Avocent> at usbus0
> >> ukbd1: <Keyboard> 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--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20130327133220.GZ3794>