From owner-freebsd-threads@FreeBSD.ORG Sat Sep 16 20:51:09 2006 Return-Path: X-Original-To: freebsd-threads@FreeBSD.org Delivered-To: freebsd-threads@FreeBSD.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id F390E16A403; Sat, 16 Sep 2006 20:51:08 +0000 (UTC) (envelope-from jmg@hydrogen.funkthat.com) Received: from hydrogen.funkthat.com (gate.funkthat.com [69.17.45.168]) by mx1.FreeBSD.org (Postfix) with ESMTP id 94CD943D58; Sat, 16 Sep 2006 20:50:45 +0000 (GMT) (envelope-from jmg@hydrogen.funkthat.com) Received: from hydrogen.funkthat.com (macjaiscmamqcn0k@localhost.funkthat.com [127.0.0.1]) by hydrogen.funkthat.com (8.13.6/8.13.3) with ESMTP id k8GKojdJ065567; Sat, 16 Sep 2006 13:50:45 -0700 (PDT) (envelope-from jmg@hydrogen.funkthat.com) Received: (from jmg@localhost) by hydrogen.funkthat.com (8.13.6/8.13.3/Submit) id k8GKoi8A065566; Sat, 16 Sep 2006 13:50:44 -0700 (PDT) (envelope-from jmg) Date: Sat, 16 Sep 2006 13:50:44 -0700 From: John-Mark Gurney To: Anders Nordby Message-ID: <20060916205044.GF9421@funkthat.com> Mail-Followup-To: Anders Nordby , FreeBSD-gnats-submit@FreeBSD.org, freebsd-threads@FreeBSD.org, Thomas-Martin Seck , Suleiman Souhlal References: <20060911075431.D12758D9874@fupp.net> <200609110800.k8B80ie3041853@freefall.freebsd.org> <20060912195547.GA71462@totem.fix.no> <20060913185803.GA27955@totem.fix.no> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20060913185803.GA27955@totem.fix.no> User-Agent: Mutt/1.4.2.1i X-Operating-System: FreeBSD 5.4-RELEASE-p6 i386 X-PGP-Fingerprint: B7 EC EF F8 AE ED A7 31 96 7A 22 B3 D8 56 36 F4 X-Files: The truth is out there X-URL: http://resnet.uoregon.edu/~gurney_j/ X-Resume: http://resnet.uoregon.edu/~gurney_j/resume.html Cc: Suleiman Souhlal , FreeBSD-gnats-submit@FreeBSD.org, Thomas-Martin Seck , freebsd-threads@FreeBSD.org Subject: Re: threads/103127: Kernel panic while using thread features in Squid 2.6 X-BeenThere: freebsd-threads@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: John-Mark Gurney List-Id: Threading on FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 16 Sep 2006 20:51:09 -0000 Anders Nordby wrote this message on Wed, Sep 13, 2006 at 20:58 +0200: > After talking with Pawel, I tried the attached patch to get some kqueue > debug info. I just got it: > > Sep 13 20:18:56 cache3 kernel: NULL f_event in new kn > Sep 13 20:18:56 cache3 kernel: f_event == NULL This means that the f_attach method for that event isn't setting f_event properly... We need to figure out which event this is happening w/... Try the following modifications: > --- sys/kern/kern_event.c.orig Wed Sep 13 08:44:57 2006 > +++ sys/kern/kern_event.c Wed Sep 13 08:51:03 2006 > @@ -900,6 +900,8 @@ > goto done; > } > KN_LIST_LOCK(kn); > + if (kn->kn_fop->f_event == NULL) { > + printf("NULL f_event in new kn\n"); printf("kn: ident: %d, filter: %d\n", kn->kn_ident, kn->kn_filter); } > } else { > /* > * The user may change some filter values after the I have a feeling that this is a similar panic that jhb is seeing... Which means that filter will be EVFILT_VNODE (-4)... -- John-Mark Gurney Voice: +1 415 225 5579 "All that I will do, has been done, All that I have, has not."