Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1nY92W-0003Hx-G8 for pgsql-hackers@arkaria.postgresql.org; Sat, 26 Mar 2022 16:13:20 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1nY92V-0005sZ-DZ for pgsql-hackers@arkaria.postgresql.org; Sat, 26 Mar 2022 16:13:19 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1nY92V-0005sP-4g for pgsql-hackers@lists.postgresql.org; Sat, 26 Mar 2022 16:13:19 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by magus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1nY92S-0001QN-Jx for pgsql-hackers@lists.postgresql.org; Sat, 26 Mar 2022 16:13:18 +0000 Received: from sss1.sss.pgh.pa.us (localhost [127.0.0.1]) by sss.pgh.pa.us (8.15.2/8.15.2) with ESMTP id 22QGDCFx049361; Sat, 26 Mar 2022 12:13:12 -0400 From: Tom Lane To: pgsql-hackers@lists.postgresql.org cc: Andres Freund , Robert Haas , Thomas Munro Subject: Re: Pointer subtraction with a null pointer In-reply-to: <48826.1648310694@sss.pgh.pa.us> References: <48826.1648310694@sss.pgh.pa.us> Comments: In-reply-to Tom Lane message dated "Sat, 26 Mar 2022 12:04:54 -0400" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <49359.1648311192.1@sss.pgh.pa.us> Content-Transfer-Encoding: quoted-printable Date: Sat, 26 Mar 2022 12:13:12 -0400 Message-ID: <49360.1648311192@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk I wrote: > Several of Andres' buildfarm animals have recently started to whine > that "performing pointer subtraction with a null pointer has undefined > behavior" for assorted places in freepage.c. Ah, sorry, I meant to include a link: https://buildfarm.postgresql.org/cgi-bin/show_stage_log.pl?nm=3Dmylodon&dt= =3D2022-03-26%2000%3A02%3A10&stg=3Dmake This code is old, but mylodon wasn't doing that a week ago, so Andres must've updated the compiler and/or changed its options. kestrel and olingo are reporting it too, but they're new. regards, tom lane