From owner-freebsd-stable@FreeBSD.ORG Tue Jan 11 00:24:20 2011 Return-Path: Delivered-To: stable@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 3CC45106566B for ; Tue, 11 Jan 2011 00:24:20 +0000 (UTC) (envelope-from nickolasbug@gmail.com) Received: from mail-ew0-f54.google.com (mail-ew0-f54.google.com [209.85.215.54]) by mx1.freebsd.org (Postfix) with ESMTP id C46088FC19 for ; Tue, 11 Jan 2011 00:24:19 +0000 (UTC) Received: by ewy24 with SMTP id 24so9397384ewy.13 for ; Mon, 10 Jan 2011 16:24:18 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:received:in-reply-to :references:date:message-id:subject:from:to:cc:content-type :content-transfer-encoding; bh=fKba1GNZpCdNaao6oQam2U7ycZt0LwM/QANmoGrOQqo=; b=sjlnONqqiBOj2RVRKCYsWql/Fu0P7IAnrmCPglyrr8G75out1NL+ygXB+nKGCEPCnm IUz2rEqGB7vZYCA8hfzf2ThFp3T5PfYe+80ESpZ+H3RCRDClTB+N0Ix0U/4uVSHZEYLb pfhZJO54SADBfBknKvaekHBuiryo3aSZEE6VI= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type:content-transfer-encoding; b=AG/AJ9khXiE1ffT/Iq3ostLX1bHG4xz0/uJIl854E2htFATn6bCHY12n2kh9xO07fW guB/6r+1gJQtQB1cKiQHbOuMr5pRxZBOMW8rpoc2OPdTqONQy2Rdw9WtOvHpG7sklP4M 3fm7bLnKln6sxZu1V1pd2jl5CNrqzBbqrhESM= MIME-Version: 1.0 Received: by 10.213.30.3 with SMTP id s3mr11442257ebc.22.1294703945179; Mon, 10 Jan 2011 15:59:05 -0800 (PST) Received: by 10.213.8.134 with HTTP; Mon, 10 Jan 2011 15:59:05 -0800 (PST) In-Reply-To: References: Date: Tue, 11 Jan 2011 01:59:05 +0200 Message-ID: From: nickolasbug@gmail.com To: Mark Saad Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Cc: stable@freebsd.org Subject: Re: Enabling DDB prevent kernel from panicing X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 11 Jan 2011 00:24:20 -0000 Hello, Mark 2011/1/11 Mark Saad : > All > This was originally posted to hackers@ > > I have a good question that I cant find an answer for. I believe > found a kernel bug in 7.3-RELEASE that prevents me from booting 64-bit > kernels on HP's DL360 G4p . The kernel dies with "Fatal trap 12: page > fault while in kernel mode " . The hardware works fine in 7.2-RELEASE > amd64, 7.1-RELEASE amd64, and 6.4-RELEASE amd64 . > > In 7.3-RELEASE amd64 I can not boot from cd or pxe correctly using the > stock 7.3-RELEASE amd64 kernel however i386 works fine. To see if this > issue was some how fixed in 7.3-RELEASE-p4 amd64 I rebuilt a GENERIC > kernel using patches sources and tried to boot and I got the same > crash. > > =A0Next I rebuilt the kernel with KDB and DDB to see if I could get a > core-dump of the system. I also set loader.conf to > > kernel=3D"kernel.DEBUG" > kern.dumpdev=3D"/dev/da0s1b" > > Next I pxebooted =A0the box and the system does not crash on boot up, it > will easily load a nfs root and work fine. So I copied my debug > kernel, and loader.conf to the local disk and rebooted and it boots > fine from the local disk . Looks like a race condition. Well, you don't need to compile KDB and DDB, just add makeoptions DEBUG=3D-g into your kernel config file and rebuild kernel. Then after you got a crash dump you can easy debug it (see FreeBSD Developers Handbok): http://www.freebsd.org/doc/en/books/developers-handbook/kerneldebug-gdb.htm= l wbr, Nickolas