Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 21 Sep 2006 07:30:25 GMT
From:      Anders Nordby <anders@fupp.net>
To:        freebsd-threads@FreeBSD.org
Subject:   Re: threads/103127: Kernel panic while using thread features in Squid 2.6
Message-ID:  <200609210730.k8L7UPoY037244@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help
The following reply was made to PR kern/103127; it has been noted by GNATS.

From: Anders Nordby <anders@fupp.net>
To: FreeBSD-gnats-submit@FreeBSD.org, freebsd-threads@FreeBSD.org,
	Thomas-Martin Seck <tmseck@netcologne.de>,
	Suleiman Souhlal <ssouhlal@FreeBSD.org>
Cc:  
Subject: Re: threads/103127: Kernel panic while using thread features in Squid 2.6
Date: Thu, 21 Sep 2006 09:24:09 +0200

 Hi,
 
 On Sat, Sep 16, 2006 at 01:59:08PM -0700, John-Mark Gurney wrote:
 > Please try the attached patch.. It appears that the badfo_kqfilter was
 > returning sucess instead of error since it was introcuded many years
 > ago...  This many still cause other problems w/ squid, but will fix
 > the panics...
 > --- kern_descrip.c	21 Jul 2006 20:24:00 -0000	1.297
 > +++ kern_descrip.c	16 Sep 2006 20:58:40 -0000
 > @@ -2632,7 +2632,7 @@
 >  badfo_kqfilter(struct file *fp, struct knote *kn)
 >  {
 >  
 > -	return (0);
 > +	return (EINVAL);
 >  }
 >  
 >  static int
 
 This patch fixes the kernel panics that I have reported about in this
 PR. I have 9 cache servers with Squid2.6 that had this problem. After
 patching them, one by one, they haven't had any panics anymore.
 
 Cheers,
 
 -- 
 Anders.



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