From: Andres Freund <andres@anarazel.de>
To: Alvaro Herrera <alvherre@2ndquadrant.com>
Cc: Tom Lane <tgl@sss.pgh.pa.us>
Cc: pgsql-hackers@lists.postgresql.org
Subject: Re: pgsql: Fix crash when ALTER TABLE recreates indexes on partitions
Date: Mon, 9 Jul 2018 13:39:15 -0700
Message-ID: <20180709203915.fz44v4odlzmd27v5@alap3.anarazel.de> (raw)
In-Reply-To: <20180705033305.hm75y476lwyqktek@alap3.anarazel.de>
References: <27886.1530335989@sss.pgh.pa.us>
<20180704171519.psqj76htohj7mco5@alvherre.pgsql>
<20180705033305.hm75y476lwyqktek@alap3.anarazel.de>
On 2018-07-04 20:33:05 -0700, Andres Freund wrote:
> On 2018-07-04 13:15:19 -0400, Alvaro Herrera wrote:
> > On 2018-Jun-30, Tom Lane wrote:
> >
> > > Alvaro Herrera <alvherre@alvh.no-ip.org> writes:
> > > > Fix crash when ALTER TABLE recreates indexes on partitions
> > >
> > > So ... buildfarm member skink has been reporting a valgrind failure
> > > during initdb since this patch went in. However, I'm unable to reproduce
> > > such a failure here, and it's less than obvious how this particular patch
> > > could have caused a problem, and skink's report is pretty useless because
> > > it's providing only a numeric stack trace. Thoughts?
> >
> > Actually, older branches are failing in the same way, so it's not my
> > patch that caused it to fail. Something must have changed in the system ...
> > Andres?
>
> I spent a fair amount of time trying to dig into this. It appears to be
> related to a binutils update. Everything built with a binutils version <
> 2.30.90.20180627-1 (in my case 2.30-22) works correctly with
> valgrind. If rebuilt after an upgrade it doesn't. Still trying to
> narrow down further.
FWIW, I've reported this as a bug to debian. And figured out in the
course of collecting the necessary information that forcing gcc to use
the gold linker works around the issue. Started a run on skink with
that, hopefully that resolves the issue.
Greetings,
Andres Freund
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-committers@postgresql.org
Cc: andres@anarazel.de, alvherre@2ndquadrant.com, tgl@sss.pgh.pa.us, pgsql-hackers@lists.postgresql.org
Subject: Re: pgsql: Fix crash when ALTER TABLE recreates indexes on partitions
In-Reply-To: <20180709203915.fz44v4odlzmd27v5@alap3.anarazel.de>
References: <27886.1530335989@sss.pgh.pa.us> <20180704171519.psqj76htohj7mco5@alvherre.pgsql> <20180705033305.hm75y476lwyqktek@alap3.anarazel.de> <20180709203915.fz44v4odlzmd27v5@alap3.anarazel.de>
* 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