Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1WQHue-0005Ba-3Y for pgsql-bugs@arkaria.postgresql.org; Wed, 19 Mar 2014 14:56:12 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.80) (envelope-from ) id 1WQHud-0000SQ-46 for pgsql-bugs@arkaria.postgresql.org; Wed, 19 Mar 2014 14:56:11 +0000 Received: from makus.postgresql.org ([2001:4800:7903:4::125]) by malur.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1WQHub-0000Qf-Bm for pgsql-bugs@postgresql.org; Wed, 19 Mar 2014 14:56:09 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by makus.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1WQHuZ-0004uL-2M for pgsql-bugs@postgresql.org; Wed, 19 Mar 2014 14:56:08 +0000 Received: from sss1.sss.pgh.pa.us (localhost [127.0.0.1]) by sss.pgh.pa.us (8.14.4/8.14.4) with ESMTP id s2JEtp9H030517; Wed, 19 Mar 2014 10:55:51 -0400 From: Tom Lane To: Greg Stark cc: Sandro Santilli , Craig Ringer , Florian Pflug , PostgreSQL Bugs Subject: Re: Re: Leaking regexp_replace in 9.3.1 ? (was: [HACKERSUninterruptable regexp_replace in 9.3.1 ?) In-reply-to: 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> <20140318170401.GE29859@localhost> <32100.1395186092@sss.pgh.pa.us> <20140319075359.GA4042@localhost> <20140319085702.GF4042@localhost> Comments: In-reply-to Greg Stark message dated "Wed, 19 Mar 2014 10:57:10 -0000" Date: Wed, 19 Mar 2014 10:55:51 -0400 Message-ID: <30516.1395240951@sss.pgh.pa.us> 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 Greg Stark writes: > It looks like a simple bug pg_regexec where it's reusing a loop > counter "n" to mean two different things. When it goes to free all the > subdfas it looks like the code was written based "n" still being the > number of trees but in fact it's been reused to be the number of > matches. Looks like it's my bug (how embarrassing). Thanks! regards, tom lane -- Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-bugs