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 1wEYa8-0048mJ-0I for pgsql-hackers@arkaria.postgresql.org; Sun, 19 Apr 2026 20:17:29 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.96) (envelope-from ) id 1wEYa7-00GCL0-10 for pgsql-hackers@arkaria.postgresql.org; Sun, 19 Apr 2026 20:17:27 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.96) (envelope-from ) id 1wEYa6-00GCKp-2v for pgsql-hackers@lists.postgresql.org; Sun, 19 Apr 2026 20:17:27 +0000 Received: from smtp.outgoing.loopia.se ([93.188.3.37]) by makus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.98.2) (envelope-from ) id 1wEYa3-00000001oiT-0QLP for pgsql-hackers@postgresql.org; Sun, 19 Apr 2026 20:17:25 +0000 Received: from s807.loopia.se (localhost [127.0.0.1]) by s807.loopia.se (Postfix) with ESMTP id 6994B59E5AD for ; Sun, 19 Apr 2026 22:17:19 +0200 (CEST) Received: from s934.loopia.se (unknown [172.22.191.5]) by s807.loopia.se (Postfix) with ESMTP id 5545259C370; Sun, 19 Apr 2026 22:17:19 +0200 (CEST) Received: from localhost (unknown [172.22.191.5]) by s934.loopia.se (Postfix) with ESMTP id 530E8A3D608; Sun, 19 Apr 2026 22:17:19 +0200 (CEST) X-Virus-Scanned: amavis at amavis.loopia.se X-Spam-Flag: NO X-Spam-Score: -1.2 X-Spam-Level: X-Spam-Status: No, score=-1.2 tagged_above=-999 required=6.2 tests=[ALL_TRUSTED=-1, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1] autolearn=disabled Authentication-Results: s471.loopia.se (amavis); dkim=pass (2048-bit key) header.d=yesql.se Received: from s979.loopia.se ([172.22.191.6]) by localhost (s471.loopia.se [172.22.190.35]) (amavis, port 10024) with LMTP id HaiipqGlLuqs; Sun, 19 Apr 2026 22:17:19 +0200 (CEST) X-Loopia-Auth: user X-Loopia-User: daniel@yesql.se X-Loopia-Originating-IP: 89.255.232.236 Received: from smtpclient.apple (customer-89-255-232-236.stosn.net [89.255.232.236]) (Authenticated sender: daniel@yesql.se) by s979.loopia.se (Postfix) with ESMTPSA id CFD6810BC40E; Sun, 19 Apr 2026 22:17:18 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yesql.se; s=loopiadkim1707475645; t=1776629838; bh=5bpV9gidk5lm6YJ0gpMc/YtJYO2VKvxt8OdPR81tw4M=; h=Subject:From:In-Reply-To:Date:Cc:References:To; b=Sxo2O4J1KoMcc2pmpJ7mfcRb4FdtIeykikfHsIK3Cp16KVKm9yxZpsqQXF679a+Wd WMxAoGqPM1rjS8mvbg238Xpnws/WFVwy6tNZqdjWGKKX1e/PEJd2XilmGdT14YREau sXfjpGrkss9BrXXcfzgT562l6odrxOURJaP8HtNEwSN8VHAkkypb4BaJx0Dybr7/gh W9XpBWrPInhshEcrdK71SjKWhiX+g9dG3k9jCAjnc3KyevtqMnBXjMmglVD7HanlIJ mt0MeTzRhdXEWOmj4wb2Yv4Z6xZhdmv9Sj6FAhdQILYb8TtNxu0gYEjAXLQsSEakKG 5DE77T325MX4Q== Content-Type: text/plain; charset=us-ascii Mime-Version: 1.0 (Mac OS X Mail 16.0 \(3776.700.51.11.2\)) Subject: Re: [BUG] Race in online checksums launcher_exit() From: Daniel Gustafsson In-Reply-To: Date: Sun, 19 Apr 2026 22:17:08 +0200 Cc: PostgreSQL Hackers Content-Transfer-Encoding: quoted-printable Message-Id: References: To: Ayush Tiwari X-Mailer: Apple Mail (2.3776.700.51.11.2) List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk > On 19 Apr 2026, at 22:09, Ayush Tiwari = wrote: >=20 > Hi hackers, >=20 > While using the pg_enable_data_checksums() feature, I found a likely = bug, a race condition in datachecksum_state.c's launcher_exit(). Thanks for your report. Tomas and I have worked over the past couple of = days on a fixup series due to a rare race condition which was found after = extensive longrunning testing. While hacking on that we identified what I believe = is the same bug you found and we have a fix for that, the patchset will be = shared very shortly (we am literally putting the final touches on it as I write = this). I'll compare notes and will if applicable incorporate your patch into = it. -- Daniel Gustafsson