Comments about FreeBSD threading from Apache people

Craig Rodrigues rodrigc at crodrigues.org
Sun Nov 9 22:59:20 PST 2003


Hi,

I tried to submit a patch to teh Apache Portable Runtime
people to fix up the threads support in apr.

Now, they are complaining about perceived bugs
in the FreeBSD threads code.

Can someone with more knowledge about this stuff
comment on these perceptions?

-- 
Craig Rodrigues        
http://crodrigues.org
rodrigc at crodrigues.org

----- Forwarded message from Justin Erenkrantz <justin at erenkrantz.com> -----

X-Originating-IP: [216.220.40.247]
Date: Sun, 09 Nov 2003 22:39:05 -0800
From: Justin Erenkrantz <justin at erenkrantz.com>
To: Craig Rodrigues <rodrigc at crodrigues.org>, dev at apr.apache.org
Subject: Re: [PATCH] FreeBSD threads configure support
In-Reply-To: <20031109234157.GA58055 at crodrigues.org>
X-Mailer: Mulberry/3.1.0 (Mac OS X)
X-Spam-Status: No, hits=0.0 required=5.0 tests=none autolearn=no 
	version=2.70-cvs
X-Spam-Checker-Version: SpamAssassin 2.70-cvs (1.217-2003-10-04-exp) on 
	scotch.ics.uci.edu

--On Sunday, November 9, 2003 6:41 PM -0500 Craig Rodrigues 
<rodrigc at crodrigues.org> wrote:

>I am the maintainer of the FreeBSD port of apr.
>
>Here is a patch that updates the configury checks for
>pthread flags in FreeBSD.

Have the threading/cond-var/socket race conditions been fixed in FreeBSD?

That is, does worker MPM from httpd-2.x function properly with multiple 
clients and multiple processes?  We've seen that the pthread condition 
variables did not function properly when threading was enabled - this is why 
we had APR_SETIFNULL(enable_threads, [no]) as we were not confident in 
FreeBSD's reliability with threads.  Please see STATUS entries in httpd-2.x 
regarding this.

Until that is confirmed, I'd highly recommend *not* enabling threads in 
FreeBSD - last we heard was that FreeBSD 4.x and 5.x were still broken.  -- 
justin

----- End forwarded message -----


More information about the freebsd-threads mailing list