Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1WPxQy-0005UA-Iv for pgsql-bugs@arkaria.postgresql.org; Tue, 18 Mar 2014 17:04:12 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.80) (envelope-from ) id 1WPxQy-0000Si-33 for pgsql-bugs@arkaria.postgresql.org; Tue, 18 Mar 2014 17:04:12 +0000 Received: from makus.postgresql.org ([2001:4800:7903:4::125]) by malur.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1WPxQw-0000Sb-Ty for pgsql-bugs@postgresql.org; Tue, 18 Mar 2014 17:04:11 +0000 Received: from mail-ee0-x22d.google.com ([2a00:1450:4013:c00::22d]) by makus.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1WPxQs-00069V-Dr for pgsql-bugs@postgresql.org; Tue, 18 Mar 2014 17:04:10 +0000 Received: by mail-ee0-f45.google.com with SMTP id d17so5644741eek.32 for ; Tue, 18 Mar 2014 10:04:05 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=sender:date:from:to:subject:message-id:references:mime-version :content-type:content-disposition:content-transfer-encoding :in-reply-to:user-agent; bh=6fzebnfX/0ufLbShp8Pq5uqqqHWPLiVjADwoqS+W+OU=; b=BCvj9D3pqKrkcRcNVK/75F69XvLLjYewclgHKDfbUfNG4RtuG7YmkQhXsE6xb1cnTu GSUSk0oDpdY5up8iCBBomLO/XeEGcdeUCruroIHqY0QEo7fff2kKLuTYK386/03fCcDJ BQzQjgd+ONM6OTxsYf3XVIoNRYoiGPzutOwqgf5VPPdDLhJXbMPy1iajVFmuCJbmwHLm Zem7osJK62ZWIZRcyU9tKxyxfXWtrrulm5w5Z1JoNoxUAO7G0dkUtXZP8QKSVYOApyoZ YLntWoAGhRuFpOJoW1dbqmLFWs5UOAHLE3zrKeY6KYlXhrD2gEnh0js1ensxjwfv9R88 2v9w== X-Received: by 10.15.111.206 with SMTP id cj54mr31130696eeb.8.1395162245193; Tue, 18 Mar 2014 10:04:05 -0700 (PDT) Received: from localhost (ip-46-232-148-34.static.adsl.cheapnet.it. [46.232.148.34]) by mx.google.com with ESMTPSA id p8sm36257239eef.26.2014.03.18.10.04.03 for (version=TLSv1.2 cipher=RC4-SHA bits=128/128); Tue, 18 Mar 2014 10:04:04 -0700 (PDT) Date: Tue, 18 Mar 2014 18:04:01 +0100 From: Sandro Santilli To: Tom Lane , Craig Ringer , Florian Pflug , pgsql-bugs@postgresql.org Subject: Leaking regexp_replace in 9.3.1 ? (was: [HACKERSUninterruptable regexp_replace in 9.3.1 ?) Message-ID: <20140318170401.GE29859@localhost> References: <20140221091759.GK6924@localhost> <530774E5.5040105@2ndquadrant.com> <53077EED.2000907@2ndquadrant.com> <3663.1393002213@sss.pgh.pa.us> <646.1393031856@sss.pgh.pa.us> <20140226150113.GD9740@localhost> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20140226150113.GD9740@localhost> User-Agent: Mutt/1.5.21 (2010-09-15) X-Pg-Spam-Score: -1.9 (-) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-bugs Precedence: bulk Sender: pgsql-bugs-owner@postgresql.org On Wed, Feb 26, 2014 at 04:01:13PM +0100, Sandro Santilli wrote: > On Fri, Feb 21, 2014 at 08:17:36PM -0500, Tom Lane wrote: > > I wrote: > > > Craig Ringer writes: > > >> So I'd like to confirm that this issue doesn't affect 9.1. > > > > > It doesn't. I suspect it has something to do with 173e29aa5 or one > > > of the nearby commits in backend/regex/. > > > > Indeed, git bisect fingers that commit as introducing the problem. > > Is there anything I can do for this to not fade to oblivion ? > Will a mail to pgsql-bugs help ? Tom: I saw you pushed a fix for the interruptability with this: https://github.com/postgres/postgres/commit/f5f21315d25ffcbfe7c6a3fa6ffaad54d31bcde0 But we also noticed a memory leak in the regepx_replace call, did you notice that in your tests ? Same regexp as reported. Do you need another testcase ? --strk; ()  ASCII ribbon campaign -- Keep it simple ! /\  http://strk.keybit.net/rants/ascii_mails.txt -- Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-bugs