Return-Path: Delivered-To: apmail-tomcat-dev-archive@www.apache.org Received: (qmail 33607 invoked from network); 30 May 2007 20:57:10 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 30 May 2007 20:57:10 -0000 Received: (qmail 18536 invoked by uid 500); 30 May 2007 20:57:10 -0000 Delivered-To: apmail-tomcat-dev-archive@tomcat.apache.org Received: (qmail 18498 invoked by uid 500); 30 May 2007 20:57:10 -0000 Mailing-List: contact dev-help@tomcat.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: "Tomcat Developers List" Delivered-To: mailing list dev@tomcat.apache.org Received: (qmail 18487 invoked by uid 99); 30 May 2007 20:57:09 -0000 Received: from herse.apache.org (HELO herse.apache.org) (140.211.11.133) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 30 May 2007 13:57:09 -0700 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (herse.apache.org: domain of henri.gomez@gmail.com designates 64.233.166.177 as permitted sender) Received: from [64.233.166.177] (HELO py-out-1112.google.com) (64.233.166.177) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 30 May 2007 13:57:04 -0700 Received: by py-out-1112.google.com with SMTP id u77so4542063pyb for ; Wed, 30 May 2007 13:56:42 -0700 (PDT) DKIM-Signature: a=rsa-sha1; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=iQA39/qwRYvXjXXojbQPbnuB9syInu3nR04qwqZt5KVKze7hTQM544Kpj/Zff+bxdoqQTkXvrsIYZPrBeJnlG5T8X/1mHvuhusH+113nQTAqXDTn7i8A8BRTEMa3vjNGkRyntjK6WkDNS/VnvJI/UZhVuvkW69eGSwdXFd/5ar8= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=TG36S/RwLfGxhelZyTBxB1oKMRDEHN/u+ZWpVYFo7/mmw4iGXTjt4a08vbVQEHwMoQwwRG0aIjKlK8jdc55V1e65an6SCasbpkVAUtTfuLw5ZbkMMawjmIPo/nI6TR38w67WAl+OCfLr5I8+WG8Detj3xwjafl7skNN8nEdspXI= Received: by 10.64.180.20 with SMTP id c20mr16260353qbf.1180558602599; Wed, 30 May 2007 13:56:42 -0700 (PDT) Received: by 10.65.59.15 with HTTP; Wed, 30 May 2007 13:56:42 -0700 (PDT) Message-ID: <6291fc850705301356l1f419d54pcacbe0d9d0bfbc93@mail.gmail.com> Date: Wed, 30 May 2007 22:56:42 +0200 From: "Henri Gomez" To: "Tomcat Developers List" Subject: Re: mod_jk build: threading detection broken In-Reply-To: <465D97E1.3060304@kippdata.de> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <465D97E1.3060304@kippdata.de> X-Virus-Checked: Checked by ClamAV on apache.org When I build jk on SLES Linux, I used to build it for the threaded (mpm) and for the not-threaded (prefork) apache 2.x version. BTW, configure fail since some release and can't works with apx2-mpm (The SLES apxs2 for mpm mode). I located the problem in configure and will report it later. BTW, on i5/OS, the -D_REENTRANT is forced in module compilation. 2007/5/30, Rainer Jung : > Hi, > > this while mail only concerns non Win and non Netware platforms. > > Our detection of multi-threading during configure for mod_jk is broken. > We rely on the fact, that APR set -D_REENTRANT during build for > multi-threaded APR. But in fact > > - APR doesn't set it for various platforms including AIX and Mac OS X > - APR sets it for the other platforms independant of building a > multi-threaded Apache httpd or not > > So as a result, for Linux, Solaris and BSD we always build mod_jk with > thread locks, for AIX and Mac OS X we never have the thread locks (and > therefore we can produce wonderful crashes). > > I checked installed Apache httpd to find out, how we could detect the > threading model of the apache httpd against we compile. Unfortunately we > can only find out the name of the MPM, but not (at least not in a robust > way) if it is threaded or not. > > Since there are so many MPMs out there and i don't want to manage a long > table with all those names, I think we have no good way of detecting the > threading model. > > I suggest, that we build against httpd 2.x always thread-safe, at least > unless the existing flag -enable-prefork is used and document this > behaviour. > > This will in fact not change existing behaviour for the platforms > Solaris, Linux and BSD and will fix problems on AIX and Mac OS X. > > Comments? > > Regards, > > Rainer > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org > For additional commands, e-mail: dev-help@tomcat.apache.org > > --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org For additional commands, e-mail: dev-help@tomcat.apache.org