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 1oIzk7-00051k-OM for pgsql-hackers@arkaria.postgresql.org; Tue, 02 Aug 2022 21:47:59 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1oIzj7-0002se-9B for pgsql-hackers@arkaria.postgresql.org; Tue, 02 Aug 2022 21:46:57 +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 1oIzj7-0002s1-0M for pgsql-hackers@lists.postgresql.org; Tue, 02 Aug 2022 21:46:57 +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 1oIzj2-0004rT-1l for pgsql-hackers@lists.postgresql.org; Tue, 02 Aug 2022 21:46:53 +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 272LkYJi2767669; Tue, 2 Aug 2022 17:46:34 -0400 From: Tom Lane To: Robert Haas cc: Justin Pryzby , Dilip Kumar , Andres Freund , Ashutosh Sharma , Maciek Sakrejda , Bruce Momjian , Alvaro Herrera , Andrew Dunstan , Heikki Linnakangas , PostgreSQL Hackers Subject: Re: [Proposal] Fully WAL logged CREATE DATABASE - No Checkpoints In-reply-to: References: <20220802175043.GA13682@telsasoft.com> Comments: In-reply-to Robert Haas message dated "Tue, 02 Aug 2022 17:18:19 -0400" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <2767667.1659476794.1@sss.pgh.pa.us> Date: Tue, 02 Aug 2022 17:46:34 -0400 Message-ID: <2767668.1659476794@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk Robert Haas writes: > WARNING: problem in alloc set PortalContext: req size > alloc size > for chunk 0x7f99508911f0 in block 0x7f9950890800 > WARNING: problem in alloc set PortalContext: bad size 0 for chunk > 0x7f99508911f0 in block 0x7f9950890800 > WARNING: problem in alloc set PortalContext: bad single-chunk > 0x7f9950891208 in block 0x7f9950890800 > WARNING: problem in alloc set PortalContext: found inconsistent > memory block 0x7f9950890800 > WARNING: problem in alloc set PortalContext: req size > alloc size > for chunk 0x7f99508911f0 in block 0x7f9950890800 > WARNING: problem in alloc set PortalContext: bad size 0 for chunk > 0x7f99508911f0 in block 0x7f9950890800 > WARNING: problem in alloc set PortalContext: bad single-chunk > 0x7f9950891208 in block 0x7f9950890800 > WARNING: problem in alloc set PortalContext: found inconsistent > memory block 0x7f9950890800 This looks like nothing so much as the fallout from something scribbling past the end of an allocated palloc chunk, or perhaps writing on already-freed space. Perhaps running the test case under valgrind would help to finger the culprit. regards, tom lane