From owner-freebsd-current@FreeBSD.ORG Sun May 16 19:26:50 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 116691065673; Sun, 16 May 2010 19:26:50 +0000 (UTC) (envelope-from alc@cs.rice.edu) Received: from mail.cs.rice.edu (mail.cs.rice.edu [128.42.1.31]) by mx1.freebsd.org (Postfix) with ESMTP id D0A958FC18; Sun, 16 May 2010 19:26:49 +0000 (UTC) Received: from mail.cs.rice.edu (localhost.localdomain [127.0.0.1]) by mail.cs.rice.edu (Postfix) with ESMTP id 3EA8E2C2A81; Sun, 16 May 2010 14:26:49 -0500 (CDT) X-Virus-Scanned: by amavis-2.4.0 at mail.cs.rice.edu Received: from mail.cs.rice.edu ([127.0.0.1]) by mail.cs.rice.edu (mail.cs.rice.edu [127.0.0.1]) (amavisd-new, port 10024) with LMTP id IJD8U1qADvuv; Sun, 16 May 2010 14:26:41 -0500 (CDT) Received: from adsl-216-63-78-18.dsl.hstntx.swbell.net (adsl-216-63-78-18.dsl.hstntx.swbell.net [216.63.78.18]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mail.cs.rice.edu (Postfix) with ESMTP id 40C1A2C2AAC; Sun, 16 May 2010 14:26:41 -0500 (CDT) Message-ID: <4BF046F0.7070007@cs.rice.edu> Date: Sun, 16 May 2010 14:26:40 -0500 From: Alan Cox User-Agent: Thunderbird 2.0.0.24 (X11/20100501) MIME-Version: 1.0 To: Benjamin Kaduk References: <20100514053907.GL83316@deviant.kiev.zoral.com.ua> <4BED8ADE.1030100@cs.rice.edu> In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: Kostik Belousov , alc@freebsd.org, freebsd-current@freebsd.org Subject: Re: kgdb unuseable with cores on current (for some people) 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: Sun, 16 May 2010 19:26:50 -0000 Benjamin Kaduk wrote: > On Fri, 14 May 2010, Benjamin Kaduk wrote: > >> On Fri, 14 May 2010, Alan Cox wrote: >> >>> >>> I suspect the following is needed: >>> >>> Index: vm/vm_page.c >>> =================================================================== >>> --- vm/vm_page.c (revision 207823) >>> +++ vm/vm_page.c (working copy) >>> @@ -108,6 +108,7 @@ __FBSDID("$FreeBSD$"); >>> #include >>> #include >>> #include >>> +#include >>> #include >>> #include >>> #include >>> @@ -375,6 +376,14 @@ vm_page_startup(vm_offset_t vaddr) >>> new_end + vm_page_dump_size, VM_PROT_READ | VM_PROT_WRITE); >>> bzero((void *)vm_page_dump, vm_page_dump_size); >>> #endif >>> +#ifdef __amd64__ >>> + pa = DMAP_TO_PHYS((vm_offset_t)msgbufp); > > If I change this to be msgbufp->msg_ptr, then all works as expected. > > While tracking this down, I realized that passing the -q(uiet) > argument to kgdb would have been a valid workaround all along. > > > Alan, could you please commit the modified patch? Yes, it's done. Thanks, Alan