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 1sKJnO-009VWj-Ob for pgsql-hackers@arkaria.postgresql.org; Thu, 20 Jun 2024 15:33:54 +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 1sKJnM-009tO7-0u for pgsql-hackers@arkaria.postgresql.org; Thu, 20 Jun 2024 15:33:52 +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 1sKJnL-009tNz-Nf for pgsql-hackers@lists.postgresql.org; Thu, 20 Jun 2024 15:33:52 +0000 Received: from sss.pgh.pa.us ([68.162.161.243]) by makus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1sKJnJ-002Gym-VA for pgsql-hackers@lists.postgresql.org; Thu, 20 Jun 2024 15:33:51 +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 45KFXkIX353045; Thu, 20 Jun 2024 11:33:46 -0400 From: Tom Lane To: Ranier Vilela cc: Tomas Vondra , PostgreSQL Hackers , Masahiko Sawada , John Naylor Subject: Re: suspicious valgrind reports about radixtree/tidstore on arm64 In-reply-to: References: <120c63ad-3d12-415f-a7bf-3da451c31bf6@enterprisedb.com> <115286.1718809897@sss.pgh.pa.us> <162580.1718831471@sss.pgh.pa.us> <225667.1718837686@sss.pgh.pa.us> <248275.1718841112@sss.pgh.pa.us> Comments: In-reply-to Ranier Vilela message dated "Thu, 20 Jun 2024 08:50:26 -0300" MIME-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-ID: <353043.1718897626.1@sss.pgh.pa.us> Content-Transfer-Encoding: quoted-printable Date: Thu, 20 Jun 2024 11:33:46 -0400 Message-ID: <353044.1718897626@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk Ranier Vilela writes: > Em qua., 19 de jun. de 2024 =C3=A0s 20:52, Tom Lane = escreveu: >> Hah: it's the second case. If I patch radixtree.h as attached, >> then x86_64 valgrind complains about >> =3D=3D00:00:00:32.759 247596=3D=3D Conditional jump or move depends on >> uninitialised value(s) >> =3D=3D00:00:00:32.759 247596=3D=3D at 0x52F668: local_ts_node_16_sea= rch_eq >> (radixtree.h:1018) >> showing that it knows that the result of vector8_highbit_mask is >> only partly defined. > I wouldn't be surprised if *RT_NODE_16_GET_INSERTPOS* > (src/include/lib/radixtree.h), > does not suffer from the same problem? Dunno, I only saw valgrind complaints in local_ts_node_16_search_eq, and Tomas reported the same. It seems moderately likely to me that this is a bug in aarch64 valgrind. Still, if it is that then people will have to deal with it for awhile yet. It won't cost us anything meaningful to work around it (he says, without having done actual measurements...) regards, tom lane