From: Tom Lane <tgl@sss.pgh.pa.us>
To: Peter Geoghegan <pg@bowt.ie>
Cc: Alvaro Herrera <alvherre@alvh.no-ip.org>
Cc: Andres Freund <andres@anarazel.de>
Cc: Vitaly V. Voronov <wizard_1024@tut.by>
Cc: PostgreSQL mailing lists <pgsql-bugs@lists.postgresql.org>
Subject: Re: BUG #15144: *** glibc detected *** postgres: postgres smsconsole [local] SELECT: double free or corruption (!pre
Date: Mon, 16 Apr 2018 18:21:06 -0400
Message-ID: <1155.1523917266@sss.pgh.pa.us> (raw)
In-Reply-To: <CAH2-Wz=weqM0AYab+xzuM5cBEUT9PQRKSHgG05CRqUV-=fR9kQ@mail.gmail.com>
References: <CAH2-Wz==4+OuyyT41md6u3QgJ89RRPMYzAiMGY9vy8Y+E-Lbdg@mail.gmail.com>
<20180416174817.3krcrdtfkiwkhj4s@alvherre.pgsql>
<CAH2-Wz=RDFQAqczdFezYCuyEHid4eHe6e5uEu1cVsFg7t4Hsyw@mail.gmail.com>
<29479.1523912165@sss.pgh.pa.us>
<CAH2-Wz=weqM0AYab+xzuM5cBEUT9PQRKSHgG05CRqUV-=fR9kQ@mail.gmail.com>
Peter Geoghegan <pg@bowt.ie> writes:
> On Mon, Apr 16, 2018 at 1:56 PM, Tom Lane <tgl@sss.pgh.pa.us> wrote:
>> BTW, I notice that in this situation, readtup_heap seems to be
>> palloc'ing in the caller's context, but it counts the memory as
>> if it were in the tuplestore's context. Somebody's confused there.
> I could just kick myself for not going through tuplestore (and its
> version of readtup_heap) as part of the 90decdba3 work.
Yeah, I should have thought to question that too. tuplestore was
originally built by stripping down tuplesort, and at least in the
beginning, I'm pretty sure that all these semantic API details were
the same. We should likely have made more effort to keep them in
sync. (Still, until we've proven that there *is* a bug here,
let's not kick ourselves too hard.)
regards, tom lane
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, pg@bowt.ie, alvherre@alvh.no-ip.org, andres@anarazel.de, wizard_1024@tut.by
Subject: Re: BUG #15144: *** glibc detected *** postgres: postgres smsconsole [local] SELECT: double free or corruption (!pre
In-Reply-To: <1155.1523917266@sss.pgh.pa.us>
References: <CAH2-Wz==4+OuyyT41md6u3QgJ89RRPMYzAiMGY9vy8Y+E-Lbdg@mail.gmail.com> <20180416174817.3krcrdtfkiwkhj4s@alvherre.pgsql> <CAH2-Wz=RDFQAqczdFezYCuyEHid4eHe6e5uEu1cVsFg7t4Hsyw@mail.gmail.com> <29479.1523912165@sss.pgh.pa.us> <CAH2-Wz=weqM0AYab+xzuM5cBEUT9PQRKSHgG05CRqUV-=fR9kQ@mail.gmail.com> <1155.1523917266@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