kern/86624: kernel panic with SCHED_ULE, md device, smbfs, nullfs

Andrey V. Elsukov bu7cher at yandex.ru
Tue Sep 27 03:30:37 PDT 2005


>Number:         86624
>Category:       kern
>Synopsis:       kernel panic with SCHED_ULE, md device, smbfs, nullfs
>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 Sep 27 10:30:18 GMT 2005
>Closed-Date:
>Last-Modified:
>Originator:     Andrey V. Elsukov
>Release:        FreeBSD 6.0-BETA4
>Organization:
>Environment:
	FreeBSD 6.0-BETA4 i386
	kern.sched.name: ule
>Description:
	I had a mounted smbfs. Via smbfs i had CD image configured into md0.
	Via nullfs i had mapped distfiles directory from CD image to 
	/usr/ports/distfiles and tried install mc-light port.
>How-To-Repeat:
>Fix:

	kgdb backtrace:

--- kgdb.log begins here ---
GNU gdb 6.1.1 [FreeBSD]
Copyright 2004 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you are
welcome to change it and/or distribute copies of it under certain conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB.  Type "show warranty" for details.
This GDB was configured as "i386-marcel-freebsd".

Unread portion of the kernel message buffer:
panic: lockmgr: locking against myself
cpuid = 0
KDB: stack backtrace:
kdb_backtrace(100,c179ec80,2002,80,c179ec80) at kdb_backtrace+0x29
panic(c085b2b9,c179ec80,0,c08c95a0,d53a7a24) at panic+0x114
lockmgr(c1d49d18,2002,c1d49d3c,c179ec80,d53a7a04) at lockmgr+0x3da
vop_stdlock(d53a7a24,2002,c1d49cc0,d53a7a40,c06927d0) at vop_stdlock+0x1e
VOP_LOCK_APV(c08bc400,d53a7a24) at VOP_LOCK_APV+0x87
vn_lock(c1d49cc0,2002,c179ec80,c1d49cc0) at vn_lock+0xa8
vrele(c1d49cc0,c1769090,c1d49cc0,d53a7ab4,c179ec80) at vrele+0xca
null_reclaim(d53a7ab4) at null_reclaim+0x5c
VOP_RECLAIM_APV(c1ddf580,d53a7ab4) at VOP_RECLAIM_APV+0x7e
vgonel(c1df1bb0) at vgonel+0x125
vrecycle(c1df1bb0,c179ec80,d53a7b14,c0804c22,d53a7b24) at vrecycle+0x38
null_inactive(d53a7b24) at null_inactive+0x1d
VOP_INACTIVE_APV(c1ddf580,d53a7b24) at VOP_INACTIVE_APV+0x7e
vinactive(c1df1bb0,c179ec80) at vinactive+0x72
vput(c1df1bb0,d53a7c00,ffffffdf,c1df1bb0,d53a7ba0,c1ade000,0,c179ec80) at vput+0x154
kern_stat(c179ec80,806e1c8,0,d53a7c74) at kern_stat+0x74
stat(c179ec80,d53a7d04,2,0,292) at stat+0x1b
syscall(3b,3b,3b,805f37f,806e1c8) at syscall+0x22f
Xint0x80_syscall() at Xint0x80_syscall+0x1f
--- syscall (188, FreeBSD ELF32, stat), eip = 0x2811eaf7, esp = 0xbfbfd95c, ebp = 0xbfbfda58 ---
KDB: enter: panic
Dumping 255 MB (2 chunks)
  chunk 0: 1MB (159 pages) ... ok
  chunk 1: 255MB (65264 pages) 239 223 207 191 175 159 143 127 111 95 79 63 47 31 15

#0  doadump () at pcpu.h:165
	in pcpu.h
(kgdb) bt
#0  doadump () at pcpu.h:165
#1  0xc04691cb in db_fncall (dummy1=0, dummy2=0, dummy3=-1065513209, 
    dummy4=0xd53a7814 "@x:ÕTr}À,x:Õ0x:Õ \016") at /usr/src/sys/ddb/db_command.c:489
#2  0xc0468fd0 in db_command (last_cmdp=0xc090b1e4, cmd_table=0x0, aux_cmd_tablep=0xc0888408, 
    aux_cmd_tablep_end=0xc0888424) at /usr/src/sys/ddb/db_command.c:349
#3  0xc0469098 in db_command_loop () at /usr/src/sys/ddb/db_command.c:455
#4  0xc046ac39 in db_trap (type=3, code=0) at /usr/src/sys/ddb/db_main.c:221
#5  0xc064c280 in kdb_trap (type=3, code=0, tf=0xd53a7958) at /usr/src/sys/kern/subr_kdb.c:473
#6  0xc07f4630 in trap (frame=
      {tf_fs = -717619192, tf_es = -1067188184, tf_ds = -1065025496, tf_edi = -1064979783, tf_esi = 1, tf_ebp = -717588072, tf_isp = -717588092, tf_ebx = -717588028, tf_edx = 0, tf_ecx = -1056755712, tf_eax = 18, tf_trapno = 3, tf_err = 0, tf_eip = -1067139097, tf_cs = 32, tf_eflags = 642, tf_esp = -717588040, tf_ss = -1067240373}) at /usr/src/sys/i386/i386/trap.c:601
#7  0xc07e20da in calltrap () at /usr/src/sys/i386/i386/exception.s:139
#8  0xd53a0008 in ?? ()
#9  0xc0640028 in do_wait (td=0xc085ceb1, umtx=0x100, id=-1048974208, timeout=0x2002)
    at /usr/src/sys/kern/kern_umtx.c:153
#10 0xc063344b in panic (fmt=0x282 <Address 0x282 out of bounds>)
    at /usr/src/sys/kern/kern_shutdown.c:537
#11 0xc062864a in lockmgr (lkp=0xc1d49d18, flags=8194, interlkp=0x80, td=0xc179ec80)
    at /usr/src/sys/kern/kern_lock.c:329
#12 0xc067f9e2 in vop_stdlock (ap=0x0) at /usr/src/sys/kern/vfs_default.c:258
#13 0xc0804d73 in VOP_LOCK_APV (vop=0xc08c95a0, a=0xd53a7a24) at vnode_if.c:1642
#14 0xc06927d0 in vn_lock (vp=0xc1d49cc0, flags=8194, td=0xc179ec80) at vnode_if.h:844
#15 0xc068780e in vrele (vp=0xc1d49cc0) at /usr/src/sys/kern/vfs_subr.c:2032
#16 0xc1dde178 in ?? ()
#17 0xc1d49cc0 in ?? ()
#18 0xc1769090 in ?? ()
#19 0xc1d49cc0 in ?? ()
#20 0xd53a7ab4 in ?? ()
#21 0xc179ec80 in ?? ()
#22 0x00000000 in ?? ()
#23 0xd53a7aa0 in ?? ()
#24 0xc0804cc6 in VOP_RECLAIM_APV (vop=0x0, a=0xc1df1c2c) at vnode_if.c:1589
(kgdb) 
--- kgdb.log ends here ---


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


More information about the freebsd-bugs mailing list