From owner-freebsd-bugs@FreeBSD.ORG Sat Sep 10 00:10:23 2005 Return-Path: X-Original-To: freebsd-bugs@hub.freebsd.org Delivered-To: freebsd-bugs@hub.freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 3ECAE16A420 for ; Sat, 10 Sep 2005 00:10:23 +0000 (GMT) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id 889E843D79 for ; Sat, 10 Sep 2005 00:10:16 +0000 (GMT) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.13.3/8.13.3) with ESMTP id j8A0AGtb067994 for ; Sat, 10 Sep 2005 00:10:16 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.13.3/8.13.1/Submit) id j8A0AGhw067992; Sat, 10 Sep 2005 00:10:16 GMT (envelope-from gnats) Resent-Date: Sat, 10 Sep 2005 00:10:16 GMT Resent-Message-Id: <200509100010.j8A0AGhw067992@freefall.freebsd.org> Resent-From: FreeBSD-gnats-submit@FreeBSD.org (GNATS Filer) Resent-To: freebsd-bugs@FreeBSD.org Resent-Reply-To: FreeBSD-gnats-submit@FreeBSD.org, Nate Eldredge Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 5034E16A41F for ; Sat, 10 Sep 2005 00:05:28 +0000 (GMT) (envelope-from nge@cs.hmc.edu) Received: from smtp103.sbc.mail.mud.yahoo.com (smtp103.sbc.mail.mud.yahoo.com [68.142.198.202]) by mx1.FreeBSD.org (Postfix) with SMTP id E441043D4C for ; Sat, 10 Sep 2005 00:05:27 +0000 (GMT) (envelope-from nge@cs.hmc.edu) Received: (qmail 9649 invoked from network); 10 Sep 2005 00:05:27 -0000 Received: from unknown (HELO vulcan.lan) (nattylite@sbcglobal.net@63.206.48.153 with login) by smtp103.sbc.mail.mud.yahoo.com with SMTP; 10 Sep 2005 00:05:26 -0000 Received: from vulcan.lan (localhost.lan [127.0.0.1]) by vulcan.lan (8.13.3/8.13.3) with ESMTP id j8A05PKp000907 for ; Fri, 9 Sep 2005 17:05:25 -0700 (PDT) (envelope-from nate@vulcan.lan) Received: (from nate@localhost) by vulcan.lan (8.13.3/8.13.3/Submit) id j8A05PRh000906; Fri, 9 Sep 2005 17:05:25 -0700 (PDT) (envelope-from nate) Message-Id: <200509100005.j8A05PRh000906@vulcan.lan> Date: Fri, 9 Sep 2005 17:05:25 -0700 (PDT) From: Nate Eldredge To: FreeBSD-gnats-submit@FreeBSD.org X-Send-Pr-Version: 3.113 Cc: Subject: kern/85931: panic: "vm_fault: fault on nofault entry" when using md X-BeenThere: freebsd-bugs@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: Nate Eldredge List-Id: Bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 10 Sep 2005 00:10:23 -0000 >Number: 85931 >Category: kern >Synopsis: panic: "vm_fault: fault on nofault entry" when using md >Confidential: no >Severity: serious >Priority: medium >Responsible: freebsd-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Sat Sep 10 00:10:15 GMT 2005 >Closed-Date: >Last-Modified: >Originator: Nate Eldredge >Release: FreeBSD 5.4-RELEASE-p6 amd64 >Organization: >Environment: System: FreeBSD vulcan.lan 5.4-RELEASE-p6 FreeBSD 5.4-RELEASE-p6 #0: Sun Sep 4 02:52:11 PDT 2005 nate@vulcan.lan:/usr/obj/usr/src/sys/VULCAN amd64 Opteron, 1 GB ram. >Description: I encountered a kernel panic when compiling the gcc40 port on a memory disk. As a benchmark test, I wanted to compile gcc on a ramdisk. "mdconfig -t malloc" cannot create such a large ramdisk, but I discovered after some research that you can use a preloaded ramdisk to accomplish this. So I created a 600MB sparse file in / (it had to be sparse because that partition is only 400MB large), rebooted and issued load -t md_image /sparse.img boot at the loader prompt. Then did along the lines of newfs /dev/md0 mount /dev/md0 /mnt/md0 mkdir /mnt/md0/nate # so as not to have to compile as root chown nate:nate /mnt/md0/nate su nate cd /mnt/md0/nate cp -r /usr/ports/lang/gcc40 . cd gcc40 time make After about 20 minutes the kernel panicked with the message vm_fault: fault on nofault entry, addr: ffffffffb36d8000 I have a vmcore file and can debug further if necessary. I can also test patches if I get them reasonably soon (this machine has to go into production eventually). On a previous attempt to do this, the machine rebooted after about 20 minutes but I did not get there in time to see if there was a panic message. So on the second attempt I watched and also enabled dumping. Thus it seems this may be reproducible. This is a new machine, so hardware problems are conceivable. But I had previously compiled gcc on disk several times as a burn-in test, without any problems. I also ran memtest86 overnight. The memory is ECC as well. >How-To-Repeat: See above. >Fix: I don't know. Thanks. >Release-Note: >Audit-Trail: >Unformatted: