Return-Path: Delivered-To: apmail-apr-dev-archive@www.apache.org Received: (qmail 20406 invoked from network); 3 Apr 2006 23:32:39 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 3 Apr 2006 23:32:39 -0000 Received: (qmail 3641 invoked by uid 500); 3 Apr 2006 23:32:39 -0000 Delivered-To: apmail-apr-dev-archive@apr.apache.org Received: (qmail 3289 invoked by uid 500); 3 Apr 2006 23:32:38 -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 3278 invoked by uid 99); 3 Apr 2006 23:32:37 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 03 Apr 2006 16:32:37 -0700 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (asf.osuosl.org: domain of trawick@gmail.com designates 64.233.162.196 as permitted sender) Received: from [64.233.162.196] (HELO zproxy.gmail.com) (64.233.162.196) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 03 Apr 2006 16:32:37 -0700 Received: by zproxy.gmail.com with SMTP id l8so1782871nzf for ; Mon, 03 Apr 2006 16:32:16 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:mime-version:content-type:content-transfer-encoding:content-disposition; b=PohwvctNSQJMl1mSB2CnskvFUbJi5wdEgDv9jMiaX5cm9Tz0CLcLDtYHZy/tjvYUTJO6yrN0TFZrRDsc1R2HIGpaFxjsCzMfJuqJ+DfvvaWy9qxZe2imGpCu/6L9BavEfN3KEUkqAdNE10qWCEavs3cSg2iI1L21Eg/BFPjknjo= Received: by 10.36.66.16 with SMTP id o16mr3490645nza; Mon, 03 Apr 2006 16:32:16 -0700 (PDT) Received: by 10.36.68.14 with HTTP; Mon, 3 Apr 2006 16:32:16 -0700 (PDT) Message-ID: Date: Mon, 3 Apr 2006 19:32:16 -0400 From: "Jeff Trawick" To: dev@apr.apache.org Subject: apr_allocator_max_alloc_set()? MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N Pass it a max alloc size and an abort function and maybe even user data. Whenever a heap allocation is made which would extend the bytes for that allocator beyond the threshhold, the abort function is called. Maybe it returns, maybe it doesn't. [Mon Apr 3 19:24 2006] [crit] using 507904 bytes for /all/your/swapspace/are/belong... [Mon Apr 3 19:24 2006] [crit] using 1007616 bytes for /all/your/swapspace/are/belong... [Mon Apr 3 19:24 2006] [crit] aborting request /all/your/swapspace/are/belong... [Mon Apr 3 19:24 2006] [crit] gracefully terminating process 1357 or [Mon Apr 3 19:24 2006] [notice] child pid 1357 exit signal Segmentation fault (11) (no patch)