From owner-freebsd-current@FreeBSD.ORG Wed Aug 11 17:49:33 2010 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 1C2E21065678 for ; Wed, 11 Aug 2010 17:49:33 +0000 (UTC) (envelope-from alan.l.cox@gmail.com) Received: from mail-qw0-f54.google.com (mail-qw0-f54.google.com [209.85.216.54]) by mx1.freebsd.org (Postfix) with ESMTP id C05CF8FC12 for ; Wed, 11 Aug 2010 17:49:32 +0000 (UTC) Received: by qwg5 with SMTP id 5so455925qwg.13 for ; Wed, 11 Aug 2010 10:49:32 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:received:reply-to :in-reply-to:references:date:message-id:subject:from:to:cc :content-type; bh=QXfuFEZgh/gccTJhZV6r2yXtMVo9L3lINhGWfYiCiNE=; b=x86VEZQh1mQ2+WC5iBBEhNsPiq95rxJKwZcxP4B/vmb4uytgQPVntIcJDSBPSmSWr4 /LoUkuazr2XEwYv15tFHmWq4JlkhshHpXbaFdqIQJBZ9M9zXBtKcmXj0VFPmhgn4IaGx bhncKCxaBSaPryyvli1vnBQDVQafESjlR4Ucs= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:reply-to:in-reply-to:references:date:message-id :subject:from:to:cc:content-type; b=vp4Oj5zvtfHtwbDEQDHTtFtPFy1vk2kOBpzri7si2GpifJ7mbQqau2nA6+OivCauep I8HPBzzgVNxkqI8DQRXi7THE+3PF+7lognWj+AlSql+Eh4tNc6k0sWt+jNHyauNTrHNm vyPP/75NfBDOSxFkSoEW/4HZ4HYNBMNufXAVI= MIME-Version: 1.0 Received: by 10.224.37.78 with SMTP id w14mr10884097qad.75.1281547517840; Wed, 11 Aug 2010 10:25:17 -0700 (PDT) Received: by 10.229.46.73 with HTTP; Wed, 11 Aug 2010 10:25:17 -0700 (PDT) In-Reply-To: <201008101443.o7AEhfFl075942@lurza.secnetix.de> References: <201008101443.o7AEhfFl075942@lurza.secnetix.de> Date: Wed, 11 Aug 2010 12:25:17 -0500 Message-ID: From: Alan Cox To: Oliver Fromme Content-Type: text/plain; charset=ISO-8859-1 X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Cc: freebsd-current@freebsd.org Subject: Re: page fault in pmap_remove_all X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: alc@freebsd.org List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 11 Aug 2010 17:49:33 -0000 On Tue, Aug 10, 2010 at 9:43 AM, Oliver Fromme wrote: > Hi, > > This is i386 -current as of 2010-08-04. > It was building the toolchain for amd64 when it happened. > I'll keep the vmcore around, so I can dig more into it > if someone tells me what to do. > > GNU gdb 6.1.1 [FreeBSD] > Copyright 2004 Free Software Foundation, Inc. > GDB is free software, covered by the GNU General Public License, and you > are > welcome to change it and/or distribute copies of it under certain > conditions. > Type "show copying" to see the conditions. > There is absolutely no warranty for GDB. Type "show warranty" for details. > This GDB was configured as "i386-marcel-freebsd"... > > Unread portion of the kernel message buffer: > > > Fatal trap 12: page fault while in kernel mode > fault virtual address = 0x0 > fault code = supervisor write, page not present > instruction pointer = 0x20:0xc083bc86 > stack pointer = 0x28:0xe50a1a94 > frame pointer = 0x28:0xe50a1ac4 > code segment = base 0x0, limit 0xfffff, type 0x1b > = DPL 0, pres 1, def32 1, gran 1 > processor eflags = interrupt enabled, resume, IOPL = 0 > current process = 5785 (install) > trap number = 12 > panic: page fault > Uptime: 6h13m9s > Physical memory: 951 MB > Dumping 182 MB: 167 151 135 119 103 87 71 55 39 23 7 > > #0 doadump () at pcpu.h:231 > 231 __asm("movl %%fs:0,%0" : "=r" (td)); > (kgdb) list *0xc083bc86 > 0xc083bc86 is in pmap_remove_all (atomic.h:318). > 313 atomic_readandclear_int(volatile u_int *addr) > 314 { > 315 u_int res; > 316 > 317 res = 0; > 318 __asm __volatile( > 319 " xchgl %1,%0 ; " > 320 "# atomic_readandclear_int" > 321 : "+r" (res), /* 0 */ > 322 "=m" (*addr) /* 1 */ > (kgdb) backtrace > #0 doadump () at pcpu.h:231 > #1 0xc05daef0 in boot (howto=260) at /usr/src/sys/kern/kern_shutdown.c:416 > #2 0xc05db11d in panic (fmt=Variable "fmt" is not available. > ) at /usr/src/sys/kern/kern_shutdown.c:590 > #3 0xc0840583 in trap_fatal (frame=0xe50a1a54, eva=0) > at /usr/src/sys/i386/i386/trap.c:945 > #4 0xc08407d0 in trap_pfault (frame=0xe50a1a54, usermode=0, eva=0) > at /usr/src/sys/i386/i386/trap.c:858 > #5 0xc0840cf3 in trap (frame=0xe50a1a54) at > /usr/src/sys/i386/i386/trap.c:533 > #6 0xc082ce2c in calltrap () at /usr/src/sys/i386/i386/exception.s:166 > #7 0xc083bc86 in pmap_remove_all (m=0xc150e9e8) at atomic.h:318 > #8 0xc07e9544 in vm_fault (map=0xc38463c0, vaddr=684290048, > fault_type=1 '\001', fault_flags=Variable "fault_flags" is not > available. > ) at /usr/src/sys/vm/vm_fault.c:499 > #9 0xc08406c0 in trap_pfault (frame=0xe50a1d28, usermode=1, eva=684290048) > at /usr/src/sys/i386/i386/trap.c:837 > #10 0xc0840b5e in trap (frame=0xe50a1d28) at > /usr/src/sys/i386/i386/trap.c:399 > #11 0xc082ce2c in calltrap () at /usr/src/sys/i386/i386/exception.s:166 > #12 0x0804858c in ?? () > Previous frame inner to this frame (corrupt stack?) > (kgdb) > > If at all possible, I would like to know the value of "pv->pv_va" in pmap_remove_all(). Regards, Alan