pg.ddx.io  pgsql-bugs@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: Greg Stark <stark@mit.edu>
Cc: Sandro Santilli <strk@keybit.net>
Cc: Craig Ringer <craig@2ndquadrant.com>
Cc: Florian Pflug <fgp@phlo.org>
Cc: PostgreSQL Bugs <pgsql-bugs@postgresql.org>
Subject: Re: Re: Leaking regexp_replace in 9.3.1 ? (was: [HACKERSUninterruptable regexp_replace in 9.3.1 ?)
Date: Wed, 19 Mar 2014 10:55:51 -0400
Message-ID: <30516.1395240951@sss.pgh.pa.us> (raw)
In-Reply-To: <CAM-w4HNWVuNqo0d8DUNg5Ucaw6wnx7yzWv6zKnK5RRFN=_rT4Q@mail.gmail.com>
References: <20140221091759.GK6924@localhost>
	<530774E5.5040105@2ndquadrant.com>
	<D4594E29-6A28-43C0-BD33-FC3EE8A23683@phlo.org>
	<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>
	<CAM-w4HNWVuNqo0d8DUNg5Ucaw6wnx7yzWv6zKnK5RRFN=_rT4Q@mail.gmail.com>
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-bugs>

Greg Stark <stark@mit.edu> 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



view thread (8+ messages)

Message-ID: <30516.1395240951@sss.pgh.pa.us>
Permalink:  ../30516.1395240951@sss.pgh.pa.us/
Also on:    postgresql.org/message-id/30516.1395240951@sss.pgh.pa.us

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-bugs@postgresql.org
  Cc: tgl@sss.pgh.pa.us, stark@mit.edu, strk@keybit.net, craig@2ndquadrant.com, fgp@phlo.org
  Subject: Re: Leaking regexp_replace in 9.3.1 ? (was: [HACKERSUninterruptable regexp_replace in 9.3.1 ?)
  In-Reply-To: <30516.1395240951@sss.pgh.pa.us>
  References: <20140221091759.GK6924@localhost> <530774E5.5040105@2ndquadrant.com> <D4594E29-6A28-43C0-BD33-FC3EE8A23683@phlo.org> <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> <CAM-w4HNWVuNqo0d8DUNg5Ucaw6wnx7yzWv6zKnK5RRFN=_rT4Q@mail.gmail.com> <30516.1395240951@sss.pgh.pa.us>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox