Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.96) (envelope-from ) id 1wA1zB-00205v-39 for pgsql-hackers@arkaria.postgresql.org; Tue, 07 Apr 2026 08:40:38 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.96) (envelope-from ) id 1wA1zA-00FsXK-0u for pgsql-hackers@arkaria.postgresql.org; Tue, 07 Apr 2026 08:40:36 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.96) (envelope-from ) id 1wA1z9-00FsX4-2V for pgsql-hackers@lists.postgresql.org; Tue, 07 Apr 2026 08:40:36 +0000 Received: from fhigh-a1-smtp.messagingengine.com ([103.168.172.152]) by magus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.98.2) (envelope-from ) id 1wA1z5-000000013xN-1Xvb for pgsql-hackers@lists.postgresql.org; Tue, 07 Apr 2026 08:40:35 +0000 Received: from phl-compute-02.internal (phl-compute-02.internal [10.202.2.42]) by mailfhigh.phl.internal (Postfix) with ESMTP id 7F66714002D5; Tue, 7 Apr 2026 04:40:29 -0400 (EDT) Received: from phl-frontend-04 ([10.202.2.163]) by phl-compute-02.internal (MEProxy); Tue, 07 Apr 2026 04:40:29 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc:content-transfer-encoding :content-type:content-type:date:date:feedback-id:feedback-id :from:from:in-reply-to:in-reply-to:message-id:mime-version :reply-to:subject:subject:to:to:x-me-proxy:x-me-sender :x-me-sender:x-sasl-enc; s=fm2; t=1775551229; x=1775637629; bh=C EY5wlCsSpAG9VxARtkEAYN0nEyXpKP/MLrIZCmDrBE=; b=sy2YgVXGxaOac2fqp cnloJoeG3/+GLdLVne+GID1CbFPkXiv5WRdacjyHQVaFsWBYiK2hUCzEX/txDZRx JyLyW1QddQZ1Nvv/Bd22ScijNZ+GE76QUetnLu+alBKqCeGu5Agq/L8y4FJ4sE+w DFsFNFYjcm/tuUXNGWRAFZMOZUl2yLwM4TbKN2zhd8lDiEFlIPpo/V9zDwKdsaYt GIzjxbFFNOWrl8GkFFlkc1jjNs2s9fodhkeIAVRN8to9Fj9H0v62sy+f7WQ7FF7P T+mjC3n+s4FViiVhP9zUhITFDQAkkWvANmobfEM32Q8ypRfK6El+y72WcvOiZH7F GdHEA== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeefhedrtddtgddvtddukecutefuodetggdotefrod ftvfcurfhrohhfihhlvgemucfhrghsthforghilhdpuffrtefokffrpgfnqfghnecuuegr ihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmdenucfjug hrpeffhffvvefukfggtggugfgjsehtkeertddttdejnecuhfhrohhmpeetlhhvrghrohcu jfgvrhhrvghrrgcuoegrlhhvhhgvrhhrvgesrghlvhhhrdhnohdqihhprdhorhhgqeenuc ggtffrrghtthgvrhhnpeektdfhkeevudeugfeuleetkefgjeegkeeuudduueevuedvudff gffgteeihfdvfeenucffohhmrghinhepphhoshhtghhrvghsqhhlrdhorhhgpdgvnhhtvg hrphhrihhsvggusgdrtghomhenucevlhhushhtvghrufhiiigvpedtnecurfgrrhgrmhep mhgrihhlfhhrohhmpegrlhhvhhgvrhhrvgesrghlvhhhrdhnohdqihhprdhorhhgpdhnsg gprhgtphhtthhopeduuddpmhhouggvpehsmhhtphhouhhtpdhrtghpthhtoheprghnughr vghssegrnhgrrhgriigvlhdruggvpdhrtghpthhtoheprghhsegthigsvghrthgvtgdrrg htpdhrtghpthhtoheprghmihhtrdhkrghpihhlrgduieesghhmrghilhdrtghomhdprhgt phhtthhopegsohgvkhgvfihurhhmodhpohhsthhgrhgvshesghhmrghilhdrtghomhdprh gtphhtthhopehmihhhrghilhhnihhkrghlrgihvghusehgmhgrihhlrdgtohhmpdhrtghp thhtohepshhrihhnrghthhdvudeffeesghhmrghilhdrtghomhdprhgtphhtthhopehvih hgnhgvshhhvddusehgmhgrihhlrdgtohhmpdhrtghpthhtohepnhhorghhsehlvggruggs ohgrthdrtghomhdprhgtphhtthhopehpghhsqhhlqdhhrggtkhgvrhhssehlihhsthhsrd hpohhsthhgrhgvshhqlhdrohhrgh X-ME-Proxy: Feedback-ID: ia2694551:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Tue, 7 Apr 2026 04:40:28 -0400 (EDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=alvh.no-ip.org; s=schmee; t=1775551225; bh=vL2AZ2xAyIJX4Vc+NNdfLBSDbVmTDYyTL9HebZ9OKtw=; h=Date:From:To:Cc:Subject:In-Reply-To:From; b=AxPi/bzuIkWF03WkfC+7G2iZ2EfkJJ5pcCIBFPDV6QG3KtneBxcxlRrB0D/HxNSMr dB6W04DEe8bUb3K/wsLcehKrXrrPRZiyBEEfyZogWr43/WbWiby335oASLGyeztN8z X127eXiyN3BhrsLmYKxqDNQA/Y6XcRYrZWTQ3hwNMioa894BJ6mYBHuaxmf+ngenzI 2SpMIuCOh5C/oWV/4JyC9nkEqUMSqfhXYH4mVVUrAkoQXCMAmFvrX67gaf3CCEsDvr vvstNrLZijxDXpfZSNu1Zq06BRAJtj/ewI04P+XJi/HoXb8VuAXmgxAn/jiMHSqnf4 3cfaIc5d2555w== Received: by schmee.kurilemu.internal (Postfix, from userid 1000) id B12417C; Tue, 07 Apr 2026 10:40:25 +0200 (CEST) Date: Tue, 7 Apr 2026 10:40:25 +0200 From: Alvaro Herrera To: Tom Lane Cc: Andres Freund , Noah Misch , vignesh C , Antonin Houska , Srinath Reddy Sadipiralla , Amit Kapila , Mihail Nikalayeu , Matthias van de Meent , Pg Hackers , Robert Treat Subject: Re: Adding REPACK [concurrently] Message-ID: <202604070821.zkcnhnor3oto@alvherre.pgsql> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <1976915.1775537087@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk On 2026-Apr-07, Tom Lane wrote: > Maybe you saw this already, but BF member skink is failing on > src/test/modules/injection_points/specs/repack.spec: > > https://buildfarm.postgresql.org/cgi-bin/show_log.pl?nm=skink&dt=2026-04-06%2022%3A50%3A41 Thanks, I hadn't, and I cannot reproduce it locally. Anyway, the valgrind report is ==1617044== VALGRINDERROR-BEGIN ==1617044== Syscall param pwrite64(buf) points to uninitialised byte(s) ==1617044== at 0x6704003: pwrite (pwrite64.c:25) ==1617044== by 0x44AAC72: pg_pwritev (pg_iovec.h:101) ==1617044== by 0x44AC6B5: FileWriteV (fd.c:2280) ==1617044== by 0x44A8EC4: FileWrite (fd.h:245) ==1617044== by 0x44A8EC4: BufFileDumpBuffer (buffile.c:538) ==1617044== by 0x44A9034: BufFileFlush (buffile.c:724) ==1617044== by 0x44A9661: BufFileClose (buffile.c:418) ==1617044== by 0x426C4DE: export_initial_snapshot (repack_worker.c:346) ==1617044== by 0x426CA17: RepackWorkerMain (repack_worker.c:145) ==1617044== by 0x441D3AD: BackgroundWorkerMain (bgworker.c:865) ==1617044== by 0x44219D9: postmaster_child_launch (launch_backend.c:265) ==1617044== Address 0x12d745e2 is 106 bytes inside a block of size 8,272 client-defined ==1617044== at 0x4661CFE: palloc (mcxt.c:1411) ==1617044== by 0x44A8C54: makeBufFileCommon (buffile.c:121) ==1617044== by 0x44A933F: BufFileCreateFileSet (buffile.c:272) ==1617044== by 0x426C4A5: export_initial_snapshot (repack_worker.c:341) ==1617044== by 0x426CA17: RepackWorkerMain (repack_worker.c:145) ==1617044== by 0x441D3AD: BackgroundWorkerMain (bgworker.c:865) ==1617044== by 0x44219D9: postmaster_child_launch (launch_backend.c:265) ==1617044== by 0x4423B6D: StartBackgroundWorker (postmaster.c:4197) ==1617044== by 0x4423DB8: maybe_start_bgworkers (postmaster.c:4362) ==1617044== by 0x4425119: LaunchMissingBackgroundProcesses (postmaster.c:3437) ==1617044== by 0x4426A75: ServerLoop (postmaster.c:1737) ==1617044== by 0x44280DC: PostmasterMain (postmaster.c:1412) ==1617044== Uninitialised value was created by a stack allocation ==1617044== at 0x4674D39: SerializeSnapshot (snapmgr.c:1737) ==1617044== ==1617044== VALGRINDERROR-END and obviously BufFileCreateFileSet() is being called by existing code already and it doesn't fail, so I *think* the problem might be that SerializedSnapshotData has some padding bytes that are being written. Maybe using palloc0() is enough? I'll try that. If that doesn't silence skink, I guess my next step is to reproduce skink's environment more precisely ... -- Álvaro Herrera 48°01'N 7°57'E — https://www.EnterpriseDB.com/ "Uno puede defenderse de los ataques; contra los elogios se esta indefenso"