From owner-freebsd-current@FreeBSD.ORG Wed May 23 23:24:31 2007 Return-Path: X-Original-To: Current@freebsd.org 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 D9CED16A46B for ; Wed, 23 May 2007 23:24:31 +0000 (UTC) (envelope-from marcus@marcuscom.com) Received: from creme-brulee.marcuscom.com (creme-brulee.marcuscom.com [24.172.16.118]) by mx1.freebsd.org (Postfix) with ESMTP id 7DDD713C45A for ; Wed, 23 May 2007 23:24:31 +0000 (UTC) (envelope-from marcus@marcuscom.com) Received: from [IPv6:2001:470:1f00:2464::4] (shumai.marcuscom.com [IPv6:2001:470:1f00:2464::4]) by creme-brulee.marcuscom.com (8.14.1/8.14.1) with ESMTP id l4NNOi1p061699; Wed, 23 May 2007 19:24:44 -0400 (EDT) (envelope-from marcus@marcuscom.com) From: Joe Marcus Clarke To: Current@freebsd.org Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="=-GIjLUVlPxdN9UJA7LdhQ" Organization: MarcusCom, Inc. Date: Wed, 23 May 2007 19:24:23 -0400 Message-Id: <1179962663.75721.6.camel@shumai.marcuscom.com> Mime-Version: 1.0 X-Mailer: Evolution 2.10.1 FreeBSD GNOME Team Port X-Spam-Status: No, score=-2.6 required=5.0 tests=BAYES_00,NO_RELAYS autolearn=ham version=3.1.8 X-Spam-Checker-Version: SpamAssassin 3.1.8 (2007-02-13) on creme-brulee.marcuscom.com Cc: Subject: Panic on -CURRENT after LDT changes 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: Wed, 23 May 2007 23:24:31 -0000 --=-GIjLUVlPxdN9UJA7LdhQ Content-Type: text/plain Content-Transfer-Encoding: quoted-printable On a -CURRENT build today with Jeff's LDT locking changes, I get an instant, reproducible panic by doing: # cd /usr/src # make -DNO_CLEAN buildworld Backing out the LDT changes to /sys/i386/i386/*machdep* corrects the problem. Here is a dmesg and backtrace. In frame 6, it appears mdp is NULL (i.e. td->td_proc->p_md =3D 0x0). http://www.marcuscom.com/downloads/JCLARKE-PC_dump.txt Unread portion of the kernel message buffer: kernel trap 12 with interrupts disabled Fatal trap 12: page fault while in kernel mode fault virtual address =3D 0x4 fault code =3D supervisor read, page not present instruction pointer =3D 0x20:0xc0723195 stack pointer =3D 0x28:0xe768dbf4 frame pointer =3D 0x28:0xe768dc20 code segment =3D base 0x0, limit 0xfffff, type 0x1b =3D DPL 0, pres 1, def32 1, gran 1 processor eflags =3D resume, IOPL =3D 0 current process =3D 1025 (make) trap number =3D 12 panic: page fault Uptime: 2m37s Physical memory: 2022 MB Dumping 65 MB: 50 34 18 2 #0 doadump () at pcpu.h:172 #1 0xc0562c93 in boot (howto=3D260) at /usr/src/sys/kern/kern_shutdown.c:409 #2 0xc0562f18 in panic (fmt=3DVariable "fmt" is not available. #3 0xc07240b2 in trap_fatal (frame=3D0xe768dbb4, eva=3D4) at /usr/src/sys/i386/i386/trap.c:876 #4 0xc07249a3 in trap (frame=3D0xe768dbb4) at /usr/src/sys/i386/i386/trap.c:276 #5 0xc070de5b in calltrap () at /usr/src/sys/i386/i386/exception.s:139 #6 0xc0723195 in i386_ldt_grow (td=3DVariable "td" is not available. ) at /usr/src/sys/i386/i386/sys_machdep.c:704 #7 0xc072350a in i386_set_ldt (td=3D0xc4fccbd0, uap=3D0xe768dc68, descs=3D0xe76f3000) at /usr/src/sys/i386/i386/sys_machdep.c:631 #8 0xc0723a44 in sysarch (td=3D0xc4fccbd0, uap=3D0xe768dcfc) at /usr/src/sys/i386/i386/sys_machdep.c:134 #9 0xc0724645 in syscall (frame=3D0xe768dd38) at /usr/src/sys/i386/i386/trap.c:1016 #10 0xc070dec0 in Xint0x80_syscall () at /usr/src/sys/i386/i386/exception.s:196 #11 0x00000033 in ?? () Joe --=20 PGP Key : http://www.marcuscom.com/pgp.asc --=-GIjLUVlPxdN9UJA7LdhQ Content-Type: application/pgp-signature; name=signature.asc Content-Description: This is a digitally signed message part -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.7 (FreeBSD) iD8DBQBGVM0lb2iPiv4Uz4cRAggGAJ9eNaU0YEfxr94mImTxGGfgO8j8QgCdEKEr VCo153OGzCyY6HYv69ILUQ0= =Txdr -----END PGP SIGNATURE----- --=-GIjLUVlPxdN9UJA7LdhQ--