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 1wEhod-004JNK-0I for pgsql-hackers@arkaria.postgresql.org; Mon, 20 Apr 2026 06:09:03 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.96) (envelope-from ) id 1wEhoc-000xUY-19 for pgsql-hackers@arkaria.postgresql.org; Mon, 20 Apr 2026 06:09:02 +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 1wEhoc-000xUQ-0A for pgsql-hackers@lists.postgresql.org; Mon, 20 Apr 2026 06:09:02 +0000 Received: from mail-yw1-x112c.google.com ([2607:f8b0:4864:20::112c]) by makus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.98.2) (envelope-from ) id 1wEhoZ-00000001sXJ-497o for pgsql-hackers@postgresql.org; Mon, 20 Apr 2026 06:09:01 +0000 Received: by mail-yw1-x112c.google.com with SMTP id 00721157ae682-79ab5fd969aso25654877b3.0 for ; Sun, 19 Apr 2026 23:09:00 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1776665340; cv=none; d=google.com; s=arc-20240605; b=jwHIcKz+Sv9wrNDvXWW8ehhZgpcHZcTyN5tb99ldGMq1vxq735eoJl0kgE3Kwm5lwe +KRZMcnJnIenuA58qAsB6E3qPOiCIev5HzZ/kpwWCyavIo3SiC95bL8O1vpRpPRgvTt6 n98ftDkL7GGE/IknSr8OUYwgIf/Hllo4EaQavD9ooBBazBKt3K2YgkU+E9Khh7GyhbLR CsMWcpmZu7kZ8/Pk3J7Sep1Y9zu+lh5Izj6ePiGLb6R6qrdfY66A5nCWjd30xTnbNCEw srJZFVYIn6EsJR1pFG3xaeXW+0gLHk9iZkhX3PF+vykyaF+XYMdi3iDQNUi4uczQR8LO wIew== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20240605; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:dkim-signature; bh=itnNgLqbmVJ7ecf7JL7ewHMqGdeP3mFRi6JTVZ07ra8=; fh=T2SDbkEiKfFo+aJ4egn6YgilCo2nQjAWdnA/Iy6zeOU=; b=Mm9LchsgSBmWPUegHm5FQqDtQolK9PpyRigDV4pXY4C+2fAwHFh1vRUxybSHI9LuGu aGdKtxqLc/Zgxg3K4pccToe71Ehz2T1BKQ4qSP7JVNeKEWRsNkOe5NiK50WDze776RNI yT5SNcYe2lPTRno4Nm+1ILM+ROf6Z6u4fDLotNK4pMsyAChhsJwZKvCPkQ6KjLv030bL dQwREgdmX6J1zoPaM3Pe4hiyPRAvWse5782sT/oi2qzR2KNyheo/Si79qm9XT/GZH3ME rWs/BYOlrIjNvH3wULSITPzVx/427yn/sAsMGLw8JgatyUNwwOZOXpCoF+oysQZLfRHm KQnQ==; darn=postgresql.org ARC-Authentication-Results: i=1; mx.google.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20251104; t=1776665340; x=1777270140; darn=postgresql.org; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=itnNgLqbmVJ7ecf7JL7ewHMqGdeP3mFRi6JTVZ07ra8=; b=GARJ6SOSG+YqWTaFqskWo8RqzBSwFy+m1B2R5BnzkAYjUwMyQNj2SqyPCbJNu/rZCw +MuejWmuPCZt8JeA+7xDsoVIRULaFAqMhCp8ciJlx0KnCnGIhF1KlagfwNUmopOwwa+F OeVH5fPoKYGuf2UZtGTHET/7qmlb6i2x4hD/LuYPPVIH9c/PVws27yDuBNwvntGppI2z lw1GnbkYfVzxJMKWRFY2/RZTwn94aaYy8hrbFVUDx5J7pS4gOQlhIRL9VGDFe0/3ZgwJ wRMIempulB0JC8kDBC27fpOqlChxxfwlZcC+lyVTSj6ymy8FvouhhSWqTshoSh3G+5NV RvWA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1776665340; x=1777270140; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-gg:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=itnNgLqbmVJ7ecf7JL7ewHMqGdeP3mFRi6JTVZ07ra8=; b=REFN+mtitkeIKMDBJtrlvla/5NdYFWdSzV4CoTWeSJ1ZB7LLTR7uq9mHvCefqfhaFf 26jRYevBDteU9nUvv60XwSXRHQaf+keM/hSu5SeRiOI/ZxKLgtjCNSnR3rGBqFs9M5cA IXCQVObhoRzPTXvtHVG5Djg2n3nBj1Qo/nSy9W+oBdrwaSbOAnWYPjFPB49Sv3PtYSDq HbblOuxPi1sfMiE815MQB10OveKfzn+E6e2TLfVi15SNfn4OXESZB4C6mZqDz7i1DiVZ 4w2sgzSCGPFPXMIzQdXfDptAEXWdgOvRPxi7Ft/elDpEV+WYaFnfBAuNLP3zhERaQ6fE AFvA== X-Gm-Message-State: AOJu0Yy3WbLIJ6fiVlw6lcNVADzcR5wOLQh7Hc+3t8qAC3CnmcOvmpAt LMqH6P6tm0oA5Bd/M/X6WvMk7eDEPwUZn1WyMaXCb4sgtLxXxN763Fs/oqYIjCBRq+r2GGI6vE0 yAOE67b2dAa3w6eZoRRyPUa6eHM+4Q4XncEi7 X-Gm-Gg: AeBDiesLXddlT624VEmeS3pPDtmWAFUd0Fak6l/RC9EfV9YQpgYRo0eftmKeYXcsz++ Iex6w0xz9z8wLI8r33qp689hru4lUgZCY8U5lQXQqugxptq00BjVIbqBTFaeyHQfKoKIiptLCpb e8T7Qh3VKwOzLSVNhtjfKI8fBhXqdaf5+IfZS90AGamGowvO/Piipxws9eIbWJPNyCSsagcgdmg OsQc5kv4phF7Z8mPyxEIGc/RoRHomM/IRpohxQAs6vihDt2fxLbuZoO6fX5UT4kA6+rglbDw5IL qL+nQL2qBhCc4YdPzOM1QqaUwzxZaGK43lxFKVXs74QAnIIScg== X-Received: by 2002:a05:690c:9:b0:7b7:6a5d:acb0 with SMTP id 00721157ae682-7b9ecfb1f88mr134413987b3.31.1776665339795; Sun, 19 Apr 2026 23:08:59 -0700 (PDT) MIME-Version: 1.0 References: In-Reply-To: From: Ayush Tiwari Date: Mon, 20 Apr 2026 11:38:49 +0530 X-Gm-Features: AQROBzDxiGE2vbT-RBsNwsTZqYIa6kMPh_6EQ8wRAvTHWpnmf4n7lt4CJ5ypXQg Message-ID: Subject: Re: [BUG] Race in online checksums launcher_exit() To: Daniel Gustafsson Cc: PostgreSQL Hackers Content-Type: multipart/alternative; boundary="000000000000769d15064fde226d" List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk --000000000000769d15064fde226d Content-Type: text/plain; charset="UTF-8" Hi, On Mon, 20 Apr 2026 at 01:47, Daniel Gustafsson wrote: > > On 19 Apr 2026, at 22:09, Ayush Tiwari > wrote: > > > > Hi hackers, > > > > 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 > > Thanks Daniel! Glad to hear it's being addressed. I would be happy to test the patchset when it's posted. Regards, Ayush --000000000000769d15064fde226d Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Hi,

On Mon, 20 Apr 2= 026 at 01:47, Daniel Gustafsson <dani= el@yesql.se> wrote:
> On 19 Apr 2026, at 22:09, Ayush Tiwari <ayushtiwari.slg01@gmail.co= m> wrote:
>
> Hi hackers,
>
> While using the pg_enable_data_checksums() feature, I found a likely b= ug, a race condition in=C2=A0 datachecksum_state.c's launcher_exit().
Thanks for your report.=C2=A0 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 extens= ive
longrunning testing.=C2=A0 While hacking on that we identified what I belie= ve 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).<= br> I'll compare notes and will if applicable incorporate your patch into i= t.

--
Daniel Gustafsson


Thanks Daniel! Glad to hear it's being = addressed.=C2=A0I would be happy to
test the patchset when it's= posted.=C2=A0

Regards,
Ayush
--000000000000769d15064fde226d--