Re: pg_ctl infinite loop and memory leak

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Jeff Davis <pgsql(at)j-davis(dot)com>
Cc: pgsql-bugs(at)postgresql(dot)org
Subject: Re: pg_ctl infinite loop and memory leak
Date: 2009-09-02 02:50:58
Message-ID: 24368.1251859858@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-bugs

Jeff Davis <pgsql(at)j-davis(dot)com> writes:
> On Tue, 2009-09-01 at 22:01 -0400, Tom Lane wrote:
>> Where's the memory leak?

> The xstrdup() on the zero-length string.

Oh, I see. But actually, it's also clobbering memory like crazy (since
we'll run off the result[] array in no time). Surprising it doesn't
crash from that.

regards, tom lane

In response to

Browse pgsql-bugs by date

  From Date Subject
Next Message Tom Lane 2009-09-02 04:25:00 Re: lost statistics; analyze needs to execute twice
Previous Message Jeff Davis 2009-09-02 02:38:08 Re: pg_ctl infinite loop and memory leak