Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1eXBw6-0005BD-Uq for pgsql-hackers@arkaria.postgresql.org; Thu, 04 Jan 2018 20:16:23 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1eXBw6-0003wB-4d for pgsql-hackers@arkaria.postgresql.org; Thu, 04 Jan 2018 20:16:22 +0000 Received: from makus.postgresql.org ([2001:4800:1501:1::229]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1eXBw5-0003w1-RL for pgsql-hackers@lists.postgresql.org; Thu, 04 Jan 2018 20:16:21 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1eXBw3-00015t-5H for pgsql-hackers@postgresql.org; Thu, 04 Jan 2018 20:16:20 +0000 Received: from sss1.sss.pgh.pa.us (localhost [127.0.0.1]) by sss.pgh.pa.us (8.14.4/8.14.4) with ESMTP id w04KGFL7025497; Thu, 4 Jan 2018 15:16:15 -0500 From: Tom Lane To: Andres Freund cc: Robert Haas , Thomas Munro , "pgsql-hackers@postgresql.org" Subject: Re: pgsql: Add parallel-aware hash joins. In-reply-to: <20180104200647.wna6yoin7nav5qqo@alap3.anarazel.de> References: <18190.1514943510@sss.pgh.pa.us> <5187.1515028624@sss.pgh.p!a.us> <16320.1515046173@sss.pgh.pa.us> <4847.1515081624@sss.pgh.pa.us> <7839.1515085897@sss.pgh.pa.us> <20180104192033.irv4ppf44i2fesze@alap3.anarazel.de> <20180104200647.wna6yoin7nav5qqo@alap3.anarazel.de> Comments: In-reply-to Andres Freund message dated "Thu, 04 Jan 2018 12:06:47 -0800" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <25495.1515096975.1@sss.pgh.pa.us> Date: Thu, 04 Jan 2018 15:16:15 -0500 Message-ID: <25496.1515096975@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk Andres Freund writes: > On 2018-01-04 11:20:33 -0800, Andres Freund wrote: >> Some packages on skink have been upgraded. It appears that there either >> was a libc or valgrind change that made valgrind not recognize that a >> pointer of 0 might not point anywhere :( > ==5718== Invalid write of size 8 > ==5718== at 0x40E3DD: ExecInterpExpr (execExprInterp.c:1117) > ==5718== by 0x40F5E9: ExecInterpExprStillValid (execExprInterp.c:1788) > ==5718== by 0xE6B0409: ExecEvalExpr (executor.h:282) Are those line numbers supposed to match current HEAD? 1117 does not contain any write AFAICS: if (!op->d.iocoerce.finfo_in->fn_strict || str != NULL) > ==5718== Process terminating with default action of signal 11 (SIGSEGV) > ==5718== Access not within mapped region at address 0x20 > ==5718== at 0x40E3DD: ExecInterpExpr (execExprInterp.c:1117) > ==5718== by 0x40F5E9: ExecInterpExprStillValid (execExprInterp.c:1788) This would be consistent with op->d.iocoerce.finfo_in being NULL, I think, but there is no way that execExpr.c could have created an EEOP_IOCOERCE step without filling in the finfo_in pointer. I think the correct conclusion is that this version of valgrind is buggy as hell. I wouldn't clutter our code with suppressions trying to make it sort-of work. regards, tom lane