Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1kQD0G-0007hc-Ox for pgsql-hackers@arkaria.postgresql.org; Wed, 07 Oct 2020 17:13:24 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1kQD0F-0000VP-NL for pgsql-hackers@arkaria.postgresql.org; Wed, 07 Oct 2020 17:13:23 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1kQD0F-0000VH-GI for pgsql-hackers@lists.postgresql.org; Wed, 07 Oct 2020 17:13:23 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by magus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1kQD0D-0004n4-EY for pgsql-hackers@lists.postgresql.org; Wed, 07 Oct 2020 17:13:23 +0000 Received: from sss1.sss.pgh.pa.us (localhost [127.0.0.1]) by sss.pgh.pa.us (8.15.2/8.15.2) with ESMTP id 097HDIMr2233911; Wed, 7 Oct 2020 13:13:18 -0400 From: Tom Lane To: Noah Misch cc: pgsql-hackers@lists.postgresql.org, David Rowley Subject: Re: Recent failures on buildfarm member hornet In-reply-to: <20201007021941.GD1422897@rfd.leadboat.com> References: <1830491.1601944935@sss.pgh.pa.us> <20201007014507.GB1422897@rfd.leadboat.com> <2040113.1602035809@sss.pgh.pa.us> <20201007021941.GD1422897@rfd.leadboat.com> Comments: In-reply-to Noah Misch message dated "Tue, 06 Oct 2020 19:19:41 -0700" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <2233909.1602090798.1@sss.pgh.pa.us> Date: Wed, 07 Oct 2020 13:13:18 -0400 Message-ID: <2233910.1602090798@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk Noah Misch writes: > On Tue, Oct 06, 2020 at 09:56:49PM -0400, Tom Lane wrote: >> Now that *is* surprising. Could you poke a little further to determine >> which module is getting miscompiled? (gram.o seems like the next most >> likely bet.) > gram.o was it. (The way I rebuilt gram.o also rebuilt parser.o and scan.o, > but those seem far less likely.) This suggests that the problem is misoptimization of gram.y's makeOrderedSetArgs: /* don't merge into the next line, as list_concat changes directargs */ ndirectargs = list_length(directargs); return list_make2(list_concat(directargs, orderedargs), makeInteger(ndirectargs)); I think that if the compiler did what the comment says not to, it'd match this symptom. However, I'm baffled as to why our recent pg_list.h changes would've affected that. regards, tom lane