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

John Naylor <johncnaylorls@gmail.com>

From: John Naylor <johncnaylorls@gmail.com>
To: Soumyadeep Chakraborty <soumyadeep2007@gmail.com>
Cc: Nathan Bossart <nathandbossart@gmail.com>, PostgreSQL mailing lists <pgsql-bugs@lists.postgresql.org>
Date: 2025-06-13T14:03:16Z
Lists: pgsql-bugs

Commits

Same data as JSON: GET /api/v1/messages/:b64id/commits the thread's linked commits as JSON, with link sources. API reference →
  1. Workaround code generation bug in clang

  2. Don't reduce output request size on non-Unix-socket connections.

Attachments

On Fri, Jun 13, 2025 at 12:30 AM Soumyadeep Chakraborty <
soumyadeep2007@gmail.com> wrote:
>
> On Wed, Jun 11, 2025 at 11:57PM John Naylor <johncnaylorls@gmail.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