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 1odDNV-0002Sd-NP for pgsql-bugs@arkaria.postgresql.org; Tue, 27 Sep 2022 16:24:13 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1odDNU-00026W-Fc for pgsql-bugs@arkaria.postgresql.org; Tue, 27 Sep 2022 16:24:12 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1odDNU-00026K-7m for pgsql-bugs@lists.postgresql.org; Tue, 27 Sep 2022 16:24:12 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by makus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1odDNR-0004xs-Vs for pgsql-bugs@lists.postgresql.org; Tue, 27 Sep 2022 16:24:11 +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 28RGO8ep3800398; Tue, 27 Sep 2022 12:24:08 -0400 From: Tom Lane To: Peter Geoghegan cc: Thomas Munro , Dmitry Astapov , pgsql-bugs@lists.postgresql.org Subject: Re: BUG #17619: AllocSizeIsValid violation in parallel hash join In-reply-to: References: <17619-0de62ceda812b8b5@postgresql.org> <2169849.1663975173@sss.pgh.pa.us> Comments: In-reply-to Peter Geoghegan message dated "Tue, 27 Sep 2022 09:13:02 -0700" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <3800396.1664295848.1@sss.pgh.pa.us> Date: Tue, 27 Sep 2022 12:24:08 -0400 Message-ID: <3800397.1664295848@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk Peter Geoghegan writes: > On Fri, Sep 23, 2022 at 6:31 PM Peter Geoghegan wrote: >> Uh, why is it okay that we don't zero-initialize memory used for >> things like PARALLEL_KEY_BUFFER_USAGE and PARALLEL_KEY_WAL_USAGE? > Ping? I'm pretty sure that this needs to be fixed. That scares me too, but how come things aren't falling over routinely? Can we even make a test case where it breaks? I think I'd personally prefer to treat such memory more like we treat palloc'd memory, ie there's *not* a guarantee of zero initialization and indeed testing builds intentionally clobber it. regards, tom lane