From owner-freebsd-current@FreeBSD.ORG Sat Jun 25 10:59:05 2005 Return-Path: X-Original-To: current@FreeBSD.org Delivered-To: freebsd-current@FreeBSD.ORG Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 1E41316A41C; Sat, 25 Jun 2005 10:59:05 +0000 (GMT) (envelope-from morganw@chemikals.org) Received: from ms-smtp-02-eri0.southeast.rr.com (ms-smtp-02-lbl.southeast.rr.com [24.25.9.101]) by mx1.FreeBSD.org (Postfix) with ESMTP id DB01D43D1D; Sat, 25 Jun 2005 10:59:04 +0000 (GMT) (envelope-from morganw@chemikals.org) Received: from volatile.chemikals.org (cpe-024-211-118-154.sc.res.rr.com [24.211.118.154]) by ms-smtp-02-eri0.southeast.rr.com (8.12.10/8.12.7) with ESMTP id j5PAx0l8024460; Sat, 25 Jun 2005 06:59:00 -0400 (EDT) Received: from volatile.chemikals.org (morganw@localhost [127.0.0.1]) by volatile.chemikals.org (8.13.3/8.13.3) with ESMTP id j5PAwx5l036890; Sat, 25 Jun 2005 06:58:59 -0400 (EDT) (envelope-from morganw@chemikals.org) Received: from localhost (morganw@localhost) by volatile.chemikals.org (8.13.3/8.13.3/Submit) with ESMTP id j5PAwwZo036887; Sat, 25 Jun 2005 06:58:58 -0400 (EDT) (envelope-from morganw@chemikals.org) X-Authentication-Warning: volatile.chemikals.org: morganw owned process doing -bs Date: Sat, 25 Jun 2005 06:58:57 -0400 (EDT) From: Wesley Morgan To: Suleiman Souhlal In-Reply-To: Message-ID: <20050625064738.L36786@volatile.chemikals.org> References: <20050625062259.G36786@volatile.chemikals.org> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed X-Virus-Scanned: Symantec AntiVirus Scan Engine Cc: current@FreeBSD.org Subject: Re: processes hanging in ufs/vfs X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 25 Jun 2005 10:59:05 -0000 On Sat, 25 Jun 2005, Suleiman Souhlal wrote: > Hi, > > On Jun 25, 2005, at 6:31 AM, Wesley Morgan wrote: > >> The strange panics I was getting last week seem to have stopped, but now I >> am seeing what appears to be deadlocked processes trying to read or write >> to the same file. The processes are, of course, unkillable and prevent a >> clean reboot. I was running with the "knlist_locking" patch but that no >> longer compiles, and backing out the recent kqueue patch doesn't work >> either. Traces from ddb are below. > > You mean it doesn't work because it does not fix the hanged processes, or > because you are unable to patch -R? Also, I don't understand if you see the > hangs with the knlist_locking patch or not.. They don't compile cleanly... Looks like some problems with macros. The knlist patch fails like this: ../../../kern/kern_event.c: In function `knote': ../../../kern/kern_event.c:1529: error: syntax error before "else" ../../../kern/kern_event.c: In function `knlist_add': ../../../kern/kern_event.c:1566: error: syntax error before "else" ../../../kern/kern_event.c: In function `knlist_remove_kq': ../../../kern/kern_event.c:1585: error: syntax error before "else" ../../../kern/kern_event.c: In function `knlist_mtx_lock': ../../../kern/kern_event.c:1641: warning: dereferencing `void *' pointer ../../../kern/kern_event.c:1641: error: request for member `mtx_lock' in something not a structure or union ../../../kern/kern_event.c: In function `knlist_mtx_unlock': ../../../kern/kern_event.c:1647: warning: dereferencing `void *' pointer ../../../kern/kern_event.c:1647: error: request for member `mtx_lock' in something not a structure or union ../../../kern/kern_event.c: In function `knlist_cleardel': ../../../kern/kern_event.c:1701: error: syntax error before "else" ../../../kern/kern_event.c:1696: warning: unused variable `kn' And backing out the kqueue patch fails on a SYSINIT macro here: ../../../kern/vfs_subr.c:3331: warning: no previous prototype for 'vop_rename_pre' ../../../kern/vfs_subr.c: In function `vop_rename_pre': ../../../kern/vfs_subr.c:3456: error: initializer element is not constant ../../../kern/vfs_subr.c:3456: error: (near initialization for `vfs_knlist_sys_init.func') ../../../kern/vfs_subr.c:3460: warning: no previous prototype for 'vfs_event_signal' ../../../kern/vfs_subr.c:3465: warning: nested extern declaration of `filt_fsattach' ../../../kern/vfs_subr.c:3466: warning: nested extern declaration of `filt_fsdetach' ../../../kern/vfs_subr.c:3467: warning: nested extern declaration of `filt_fsevent' ../../../kern/vfs_subr.c:3520: error: initializer element is not constant ../../../kern/vfs_subr.c:3520: error: (near initialization for `sysctl___vfs_ctl.oid_handler') ../../../kern/vfs_subr.c:3529: warning: no previous prototype for 'init_va_filerev' ../../../kern/vfs_subr.c:3534: error: syntax error at end of input ../../../kern/vfs_subr.c:3332: warning: unused variable `a' ../../../kern/vfs_subr.c:3469: warning: unused variable `fs_filtops' I *think* the knlist patch was helping when I could run with it.