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.94.2) (envelope-from ) id 1uPTDF-008fhF-Pp for pgsql-bugs@arkaria.postgresql.org; Wed, 11 Jun 2025 21:42:25 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.94.2) (envelope-from ) id 1uPTDD-006w0J-Gv for pgsql-bugs@arkaria.postgresql.org; Wed, 11 Jun 2025 21:42:24 +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.94.2) (envelope-from ) id 1uPTDD-006vzY-80 for pgsql-bugs@lists.postgresql.org; Wed, 11 Jun 2025 21:42:23 +0000 Received: from mail-il1-x136.google.com ([2607:f8b0:4864:20::136]) by makus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.96) (envelope-from ) id 1uPTDC-001Uq0-0h for pgsql-bugs@lists.postgresql.org; Wed, 11 Jun 2025 21:42:22 +0000 Received: by mail-il1-x136.google.com with SMTP id e9e14a558f8ab-3dc729471e3so1385855ab.1 for ; Wed, 11 Jun 2025 14:42:22 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1749678141; x=1750282941; darn=lists.postgresql.org; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:from:to:cc:subject:date:message-id:reply-to; bh=82qZU86mESJm4bzzDKzAvPfQkwH+vtvpeJ66O9Oisew=; b=dyJbckt81T2WdBisfv/bQF1zPf6evBE+GVjC1fbBkomJp3t+xRMj/Cw9yUr22jcHbk Nh6IAaFpb6ZoBcB76BksxXBvglaVj751HS9v2kNNhxeQwWF5q7Jfi1qxHfvmLdetrPbz Um3qj3V+8lDWjBteR5abCGAEYh4t1Jw2uiFwbG3vGI6aoQ3M2m0vt30kuh2WGNSVhAZc j3UVeAFQWHa0c/4iNZAK+sw/nptQl3aKXzIF8KBTx1OJouEwOntzDf4ylFgJfjwhp9Mb bT2gzJC4HPLYke9PplNjt+I2INUnEzWuF6arF6wOl9LRAXUtiFw2VFmH6qApT0njighF +MtQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1749678141; x=1750282941; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=82qZU86mESJm4bzzDKzAvPfQkwH+vtvpeJ66O9Oisew=; b=I6tXmR5kb81phC4txg+2IDyfl40c8y2CfdAg/5pVR8vL021T1XOcJBm3QzVN3HsZ1f tq9OZxXd7weMhCSRsEoq9xuk8cfPeCEv1lAZOg2VKL+KKoLRUhoFLlVTTqAKRNK1WWTX x5sHCxUjib9TzzrEEmXsU6XLU1dpigveeHe68y7lcWunJs+O/SdlPbF989sgW79vYaG0 Xp50Iatrpe5Hi70NdqI6r2euubau2CY8CIOpPT9eZxOWqr+vTeHmM0idQymqiS5xjRY2 NgyOuthLOSBnZhDMOAA4jDNpcHKluPVNx/4jtoC6KsWsUoOk38CG0SV76WWUNlPhCb/e YzWA== X-Gm-Message-State: AOJu0YzF88VXwU0t4GDZMHbtNCEmGwfpexKoersWzh5MtMGoj09AT/K7 R7V3DPkZzTnop8R2nuwTw2GngjruHOTGuNseZgjatHYONqjzqw/cX2sh X-Gm-Gg: ASbGncvRIm1UAjL2GxpVDi1ft5jipRa+PUs62e6Zad76rLz4MxmeJlqeLEcVpLFrmCK A8JYWfTjPbigEoRZnOe8NyLv5EAAes4scd0nG99SLVUbGQfKVr55tfA6HzTzQC9y9tH8med+6vN QQCPUqUHCdgD9iYGCWiFr36ExdfMXaVP3NcnU2GERsXcgR1t34uRR1VZdiIaSHoeLngXTafyME0 BWIy4PdrlBt5lqt5rBGHoyg3yp/pQFIB/B+kFORGrFe6QPXamXdVb0AqpAYERHYtN4/rNKoltie Ps5lgPNabIzghnBhAccOu2NY1liSCA65oDdebvW3ZIkdwRtUIcf7dboyC4c/pH9IEgNeZvH3rUb xYCbwQOtn7INMmPCmVM8DoypB+yVbR9tbfqqhAfvpLaGbwf/m+a8tvepcRr/OhNM= X-Google-Smtp-Source: AGHT+IFkmDwYpA3ZWoApnI5sY1FafiarNptEPx0AbgdyJfqlF/0VMLtA2rciDbCHKu0nTLlJV7lCLA== X-Received: by 2002:a05:6e02:144e:b0:3dd:b556:18c5 with SMTP id e9e14a558f8ab-3ddf43044camr57844115ab.21.1749678141467; Wed, 11 Jun 2025 14:42:21 -0700 (PDT) Received: from nathan (162-195-168-172.lightspeed.stlsmo.sbcglobal.net. [162.195.168.172]) by smtp.gmail.com with ESMTPSA id e9e14a558f8ab-3ddfbaf9cecsm316575ab.64.2025.06.11.14.42.20 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 11 Jun 2025 14:42:20 -0700 (PDT) Date: Wed, 11 Jun 2025 16:42:19 -0500 From: Nathan Bossart To: Soumyadeep Chakraborty Cc: PostgreSQL mailing lists , johncnaylorls@gmail.com Subject: Re: Invalid control file checksum with AVX-512 during initdb on a clang19 -O0 build Message-ID: References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk (I've CC'd the committer of the feature.) On Wed, Jun 11, 2025 at 11:10:31AM -0700, Soumyadeep Chakraborty wrote: > We are getting a control file checksum mismatch during initdb. > > [...] > > Note that this only reproduces with clang-19 -O0 and NOT -O3. I haven't > tried with other versions of clang. > > OTOH, gcc-14 is cool with both -O0 and -O3, with AVX-512 getting picked > for both cases, for CRC instructions. I'm wondering if there's anything else this could be besides a compiler bug. It's interesting that -O0 is the broken case. Have you tried looking for differences in the assembly code? -- nathan