Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 6 May 2000 01:08:54 -0400
From:      "Sean O'Connell" <sean@stat.Duke.EDU>
To:        FreeBSD stable <freebsd-stable@FreeBSD.ORG>
Subject:   Re: Panic during vnconfig over nfs
Message-ID:  <20000506010854.B7761@stat.Duke.EDU>
In-Reply-To: <20000505140246.A24099@stat.Duke.EDU>; from sean@stat.Duke.EDU on Fri, May 05, 2000 at 02:02:46PM -0400
References:  <20000505140246.A24099@stat.Duke.EDU>

next in thread | previous in thread | raw e-mail | index | archive | help
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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20000506010854.B7761>