Return-Path: Delivered-To: apmail-apr-dev-archive@www.apache.org Received: (qmail 57483 invoked from network); 14 Aug 2006 21:42:51 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 14 Aug 2006 21:42:51 -0000 Received: (qmail 12465 invoked by uid 500); 14 Aug 2006 21:42:50 -0000 Delivered-To: apmail-apr-dev-archive@apr.apache.org Received: (qmail 12192 invoked by uid 500); 14 Aug 2006 21:42:50 -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 12181 invoked by uid 99); 14 Aug 2006 21:42:49 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 14 Aug 2006 14:42:49 -0700 X-ASF-Spam-Status: No, hits=0.5 required=10.0 tests=DNS_FROM_RFC_ABUSE,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (asf.osuosl.org: domain of rooneg@gmail.com designates 64.233.162.195 as permitted sender) Received: from [64.233.162.195] (HELO nz-out-0102.google.com) (64.233.162.195) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 14 Aug 2006 14:42:49 -0700 Received: by nz-out-0102.google.com with SMTP id s18so432373nze for ; Mon, 14 Aug 2006 14:42:28 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:sender:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references:x-google-sender-auth; b=Zlq7NiZK98IkoT60HUvuGwA0e1Kk3hAN1MdtwJXrlyyLadhex3lADzAjq89UaVq5jbIFtISTgV+7yG7YP0rwjOVR5+T/BScC1G3VGKcQBcEKegsobfmTeksqwKPcDg8y1HQAhEar6Q95nbwfzg0o8N5I5sy5ZuSHS4jxc07+k7k= Received: by 10.65.119.14 with SMTP id w14mr7762961qbm; Mon, 14 Aug 2006 14:42:28 -0700 (PDT) Received: by 10.64.243.8 with HTTP; Mon, 14 Aug 2006 14:42:28 -0700 (PDT) Message-ID: <7edfeeef0608141442o1ed30e9ar7f576ea106788113@mail.gmail.com> Date: Mon, 14 Aug 2006 17:42:28 -0400 From: "Garrett Rooney" Sender: rooneg@gmail.com To: "APR Development List" Subject: Re: Problems with DSOs and Pools In-Reply-To: <20060814211502.GA24628@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <7edfeeef0608110942h8caf669t96585359a5c61f17@mail.gmail.com> <20060814093826.GA11345@redhat.com> <7edfeeef0608141155q639c41detf46c8c653a47831f@mail.gmail.com> <20060814211502.GA24628@redhat.com> X-Google-Sender-Auth: 495dc1d146cd9f3c X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N On 8/14/06, Joe Orton wrote: > On Mon, Aug 14, 2006 at 02:55:49PM -0400, Garrett Rooney wrote: > > I'm really just hoping for a way to make DSO loaded libraries just the > > same as any other library, if they require a whole lot of backflips to > > use reliably, that seems like a problem to me. > > Of course, with DSOs there are some whole new lifetime issues to think > about - it *is* difficult, no doubt about it. Nesting pools properly > and avoiding "global" pools helps with constraining the DSO to its own > little short-lived world. > > I'm not seeing anything at all here which needs changing in APR; just > some application code which has not been designed in anticipation of > being used from a DSO. That is really not something which can or should > be fixed in APR. But if it's not fixed in APR then we've basically determined that you cannot write a library that uses APR and DSOs and exposes interfaces to the outside world that involve pools, or apparently constant strings, it seems, or if you do you have to impose all sorts of extra requirements on the lifetimes of pools that calling code passes in. That seems kind of unreasonable to me, especially since we have a place (apr_initialize) that is in a perfect position to solve this problem for us, why can't we use it? -garrett