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 1pPAtz-0005sN-2i for pgsql-hackers@arkaria.postgresql.org; Mon, 06 Feb 2023 23:27:59 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1pPAtw-00083i-IU for pgsql-hackers@arkaria.postgresql.org; Mon, 06 Feb 2023 23:27:56 +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 1pPAtw-00083Z-8t for pgsql-hackers@lists.postgresql.org; Mon, 06 Feb 2023 23:27:56 +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 1pPAtt-0006rG-S0 for pgsql-hackers@lists.postgresql.org; Mon, 06 Feb 2023 23:27:55 +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 316NRoHh2930304; Mon, 6 Feb 2023 18:27:51 -0500 From: Tom Lane To: Michael Paquier , Thomas Munro cc: pgsql-hackers@lists.postgresql.org Subject: gokiburi versus the back branches MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <2930302.1675726070.1@sss.pgh.pa.us> Content-Transfer-Encoding: quoted-printable Date: Mon, 06 Feb 2023 18:27:50 -0500 Message-ID: <2930303.1675726070@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk I notice that Michael's new BF animal gokiburi is failing in all the pre-v15 branches, though it's fine in v15 and HEAD. It's evidently dying from ASLR effects because it's trying to build with EXEC_BACKEND on Linux: there's lots of 2023-02-06 06:07:02.131 GMT [1503972] FATAL: could not reattach to shared= memory (key=3D813803, addr=3D0xffff8c3a5000): Invalid argument 2023-02-06 06:07:02.131 GMT [1503971] FATAL: could not reattach to shared= memory (key=3D813803, addr=3D0xffff8c3a5000): Invalid argument 2023-02-06 06:07:02.132 GMT [1503976] FATAL: could not reattach to shared= memory (key=3D813803, addr=3D0xffff8c3a5000): Invalid argument in its logs. The reason it's okay in v15 and up is presumably this: Author: Thomas Munro Branch: master Release: REL_15_BR [f3e78069d] 2022-01-11 00:04:33 +1300 Make EXEC_BACKEND more convenient on Linux and FreeBSD. = Try to disable ASLR when building in EXEC_BACKEND mode, to avoid rando= m memory mapping failures while testing. For developer use only, no effect on regular builds. Is it time to back-patch that commit? The alternative would be to run the animal with an ASLR-disabling environment variable. On the whole I think testing that f3e78069d works is more useful than working around lack of it. regards, tom lane