Re: Invalid control file checksum with AVX-512 during initdb on a clang19 -O0 build

From: John Naylor <johncnaylorls(at)gmail(dot)com>
To: Soumyadeep Chakraborty <soumyadeep2007(at)gmail(dot)com>
Cc: Nathan Bossart <nathandbossart(at)gmail(dot)com>, PostgreSQL mailing lists <pgsql-bugs(at)lists(dot)postgresql(dot)org>
Subject: Re: Invalid control file checksum with AVX-512 during initdb on a clang19 -O0 build
Date: 2025-06-13 14:03:16
Message-ID: CANWCAZbsuavqUK4tg6UF-0-GVRMaq7BafUx4+Dyd12y=-AuFAA@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-bugs

On Fri, Jun 13, 2025 at 12:30 AM Soumyadeep Chakraborty <
soumyadeep2007(at)gmail(dot)com> wrote:
>
> On Wed, Jun 11, 2025 at 11:57PM John Naylor <johncnaylorls(at)gmail(dot)com>
wrote:
> >
> > Hmm, clang at -O0 is the same in versions 18, 19, and 20. The change
> > from v17 is easy enough to workaround as in the attached, which
> > produces identical output as master at -O2. Does this fix it for you?
> > If that's not it, it may be more difficult, as the change at -O0 from
> > v16 to v17 is large, so it's hard to see what's going on.
> >
>
> It unfortunately doesn't. I still get the same checksum failure. I tried
> -O0 clang-19, clang-18 and clang-17. I've uploaded the rr recordings
> and initdb output with your patch applied and the debug logs I had.

Okay, in that case we'd better just kludge around it by disabling the
runtime check with clang at -O0 (attached). That will at least get these
kind of builds working while I get more info for a bug report.

--
John Naylor
Amazon Web Services

Attachment Content-Type Size
v2-crc-workaround-clang-18.patch application/x-patch 654 bytes

In response to

Responses

Browse pgsql-bugs by date

  From Date Subject
Next Message PG Bug reporting form 2025-06-13 14:10:00 BUG #18959: Name collisions of expression indexes during parallel Index creations on a pratitioned table.
Previous Message David G. Johnston 2025-06-13 13:46:39 Re: BUG #18958: "pg_ctl start" allows subsequent CTRL-C key in cmd.exe to unexpectedly terminate cluster on Windows