From dev-return-14560-apmail-apr-dev-archive=apr.apache.org@apr.apache.org Sun Aug 14 02:48:05 2005 Return-Path: Delivered-To: apmail-apr-dev-archive@www.apache.org Received: (qmail 26484 invoked from network); 14 Aug 2005 02:48:05 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 14 Aug 2005 02:48:05 -0000 Received: (qmail 60360 invoked by uid 500); 14 Aug 2005 02:48:03 -0000 Delivered-To: apmail-apr-dev-archive@apr.apache.org Received: (qmail 60317 invoked by uid 500); 14 Aug 2005 02:48:03 -0000 Mailing-List: contact dev-help@apr.apache.org; run by ezmlm Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Id: Delivered-To: mailing list dev@apr.apache.org Received: (qmail 60304 invoked by uid 99); 14 Aug 2005 02:48:03 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 13 Aug 2005 19:48:03 -0700 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received-SPF: pass (asf.osuosl.org: local policy) Received: from [216.255.199.145] (HELO utopia.in.force-elite.com) (216.255.199.145) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 13 Aug 2005 19:48:23 -0700 X-AuthUser: chip@force-elite.com Received: from [127.0.0.1] (127.0.0.1:36384) by localhost with [XMail 1.17 (Linux/Ix86) ESMTP Server] id for from ; Sat, 13 Aug 2005 19:47:59 -0700 Message-ID: <42FEB0E0.4090102@force-elite.com> Date: Sat, 13 Aug 2005 19:48:00 -0700 From: Paul Querna User-Agent: Mozilla Thunderbird 1.0.2 (Macintosh/20050317) X-Accept-Language: en-us, en MIME-Version: 1.0 To: Garrett Rooney CC: dev@apr.apache.org Subject: KQueue Broken on OS X 10.4.x, was Re: APR 1.2.1 References: <42FE9A26.20001@force-elite.com> <42FEA0C7.3070007@electricjellyfish.net> In-Reply-To: <42FEA0C7.3070007@electricjellyfish.net> X-Enigmail-Version: 0.91.0.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N Garrett Rooney wrote: > Seems to work fine my Linux box, but I'm having trouble with the tests > on Mac OS X 10.4.2. > .... > Then, once I run 'make install' so the tests can run testsock seem to go > into an infinite loop in the sockchild binary, it seems to be looping > around the apr_wait_for_io_or_timeout in apr_socket_recv. The actual > testall process appears to be stuck in apr_proc_wait waiting for > sockchild to die. This appears to be the same problem that Justin > pointed out with the last tarball. This problem seems slightly more > worrisome, and I'm a little uncomfortable voting +1 on the tarball as a > result. > > Does anyone who knows the pollset/sockets code have any idea what could > cause this kind of thing? So, it looks like Apple screwed up KQueue in their 10.4 kernel. libevent recently added code that attempts to detect this bug, and if found, reverts to select: http://cvs.sourceforge.net/viewcvs.py/levent/libevent/kqueue.c?r1=1.24&r2=1.25 SO, it would be nice if Apple stopped being shit and fixed kqueue *and* poll, but I guess all we can really do at this point is just revert to using select on OSX. -Paul