Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1hvnMF-0002T7-A8 for pgsql-bugs@arkaria.postgresql.org; Thu, 08 Aug 2019 18:41:51 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1hvnMD-0007yp-So for pgsql-bugs@arkaria.postgresql.org; Thu, 08 Aug 2019 18:41:49 +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_SHA1:256) (Exim 4.89) (envelope-from ) id 1hvnMD-0007yi-LD for pgsql-bugs@lists.postgresql.org; Thu, 08 Aug 2019 18:41:49 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1hvnMB-0000GX-Fg; Thu, 08 Aug 2019 18:41:49 +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 x78IfgwE009617; Thu, 8 Aug 2019 14:41:42 -0400 From: Tom Lane To: Andres Freund cc: Alvaro Herrera , Alexander Lakhin , pgsql-bugs@lists.postgresql.org, PG Bug reporting form Subject: Re: BUG #15943: Valgrind-detected error in SlruPhysicalWritePage In-reply-to: <6F9C8AAA-D805-4E1D-8028-C9E1A1D8F0AB@anarazel.de> References: <20190808164332.GA20632@alvherre.pgsql> <6F9C8AAA-D805-4E1D-8028-C9E1A1D8F0AB@anarazel.de> Comments: In-reply-to Andres Freund message dated "Thu, 08 Aug 2019 14:21:04 -0400" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <9615.1565289702.1@sss.pgh.pa.us> Content-Transfer-Encoding: quoted-printable Date: Thu, 08 Aug 2019 14:41:42 -0400 Message-ID: <9616.1565289702@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk Andres Freund writes: > Seems there's no reason to not zero initialize memory here? But perhaps = just by initializing the stack variable? I think all we need here is another suppression in src/tools/valgrind.supp. We have not insisted on zeroing pad bytes that get sent to disk in the places already enumerated in valgrind.supp, so why would we apply a different rule to async.c? regards, tom lane