Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 8 Jan 2010 08:26:05 -0500
From:      John Baldwin <jhb@freebsd.org>
To:        freebsd-current@freebsd.org
Cc:        "Wilkinson, Alex" <alex.wilkinson@dsto.defence.gov.au>
Subject:   Re: Fatal trap 12: page fault while in kernel mode [SEC=UNCLASSIFIED]
Message-ID:  <201001080826.05461.jhb@freebsd.org>
In-Reply-To: <20100108061951.GA47507@stlux503.dsto.defence.gov.au>
References:  <20100105060748.GA16239@stlux503.dsto.defence.gov.au> <201001070935.52783.jhb@freebsd.org> <20100108061951.GA47507@stlux503.dsto.defence.gov.au>

next in thread | previous in thread | raw e-mail | index | archive | help
On Friday 08 January 2010 1:19:51 am Wilkinson, Alex wrote:
>=20
>     0n Thu, Jan 07, 2010 at 09:35:52AM -0500, John Baldwin wrote:=20
>=20
>     >Can you go to frame 9 and do 'p rv', 'p mpred', and 'p *mpred'?  Can=
=20
you also do 'p vm_reserv_array'
>=20
> (kgdb) up 9
> #9  0xc0b04452 in vm_reserv_alloc_page (object=3D0xc207c000, pindex=3D287=
95) at=20
/usr/src/sys/vm/vm_reserv.c:320
> 320			if (rv->object =3D=3D object && vm_reserv_has_pindex(rv, pindex)) {
> (kgdb) p rv
> $1 =3D 0xc445d060
> (kgdb) p *mpred
> $2 =3D {pageq =3D {tqe_next =3D 0xc75bb360, tqe_prev =3D 0xc75bb000}, lis=
tq =3D=20
{tqe_next =3D 0xc75bb360, tqe_prev =3D 0xc8595170}, left =3D 0xc7612a20, ri=
ght =3D=20
0xcb721d80, object =3D 0xc207c000,=20
>   pindex =3D 28989, phys_addr =3D 3876835328, md =3D {pv_list =3D {tqh_fi=
rst =3D 0x0,=20
tqh_last =3D 0x0}, pat_mode =3D 1}, queue =3D 0 '\0', segind =3D 0 '\0', fl=
ags =3D 152,=20
order =3D 0 '\0', pool =3D 0 '\0',=20
>   cow =3D 0, wire_count =3D 1, hold_count =3D 0, oflags =3D 0, act_count =
=3D 0 '\0',=20
busy =3D 0 '\0', valid =3D 255 '=FF', dirty =3D 255 '=FF'}
> (kgdb) p vm_reserv_array
> $3 =3D 0xc4454000
> (kgdb)=20

Can you add a printf to vm_reserv_startup() to print out the size it=20
calculates and then boot a kernel with that and reply with the size it=20
computes?

=2D-=20
John Baldwin



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