From owner-freebsd-stable Fri Dec 29 10:02:16 1995 Return-Path: owner-stable Received: (from root@localhost) by freefall.freebsd.org (8.7.3/8.7.3) id KAA03551 for stable-outgoing; Fri, 29 Dec 1995 10:02:16 -0800 (PST) Received: from rmurphy.slip.bcm.tmc.edu (root@RMURPHY.SLIP.BCM.TMC.EDU [128.249.250.138]) by freefall.freebsd.org (8.7.3/8.7.3) with SMTP id KAA03539 for ; Fri, 29 Dec 1995 10:02:10 -0800 (PST) Received: (from rich@localhost) by rmurphy.slip.bcm.tmc.edu (8.6.12/8.6.9) id MAA00320; Fri, 29 Dec 1995 12:02:03 -0600 Date: Fri, 29 Dec 1995 12:02:03 -0600 Message-Id: <199512291802.MAA00320@rmurphy.slip.bcm.tmc.edu> From: Rich Murphey To: FreeBSD-stable@freefall.FreeBSD.org Subject: panic: free vnode isn't Reply-to: rich@lamprey.utmb.edu Sender: owner-stable@FreeBSD.ORG Precedence: bulk I'm running today's -stable and get a panic immedialy upon invoking /usr/libexec/locate.updatedb: panic: free vnode isn't Below is the bactrace. I'm not yet sure what else to look at... Any suggestions are welcome! Rich (kgdb) where #0 boot (howto=260) at ../../i386/i386/machdep.c:892 #1 0xf011aa95 in panic (fmt=0xf01aa4f0 "because you said to!") at ../../kern/subr_prf.c:124 #2 0xf01aa51d in diediedie () at ../../i386/i386/machdep.c:834 #3 0xf0101674 in db_fncall (dummy1=1, dummy2=0, dummy3=-266380648, dummy4=0xefbffb9c "\034Æ\037ðÔH ð0A\034\n") at ../../ddb/db_command.c:491 #4 0xf0101344 in db_command (last_cmdp=0xf01dfaf4, cmd_table=0xf01df954) at ../../ddb/db_command.c:281 #5 0xf01014dd in db_command_loop () at ../../ddb/db_command.c:419 #6 0xf01044d0 in db_trap (type=3, code=0) at ../../ddb/db_trap.c:72 #7 0xf01a7614 in kdb_trap (type=3, code=0, regs=0xefbffc8c) at ../../i386/i386/db_interface.c:120 #8 0xf01af8bc in trap (frame={tf_es = -260505584, tf_ds = 16, tf_edi = 12, tf_esi = -260443392, tf_ebp = -272630576, tf_isp = -266700708, tf_ebx = 256, tf_edx = -266700757, tf_ecx = 0, tf_eax = -1, tf_trapno = 3, tf_err = 0, tf_eip = -266700708, tf_cs = -272695288, tf_eflags = 582, tf_esp = -266700773, tf_ss = -267277765}) at ../../i386/i386/trap.c:387 #9 0xf01a7fbd in calltrap () #10 0xf01a785c in Debugger (msg=0xf011aa3b "panic") at ../../i386/i386/db_interface.c:257 #11 0xf011aa8f in panic (fmt=0xf0132851 "free vnode isn't") at ../../kern/subr_prf.c:122 #12 0xf0132917 in getnewvnode (tag=VT_PROCFS, mp=0xf07e5e00, vops=0xf079f300, vpp=0xefbffd70) at ../../kern/vfs_subr.c:352 #13 0xf013bc39 in procfs_allocvp (mp=0xf07e5e00, vpp=0xefbffd70, pid=327, pfs_type=Pctl) at ../../miscfs/procfs/procfs_subr.c:114 #14 0xf013cab8 in procfs_lookup (ap=0xefbffdb0) at ../../miscfs/procfs/procfs_vnops.c:609 #15 0xf0131d71 in lookup (ndp=0xefbffe44) at ./vnode_if.h:27 #16 0xf013184e in namei (ndp=0xefbffe44) at ../../kern/vfs_lookup.c:147 #17 0xf0135daa in lstat (p=0xf0904f00, uap=0xefbfff94, retval=0xefbfff8c) at ../../kern/vfs_syscalls.c:1258 #18 0xf01b0366 in syscall (frame={tf_es = -272695257, tf_ds = -272695257, tf_edi = 199680, tf_esi = 199752, tf_ebp = -272638800, tf_isp = -272629788, tf_ebx = 134725728, tf_edx = 32768, tf_ecx = 199744, tf_eax = 190, tf_trapno = 582, tf_err = 582, tf_eip = 134516469, tf_cs = 31, tf_eflags = 582, tf_esp = -272638928, tf_ss = 39}) at ../../i386/i386/trap.c:878 #19 0xf01a800b in Xsyscall () (kgdb) p vp $1 = (struct vnode *) 0xf080df00 (kgdb) p *vp $2 = {v_flag = 0, v_usecount = -4, v_writecount = 0, v_holdcnt = 0, v_lastr = 0, v_id = 260, v_mount = 0xf07a0a00, v_op = 0xf07acc00, v_freelist = { tqe_next = 0xf080d580, tqe_prev = 0xf01f5dcc}, v_mntvnodes = {le_next = 0xf0810a80, le_prev = 0xf080d5a4}, v_cleanblkhd = {lh_first = 0x0}, v_dirtyblkhd = {lh_first = 0x0}, v_numoutput = 0, v_type = VBLK, v_un = {vu_mountedhere = 0xf078d050, vu_socket = 0xf078d050, vu_specinfo = 0xf078d050, vu_fifoinfo = 0xf078d050}, v_lease = 0x0, v_lastw = 0, v_cstart = 0, v_lasta = 0, v_clen = 0, v_ralen = 0, v_maxra = 0, v_vmdata = 0x0, v_tag = VT_UFS, v_data = 0xf080bd00} (kgdb) p vnode_free_list $3 = {tqh_first = 0xf080d580, tqh_last = 0xf08cdb1c} (kgdb) p freevnodes $4 = 964 (kgdb) p numvnodes $5 = 1274 From owner-freebsd-stable Fri Dec 29 19:26:27 1995 Return-Path: owner-stable Received: (from root@localhost) by freefall.freebsd.org (8.7.3/8.7.3) id TAA13154 for stable-outgoing; Fri, 29 Dec 1995 19:26:27 -0800 (PST) Received: from rmurphy.slip.bcm.tmc.edu (root@RMURPHY.SLIP.BCM.TMC.EDU [128.249.250.138]) by freefall.freebsd.org (8.7.3/8.7.3) with SMTP id TAA13108 for ; Fri, 29 Dec 1995 19:26:22 -0800 (PST) Received: (from rich@localhost) by rmurphy.slip.bcm.tmc.edu (8.6.12/8.6.9) id VAA04467; Fri, 29 Dec 1995 21:26:19 -0600 Date: Fri, 29 Dec 1995 21:26:19 -0600 Message-Id: <199512300326.VAA04467@rmurphy.slip.bcm.tmc.edu> From: Rich Murphey To: FreeBSD-stable@freefall.FreeBSD.org In-reply-to: message from Rich Murphey on Fri, 29 Dec 95 12:02:01 -0600 Subject: Re: panic: free vnode isn't Reply-To: rich@freefall.FreeBSD.org Sender: owner-stable@FreeBSD.ORG Precedence: bulk It turns out that the 'panic: free vnode isn't' only occurs when I have a Nakamichi 7 disk scsi cd changer mounted. WHen the unit's powered off the problems go away. I don't know how it's munging the free vnodes, but I'm willing to bet that the problem is directly related to the changer. Rich From owner-freebsd-stable Fri Dec 29 20:25:53 1995 Return-Path: owner-stable Received: (from root@localhost) by freefall.freebsd.org (8.7.3/8.7.3) id UAA26426 for stable-outgoing; Fri, 29 Dec 1995 20:25:53 -0800 (PST) Received: from Root.COM (implode.Root.COM [198.145.90.17]) by freefall.freebsd.org (8.7.3/8.7.3) with SMTP id UAA26421 Fri, 29 Dec 1995 20:25:49 -0800 (PST) Received: from corbin.Root.COM (corbin [198.145.90.50]) by Root.COM (8.6.12/8.6.5) with ESMTP id UAA14786; Fri, 29 Dec 1995 20:25:47 -0800 Received: from localhost (localhost [127.0.0.1]) by corbin.Root.COM (8.7.3/8.6.5) with SMTP id UAA03071; Fri, 29 Dec 1995 20:25:50 -0800 (PST) Message-Id: <199512300425.UAA03071@corbin.Root.COM> To: rich@freefall.freebsd.org cc: FreeBSD-stable@freefall.freebsd.org Subject: Re: panic: free vnode isn't In-reply-to: Your message of "Fri, 29 Dec 95 21:26:19 CST." <199512300326.VAA04467@rmurphy.slip.bcm.tmc.edu> From: David Greenman Reply-To: davidg@Root.COM Date: Fri, 29 Dec 1995 20:25:50 -0800 Sender: owner-stable@FreeBSD.ORG Precedence: bulk >It turns out that the 'panic: free vnode isn't' only occurs >when I have a Nakamichi 7 disk scsi cd changer mounted. >WHen the unit's powered off the problems go away. > >I don't know how it's munging the free vnodes, but I'm >willing to bet that the problem is directly related to the >changer. Rich DO you have the fix for the multi-changers that was recently committed to -current and -stable??? ...That likely will fix it for you. -DG Index: cd.c =================================================================== RCS file: /home/ncvs/src/sys/scsi/cd.c,v retrieving revision 1.53 retrieving revision 1.54 diff -c -r1.53 -r1.54 *** cd.c 1995/12/14 09:54:18 1.53 --- cd.c 1995/12/20 12:02:43 1.54 *************** *** 588,594 **** return; } cdqueues++; ! if(cd->dkunit) { dk_xfer[cd->dkunit]++; dk_seek[cd->dkunit]++; /* don't know */ dk_wds[cd->dkunit] += bp->b_bcount >> 6; --- 588,594 ---- return; } cdqueues++; ! if(cd->dkunit >= 0) { dk_xfer[cd->dkunit]++; dk_seek[cd->dkunit]++; /* don't know */ dk_wds[cd->dkunit] += bp->b_bcount >> 6; From owner-freebsd-stable Fri Dec 29 21:07:22 1995 Return-Path: owner-stable Received: (from root@localhost) by freefall.freebsd.org (8.7.3/8.7.3) id VAA28971 for stable-outgoing; Fri, 29 Dec 1995 21:07:22 -0800 (PST) Received: from rmurphy.slip.bcm.tmc.edu (root@RMURPHY.SLIP.BCM.TMC.EDU [128.249.250.138]) by freefall.freebsd.org (8.7.3/8.7.3) with SMTP id VAA28964 for ; Fri, 29 Dec 1995 21:07:15 -0800 (PST) Received: (from rich@localhost) by rmurphy.slip.bcm.tmc.edu (8.6.12/8.6.9) id XAA17571; Fri, 29 Dec 1995 23:07:01 -0600 Date: Fri, 29 Dec 1995 23:07:01 -0600 Message-Id: <199512300507.XAA17571@rmurphy.slip.bcm.tmc.edu> From: Rich Murphey To: davidg@Root.COM CC: FreeBSD-stable@freefall.freebsd.org In-reply-to: <199512300425.UAA03071@corbin.Root.COM> (message from David Greenman on Fri, 29 Dec 1995 20:25:50 -0800) Subject: Re: panic: free vnode isn't Reply-to: rich@lamprey.utmb.edu Sender: owner-stable@FreeBSD.ORG Precedence: bulk |cc: FreeBSD-stable@freefall.freebsd.org | DO you have the fix for the multi-changers that was recently committed to |-current and -stable??? ...That likely will fix it for you. Yep, the version of cd.c I supped yesterday had that patch already. The patch helps alot, but doesn't fix this problem. Thanks! Rich