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 1oTBOs-0000z7-LC for pgsql-hackers@arkaria.postgresql.org; Wed, 31 Aug 2022 00:16:10 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1oTBNt-0002mJ-Fw for pgsql-hackers@arkaria.postgresql.org; Wed, 31 Aug 2022 00:15:09 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1oTBNt-0002mA-6r for pgsql-hackers@lists.postgresql.org; Wed, 31 Aug 2022 00:15:09 +0000 Received: from wout5-smtp.messagingengine.com ([64.147.123.21]) by makus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1oTBNq-0007ab-Nu for pgsql-hackers@lists.postgresql.org; Wed, 31 Aug 2022 00:15:08 +0000 Received: from compute4.internal (compute4.nyi.internal [10.202.2.44]) by mailout.west.internal (Postfix) with ESMTP id 116903200933; Tue, 30 Aug 2022 20:15:04 -0400 (EDT) Received: from mailfrontend2 ([10.202.2.163]) by compute4.internal (MEProxy); Tue, 30 Aug 2022 20:15:05 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=paquier.xyz; h= cc:cc:content-type:date:date:from:from:in-reply-to:in-reply-to :message-id:mime-version:references:reply-to:sender:subject :subject:to:to; s=fm1; t=1661904904; x=1661991304; bh=2Zh7w15Uw2 z0KgDhNGEEXLkyvwzTu4vxZRH7A3c5dBk=; b=fcTSsOu4WH4EYgm72GzyVwk+yP 4q+vduE6czNHaHB/SmsGGJKcFxwxNu2dZ2j3L0o9py1yawono6N66BJsLW/zIQeU yN7kwBb+BxUCGQwhSSEJAtR2WAwepTCz/zZ95G4LnlodIhYMDU3ypnW0gclcfj55 G01QlGmp5DO2wiVYujDkU1WyrUy3VAFU87I9WEhRpV9OiXml+R5zwXlmK69b9Sgx zGiQ04cfsJzz3eviT9hmmFR6rF6fcl9ZyNmWa2ZMCNgY98Hc4rLK430gDz8nLGiq 1k1ME3jPOYrFZksaU/yODzDAvlxFz4d9gRtDqPsBqv9Ns94zBpDCO3RcnIrA== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc:content-type:date:date:feedback-id :feedback-id:from:from:in-reply-to:in-reply-to:message-id :mime-version:references:reply-to:sender:subject:subject:to:to :x-me-proxy:x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s= fm1; t=1661904904; x=1661991304; bh=2Zh7w15Uw2z0KgDhNGEEXLkyvwzT u4vxZRH7A3c5dBk=; b=oQwm7OpB1VWVP1cF59cftol7XBvMx8bUOxTYRnlFQ71u 5labodGblDwCQhRzRcqQelHdni4vane/Fr2k0ln+nhMBvEfh2DzJ1lssrv0iSJXo 5SCezCiz94UOYnVo/+vzkGKe9o5GkAtCc0GxjFcK/dYT6YHqw9z4eHPzwH4Q37y0 w++pxJa+5oG+Igr9i1krFIHwTQwVo3qwrj5ABA2UGqMrikwySQx2l35mHz4XjZ/S 935kg3m61UVR4fl44rl9oce/h7iLVcmO95u5yAzePMZYcDD4d+Omd34Cp/76EjnM 3IkSemB5HKUeQXTJ4UHmFTxnlnB2tzXvpEAWx9sxKA== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvfedrvdekgedgfeegucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmne gfrhhlucfvnfffucdljedtmdenucfjughrpeffhffvvefukfhfgggtuggjsehgtderredt tddvnecuhfhrohhmpefoihgthhgrvghlucfrrghquhhivghruceomhhitghhrggvlhesph grqhhuihgvrhdrgiihiieqnecuggftrfgrthhtvghrnhepteelieefudffhffhtdetleeg geegfffhkeeuveetiefgudduvedutefggeeivdejnecuvehluhhsthgvrhfuihiivgeptd enucfrrghrrghmpehmrghilhhfrhhomhepmhhitghhrggvlhesphgrqhhuihgvrhdrgiih ii X-ME-Proxy: Feedback-ID: i0fe9450f:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Tue, 30 Aug 2022 20:15:02 -0400 (EDT) Date: Wed, 31 Aug 2022 09:15:00 +0900 From: Michael Paquier To: Tom Lane Cc: Andres Freund , Niyas Sait , Thomas Munro , Julien Rouhaud , PostgreSQL Hackers Subject: Re: [PATCH] Add native windows on arm64 support Message-ID: References: <2655387.1661695793@sss.pgh.pa.us> <20220828154154.4vk6lymdbvx7hnhc@awork3.anarazel.de> <2679975.1661701879@sss.pgh.pa.us> <3426682.1661817511@sss.pgh.pa.us> <20220830003356.yl7ok3elemonrclo@awork3.anarazel.de> <3479390.1661824810@sss.pgh.pa.us> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="5Gj6Cjz3ADZRdYTr" Content-Disposition: inline In-Reply-To: List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk --5Gj6Cjz3ADZRdYTr Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Wed, Aug 31, 2022 at 08:36:01AM +0900, Michael Paquier wrote: > There have been more failures, always switching the input from > "pre&deeppost" > to "pre&deeppost". >=20 > Using a PATH of node() influences the output. I am not verse unto > XMLTABLE, but could it be an issue where each node is parsed and we > have something like a qsort() applied on the pointer addresses for > each part or something like that, causing the output to become > unstable? Hmm. I think that I may have an idea here after looking at our xml.c and xpath.c in libxml2/. From what I understand, we process the PATH through XmlTableGetValue() that builds a XML node path in xmlXPathCompiledEval(). The interesting part comes from libxml2's xmlXPathCompiledEvalInternal(), where I think we don't apply a sort on the contents generated. Hence, I am wondering if the solution here would be to do one xmlXPathNodeSetSort(xpathobj->nodesetval) after compiling the path with xmlXPathCompiledEval() in XmlTableGetValue(). This should ensure that the items are ordered even if ASLR mixes if the pointer positions. A complete solution would involve more code paths, but we'd need only one change in XmlTableGetValue() for the current regression tests to work. I don't have an environment where I can reproduce that, so that would be up to the buildfarm to stress this solution.. Thoughts? -- Michael --5Gj6Cjz3ADZRdYTr Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAABCgAdFiEEG72nH6vTowiyblFKnvQgOdbyQH0FAmMOqAQACgkQnvQgOdby QH3q+A/+O3/TRs+0DkuV/fYD4vj/l1Xc0kfCRfTiprBqq6Bd7t4VmYIwVVld3/0j pZhJgSq0gJsDQ5VWxRGs9LPUcQK8t5q+AapJoQQehREANGSzN8tCGsNwupCULYcW r4UYMuUsvJG1/SGY7ijvyrwlZA80Prwt+jrdEHkNOkuzufG2Kwmpgvx2Wo7q5vTl lCg6IyUKyOVcPdFHUoVbh7eo3TauekPV54kB2kWtQx7LFz6n5jy3PGbLce4Czmrg Th7aupJNxhNr5YN5gHcqek6OVs+X2BwaHbOm8yzz4wvJAqc/Xp7M80QqxTOEKRac YKNBeToPwdwqoO9f0RI4N9ifDwBQ5xGrIq4p3B8VrGSZHF8QzWLLXuYwEIl1fK59 JBWEQcqza/G1G6iQJ922AAW+Q+i8B+II2F8daHab0j0NbRZDSQQgNL6IQp1bKJng //5tjAkf5fzZXEsSfXYmjEcSbcIbi/XKQqX9jMWZY+rr/1Bwxe6XS0mm3AtZiPDW Vkpne3G/GpnB1yaEePg99VGyImmhDRQhV6HMTDZUSpX38XpmZe54zfjYU9FAd19L a9gwUX2VzWiWaY4ek8h+/Nx//5CMTwgLkdde1XLBHxJnCkRGDYfNbt3MeT+03lNE rgims94xb+zUGA7YPVRXx0cvrcK0FlriYQX2qormlx/5PMSkraY= =YvyK -----END PGP SIGNATURE----- --5Gj6Cjz3ADZRdYTr--