Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 24 Jan 2006 18:06:04 +0200
From:      Andrey Simonenko <simon@comsys.ntu-kpi.kiev.ua>
To:        FreeBSD-gnats-submit@FreeBSD.org
Subject:   kern/92269: panic with mdconfig and mount_cd9660
Message-ID:  <20060124160604.GA1641@pm513-1.comsys.ntu-kpi.kiev.ua>
Resent-Message-ID: <200601241610.k0OGA4VB081563@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>Number:         92269
>Category:       kern
>Synopsis:       panic with mdconfig and mount_cd9660
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    freebsd-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Tue Jan 24 16:10:04 GMT 2006
>Closed-Date:
>Last-Modified:
>Originator:     Andrey Simonenko
>Release:        FreeBSD 6.0-STABLE i386
>Organization:
>Environment:

FreeBSD 6.0-STABLE i386 CVSup'ed 23 Jan 2006

>Description:

I debug one script which creates md-devices from ISO images and
then mounts created md-devices with mount_cd9660.  At some point
my system got following panic.

Unread portion of the kernel message buffer:


Fatal trap 12: page fault while in kernel mode
fault virtual address	= 0x47
fault code		= supervisor read, page not present
instruction pointer	= 0x20:0xc04a2052
stack pointer	        = 0x28:0xd54e2ad4
frame pointer	        = 0x28:0xd54e2ae8
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		= 889 (mc)
trap number		= 12
panic: page fault
Uptime: 23m16s
Dumping 511 MB (2 chunks)
  chunk 0: 1MB (160 pages) ... ok
  chunk 1: 511MB (130800 pages) 495 479 463 447 431 415 399 383 367 351 335 319 303 287 271 255 239 223 207 191 175 159 143 127 111 95 79 63 47 31 15

#0  doadump () at pcpu.h:165
165		__asm __volatile("movl %%fs:0,%0" : "=r" (td));
(kgdb) bt
#0  doadump () at pcpu.h:165
#1  0xc04da89a in boot (howto=260)
    at /Src/FreeBSD-6/src/sys/kern/kern_shutdown.c:399
#2  0xc04dab30 in panic (fmt=0xc067a418 "%s")
    at /Src/FreeBSD-6/src/sys/kern/kern_shutdown.c:555
#3  0xc0651ebc in trap_fatal (frame=0xd54e2a94, eva=71)
    at /Src/FreeBSD-6/src/sys/i386/i386/trap.c:836
#4  0xc0651c23 in trap_pfault (frame=0xd54e2a94, usermode=0, eva=71)
    at /Src/FreeBSD-6/src/sys/i386/i386/trap.c:744
#5  0xc0651881 in trap (frame=
      {tf_fs = 8, tf_es = 40, tf_ds = 40, tf_edi = -1018538688, tf_esi = 71, tf_ebp = -716297496, tf_isp = -716297536, tf_ebx = -1017898152, tf_edx = 2048, tf_ecx = 0, tf_eax = 1, tf_trapno = 12, tf_err = 0, tf_eip = -1068883886, tf_cs = 32, tf_eflags = 66182, tf_esp = 1, tf_ss = 0})
    at /Src/FreeBSD-6/src/sys/i386/i386/trap.c:434
#6  0xc064192a in calltrap ()
    at /Src/FreeBSD-6/src/sys/i386/i386/exception.s:139
#7  0xc04a2052 in g_io_request (bp=0xc3541b58, cp=0xc34a5540)
    at /Src/FreeBSD-6/src/sys/geom/geom_io.c:259
#8  0xc04a45a9 in g_vfs_strategy (bo=0x1, bp=0xcd58bdd0)
    at /Src/FreeBSD-6/src/sys/geom/geom_vfs.c:106
#9  0xc04ac4ed in cd9660_strategy (ap=0x1)
    at /Src/FreeBSD-6/src/sys/isofs/cd9660/cd9660_vnops.c:756
---Type <return> to continue, or q <return> to quit---
#10 0xc0666ab1 in VOP_STRATEGY_APV (vop=0xc06b08e0, a=0xd54e2b3c)
    at vnode_if.c:1796
#11 0xc0524878 in bufstrategy (bo=0xc35e4b60, bp=0x1) at vnode_if.h:928
#12 0xc051f1b9 in breadn (vp=0xc35e4aa0, blkno=0, size=2048, rablkno=0x0, 
    rabsize=0x0, cnt=0, cred=0x0, bpp=0x1) at buf.h:415
#13 0xc051f0fc in bread (vp=0xc35e4aa0, blkno=0, size=2048, cred=0x0, 
    bpp=0xd54e2bc8) at /Src/FreeBSD-6/src/sys/kern/vfs_bio.c:719
#14 0xc04a8df5 in cd9660_blkatoff (vp=0x800, offset=0, res=0x0, bpp=0xd54e2c28)
    at /Src/FreeBSD-6/src/sys/isofs/cd9660/cd9660_lookup.c:407
#15 0xc04abfc6 in cd9660_readdir (ap=0xd54e2c90)
    at /Src/FreeBSD-6/src/sys/isofs/cd9660/cd9660_vnops.c:514
#16 0xc06667bc in VOP_READDIR_APV (vop=0x1, a=0x800) at vnode_if.c:1427
#17 0xc053a03b in getdirentries (td=0xc2fe7000, uap=0xd54e2d04)
    at vnode_if.h:746
#18 0xc06521d3 in syscall (frame=
      {tf_fs = 59, tf_es = 59, tf_ds = 59, tf_edi = 135183488, tf_esi = 0, tf_ebp = -1077944008, tf_isp = -716296860, tf_ebx = 674616552, tf_edx = 0, tf_ecx = 0, tf_eax = 196, tf_trapno = 0, tf_err = 2, tf_eip = 674469883, tf_cs = 51, tf_eflags = 582, tf_esp = -1077944052, tf_ss = 59})
    at /Src/FreeBSD-6/src/sys/i386/i386/trap.c:981
#19 0xc064197f in Xint0x80_syscall ()
    at /Src/FreeBSD-6/src/sys/i386/i386/exception.s:200
#20 0x00000033 in ?? ()
Previous frame inner to this frame (corrupt stack?)

>How-To-Repeat:

My system got this panic while I debug and restart my script several
times, cannot reproduce this problem.

>Fix:
>Release-Note:
>Audit-Trail:
>Unformatted:



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