Received: from malur.postgresql.org ([2a02:16a8:dc51::56]) by arkaria.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1fccwP-0002I7-Bc for pgsql-hackers@arkaria.postgresql.org; Mon, 09 Jul 2018 20:39:25 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1fccwN-00057k-Op for pgsql-hackers@arkaria.postgresql.org; Mon, 09 Jul 2018 20:39:23 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1fccwN-00057d-IA for pgsql-hackers@lists.postgresql.org; Mon, 09 Jul 2018 20:39:23 +0000 Received: from wout1-smtp.messagingengine.com ([64.147.123.24]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1fccwK-0003kN-DU for pgsql-hackers@lists.postgresql.org; Mon, 09 Jul 2018 20:39:23 +0000 Received: from compute5.internal (compute5.nyi.internal [10.202.2.45]) by mailout.west.internal (Postfix) with ESMTP id A969D472; Mon, 9 Jul 2018 16:39:17 -0400 (EDT) Received: from mailfrontend2 ([10.202.2.163]) by compute5.internal (MEProxy); Mon, 09 Jul 2018 16:39:17 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=anarazel.de; h= cc:content-type:date:from:in-reply-to:message-id:mime-version :references:subject:to:x-me-sender:x-me-sender:x-sasl-enc; s= fm2; bh=gNn8oWaJA3oKihQ5JdyGt5KOizVOjF2oGhcgA6YuksQ=; b=TO8JCIL5 Y1k+1+vIaudPS6R1Dy1XJ36D8idMFXnPg28rvUnWSKdongsEbnSLiglESOYZn7bs cARXzGHWY2z16ly+JOcQa0xkX9H0Q2e8ETo6Yw9s4WG/5Gls7b2+yeoQhQgPcavW K5Fh+XRVxN/UVkhLP9XA+YotSUDN7VBijDPXaGCq1U0hCjnw5C0OTAjzdOXsovIV pdHRbM7LcD5D3bM0V/lSbvgXK5F+bIkCqxEIkY+x70kTfOymdNa9VnfFID/gE3yo 4+YXKuaxC1Vjvm460CP3cIJjr33m03ZhSNLEhvO873Y+t7t5IREjNyQVfOyZm3+o KDxnAiot1+da7A== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to:x-me-sender :x-me-sender:x-sasl-enc; s=fm3; bh=gNn8oWaJA3oKihQ5JdyGt5KOizVOj F2oGhcgA6YuksQ=; b=VO4+P2dPIQWtwckOmiiTxs8nF7o4yeO4HWeYmzZtph8ag WRS4F1EPQZjxEA0mx128jgpi+riq6eKTK1hty+gvbGbYuTBf8m4Wz/BXvWca1+nE DR51bcBIaS1MKwTSrD+5VaIPxLxpD6Lm/+BhpbEFcudt7flKiVw+1QtgOalqr14r VaNpO4ZPmNuQGpUTKDyeIv8rU/r423hdezAugXxK6GrZ65TP43w5SV3JWYEXKN4Z 3Xg68QruCXEyFbAN8QhNbTbG0W9IgOF1AZRafSwNfwx+CBjDyZGTo+o50lJfl9/3 s3gD0bgAfBuLTv6Po9viznF2x3eEbmQXEJZmUZVIg== X-ME-Proxy: X-ME-Sender: Received: from intern.anarazel.de (c-98-210-140-171.hsd1.ca.comcast.net [98.210.140.171]) by mail.messagingengine.com (Postfix) with ESMTPA id C3DB91026B; Mon, 9 Jul 2018 16:39:16 -0400 (EDT) Date: Mon, 9 Jul 2018 13:39:15 -0700 From: Andres Freund To: Alvaro Herrera Cc: Tom Lane , pgsql-hackers@lists.postgresql.org Subject: Re: pgsql: Fix crash when ALTER TABLE recreates indexes on partitions Message-ID: <20180709203915.fz44v4odlzmd27v5@alap3.anarazel.de> References: <27886.1530335989@sss.pgh.pa.us> <20180704171519.psqj76htohj7mco5@alvherre.pgsql> <20180705033305.hm75y476lwyqktek@alap3.anarazel.de> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20180705033305.hm75y476lwyqktek@alap3.anarazel.de> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk 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 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