From owner-freebsd-stable Fri May 5 22: 9: 4 2000 Delivered-To: freebsd-stable@freebsd.org Received: from eddings.acpub.duke.edu (eddings.acpub.duke.edu [152.3.233.76]) by hub.freebsd.org (Postfix) with ESMTP id A98EA37BC5B for ; Fri, 5 May 2000 22:08:59 -0700 (PDT) (envelope-from sto@stat.Duke.EDU) Received: from bobzilla.adsl.duke.edu (bobzilla.adsl.duke.edu [152.16.67.15]) by eddings.acpub.duke.edu (8.9.3/8.9.3/Duke-5.0.0) with ESMTP id BAA26111; Sat, 6 May 2000 01:08:57 -0400 (EDT) Received: (from sto@localhost) by bobzilla.adsl.duke.edu (8.9.3/8.9.3) id BAA07918 for freebsd-stable@FreeBSD.ORG; Sat, 6 May 2000 01:08:54 -0400 (EDT) (envelope-from sto) Date: Sat, 6 May 2000 01:08:54 -0400 From: "Sean O'Connell" To: FreeBSD stable Subject: Re: Panic during vnconfig over nfs Message-ID: <20000506010854.B7761@stat.Duke.EDU> Reply-To: "Sean O'Connell" References: <20000505140246.A24099@stat.Duke.EDU> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.1.14i In-Reply-To: <20000505140246.A24099@stat.Duke.EDU>; from sean@stat.Duke.EDU on Fri, May 05, 2000 at 02:02:46PM -0400 X-Organization: House of Schmutzli X-Kitties: Bitty Maya CJ Keisha Jacob X-Hound: Bob X-OS-OF-Choice: FreeBSD Sender: owner-freebsd-stable@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG Sean O'Connell stated: > Hi > > I was trying to vnconfig a file (DOS boot image) in my home directory > which is mounted via nfs. This causes a fairly reproducible panic. > > My environment: > > PII 233/ata/xl0 running 4.0-STABLE as of 14 April 2000 > NFS mount from a Tru64 Unix box > > Here is a backtrace from a crash dump: Hi All- Earlier today, I posted this message (along with a backtrace... deleted for brevity's sake). Since then, some additional facts have come to light (all pointing toward me being an idiot). 1) I was mounting my home directory with the nodev option in /etc/fstab I don't believe that the nodev option coupled with vnconfig should panic the machine... not good. Shouldn't it bail out on an ENOxxx? Of course, you have to have root or sudo privileges to shoot your self in the foot this way. 2) I was running with nfs as a kld, so the original backtrace did not have any useful info for frames 16&17. I will include a proper backtrace: Copyright 1998 Free Software Foundation, Inc. This GDB was configured as "i386-unknown-freebsd"... IdlePTD 3481600 initial pcb at 2cf200 panicstr: page fault panic messages: --- Fatal trap 12: page fault while in kernel mode fault virtual address = 0xff52ffff fault code = supervisor read, page not present instruction pointer = 0x8:0xc01bd3cc stack pointer = 0x10:0xc028eb50 frame pointer = 0x10:0xc028eb68 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 = Idle interrupt mask = trap number = 12 panic: page fault syncing disks... Fatal trap 12: page fault while in kernel mode fault virtual address = 0x30 fault code = supervisor read, page not present instruction pointer = 0x8:0xc01ec8ea stack pointer = 0x10:0xc028e93c frame pointer = 0x10:0xc028e950 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 = Idle interrupt mask = bio trap number = 12 panic: page fault Uptime: 1m53s (kgdb) back #0 boot (howto=260) at ../../kern/kern_shutdown.c:304 #1 0xc014a389 in panic (fmt=0xc028658f "page fault") at ../../kern/kern_shutdown.c:554 #2 0xc0248162 in trap_fatal (frame=0xc028e8fc, eva=48) at ../../i386/i386/trap.c:924 #3 0xc0247e15 in trap_pfault (frame=0xc028e8fc, usermode=0, eva=48) at ../../i386/i386/trap.c:817 #4 0xc02479c7 in trap (frame={tf_fs = -1016135664, tf_es = -1058930672, tf_ds = -1059454960, tf_edi = 1073872896, tf_esi = -1058705472, tf_ebp = -1071060656, tf_isp = -1071060696, tf_ebx = -1016111464, tf_edx = 0, tf_ecx = -1071060660, tf_eax = 25, tf_trapno = 12, tf_err = 0, tf_eip = -1071724310, tf_cs = 8, tf_eflags = 66050, tf_esp = -1016111464, tf_ss = 1}) at ../../i386/i386/trap.c:423 #5 0xc01ec8ea in mfs_strategy (ap=0xc028e96c) at ../../ufs/mfs/mfs_vnops.c:201 #6 0xc016ba7a in bwrite (bp=0xc36f5e98) at vnode_if.h:923 #7 0xc0170dd6 in vop_stdbwrite (ap=0xc028e99c) at ../../kern/vfs_default.c:319 #8 0xc0170c31 in vop_defaultop (ap=0xc028e99c) at ../../kern/vfs_default.c:138 #9 0xc016bd72 in bawrite (bp=0xc36f5e98) at vnode_if.h:1172 #10 0xc017f93c in spec_fsync (ap=0xc028ea04) at ../../miscfs/specfs/spec_vnops.c:362 #11 0xc01ec7a2 in mfs_fsync (ap=0xc028ea04) at ../../ufs/mfs/mfs_vnops.c:120 #12 0xc01ead0a in ffs_sync (mp=0xc0e27000, waitfor=2, cred=0xc0743900, p=0xc02e6a80) at vnode_if.h:537 #13 0xc0175a03 in sync (p=0xc02e6a80, uap=0x0) at ../../kern/vfs_syscalls.c:549 #14 0xc0149dbf in boot (howto=256) at ../../kern/kern_shutdown.c:226 #15 0xc014a389 in panic (fmt=0xc028658f "page fault") at ../../kern/kern_shutdown.c:554 #16 0xc0248162 in trap_fatal (frame=0xc028eb10, eva=4283629567) at ../../i386/i386/trap.c:924 #17 0xc0247e15 in trap_pfault (frame=0xc028eb10, usermode=0, eva=4283629567) at ../../i386/i386/trap.c:817 #18 0xc02479c7 in trap (frame={tf_fs = -923926512, tf_es = -1071120368, tf_ds = -1071120368, tf_edi = 1073741824, tf_esi = -1072478981, tf_ebp = -1071060120, tf_isp = -1071060164, tf_ebx = -11337729, tf_edx = 0, tf_ecx = -1071060136, tf_eax = -8633, tf_trapno = 12, tf_err = 0, tf_eip = -1071918132, tf_cs = 8, tf_eflags = 66118, tf_esp = -1057859584, tf_ss = -909756288}) at ../../i386/i386/trap.c:423 #19 0xc01bd3cc in nfs_sigintr (nmp=0xc9c63880, rep=0xc0f25800, p=0xc01344fb) at ../../nfs/nfs_socket.c:1550 #20 0xc01bd06d in nfs_timer (arg=0x0) at ../../nfs/nfs_socket.c:1403 #21 0xc014f701 in softclock () at ../../kern/kern_timeout.c:131 Thanks Sean To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-stable" in the body of the message