Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1hl6ht-0005kE-3V for pgsql-bugs@arkaria.postgresql.org; Wed, 10 Jul 2019 07:08:01 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1hl6hq-0001JC-8Z for pgsql-bugs@arkaria.postgresql.org; Wed, 10 Jul 2019 07:07:58 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1hl6hp-0001Iz-Tf for pgsql-bugs@lists.postgresql.org; Wed, 10 Jul 2019 07:07:58 +0000 Received: from out4-smtp.messagingengine.com ([66.111.4.28]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1hl6hn-0007m8-KI for pgsql-bugs@lists.postgresql.org; Wed, 10 Jul 2019 07:07:56 +0000 Received: from compute4.internal (compute4.nyi.internal [10.202.2.44]) by mailout.nyi.internal (Postfix) with ESMTP id C4EAF220A3; Wed, 10 Jul 2019 03:07:54 -0400 (EDT) Received: from mailfrontend2 ([10.202.2.163]) by compute4.internal (MEProxy); Wed, 10 Jul 2019 03:07:54 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=paquier.xyz; h= date:from:to:cc:subject:message-id:references:mime-version :content-type:in-reply-to; s=fm2; bh=3tk3b//e1X1+ch4LZ6Lk8r5Tbl1 0uEvwXOIuBnTmFfY=; b=ip1PiVVuIaKVsZ1Jc3pcVdsORnHRUXfgBkI9FqUnk4o D5sKba9uD2/43gN7bzZLsNnUFqiRRwPHwFfzPAyyJClBMsqVbfx7rKfRynXJUCAK K/AmO4EbegUzanq+SrWoec5IQ3U32k7eoNZGYcwV4ZH/rjJQ8wfM04s1KbjB/gcW +72pD62dezlAIErRkJlFGbj5rgP+P+627lgtugEZvssw6deHFueN1cQ/MumYSJI0 lGOQBb7dGxc4qxNmt7vulAOzZjOYm2GtyGClBsGvVmf+4Kcpqt0zK4h2TUgHUKit aj+xVDisBo0h9jWGpU00RStYAbn8iYp6SXqOKhjnfLQ== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to:x-me-proxy :x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s=fm3; bh=3tk3b/ /e1X1+ch4LZ6Lk8r5Tbl10uEvwXOIuBnTmFfY=; b=Z6XNYMZdznn59zwag4OXK0 qs03h97w/Ipxectj+WqX7RsRr6HAeDWohlRj7S7qTvPGzPmo/EfXXZI81jvw3stO cgZo1G7FHkYWkgEpwTG1tLJESBjA8Il8m2ikmKI7x3PS7aB9AskJOfyvIYnluLKw HVmBt4g63yh0wUYsYlzniTdE7NYQdiaV+8I9guNjyK0OzG5boukhnWQHnPxlBkyB WlUJdmkZIx44A7XYDZDLe44lQoX1rBn4w3/mE1ndMlzBa/LbYmjUmK0jRIoydy3r tqMZpj8TlWX7c7zRbtVtLD9bZdmqKnBtrRGyqIzHpuZa3QDUrED+6Jh/g2BdSG/A == X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeduvddrgeehgdeifecutefuodetggdotefrodftvf curfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfghnecu uegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmdenfg hrlhcuvffnffculdefhedmnecujfgurhepfffhvffukfhfgggtuggjsehgtderredttddv necuhfhrohhmpefoihgthhgrvghlucfrrghquhhivghruceomhhitghhrggvlhesphgrqh huihgvrhdrgiihiieqnecuffhomhgrihhnpehpohhsthhgrhgvshhqlhdrohhrghenucfk phepudduuddruddtvddrudektddrudekheenucfrrghrrghmpehmrghilhhfrhhomhepmh hitghhrggvlhesphgrqhhuihgvrhdrgiihiienucevlhhushhtvghrufhiiigvpedt X-ME-Proxy: Received: from paquier.xyz (ee0822lan1.rev.em-net.ne.jp [111.102.180.185]) by mail.messagingengine.com (Postfix) with ESMTPA id 07A6C380088; Wed, 10 Jul 2019 03:07:40 -0400 (EDT) Date: Wed, 10 Jul 2019 16:07:25 +0900 From: Michael Paquier To: Andres Freund Cc: Alexander Lakhin , pgsql-bugs@lists.postgresql.org Subject: Re: BUG #15899: Valgrind detects errors on create gist index Message-ID: <20190710070725.GA5042@paquier.xyz> References: <15899-0d24fb273b3dd90c@postgresql.org> <38f18230-e766-3a87-e3ad-fef6562c0c23@gmail.com> <20190709044341.GA23827@paquier.xyz> <20190709205925.5p7yu65a32yjzn5q@alap3.anarazel.de> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="3MwIy2ne0vdjdPXF" Content-Disposition: inline In-Reply-To: <20190709205925.5p7yu65a32yjzn5q@alap3.anarazel.de> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk --3MwIy2ne0vdjdPXF Content-Type: text/plain; charset=us-ascii Content-Disposition: inline On Tue, Jul 09, 2019 at 01:59:25PM -0700, Andres Freund wrote: > I think this is just that openssl bug we've been talking about a while > ago. keep_current_best is initialized via random(), which is in turn > initialized with openssl's randomness (cf InitProcessGlobals()). As > valgrind - legitimately - thinks that the openssl' random value is > tainted by uninitialized data, it thinks that keep_current_best is > uninitialized. And the branches above are the first values where a jump > is made based on that uninitialized data. Yes, thanks for reminding of that issue: https://www.postgresql.org/message-id/20190611205131.e5trufqahzpiwut6@alap3.anarazel.de I completely forgot about it, and I am now on 1.1.1c on my dev machine, so this explains that. -- Michael --3MwIy2ne0vdjdPXF Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAABCgAdFiEEG72nH6vTowiyblFKnvQgOdbyQH0FAl0ljq0ACgkQnvQgOdby QH3K+g/+IGyVMwouKzshsNXdJL22f/jxDdAVvldR0tmbifoO8D89q8eALS5EcEO6 kfxfmTdQQcDFkey37ThGbGJLyBXx12D5W9Qlzg2N2jRara78OWeT5QnRVBDx5RIv +eBCKVV0Npu1mLJGPn1jn5upFLQnCF/UFbknqAuweqfzXdDWMC45nQjewBjxlsEZ 0yM9u05jZ8V5wOIX0dA/GvMEzWeUai+m/7l4RAlG3eAHlsU4m+RJ/oErzdhy3gJw c78Iz5uUGKbI4JVCZqrjp6HKxi0Bf2TnVl7qs9qhBPSsww3JawZR1i050R54xU/E yKt8oEwTjNnQ6y1Mwg+D+RMnnbD/pEVmoFVEV4RKpA4zl4ZT+MdCDoH5feZEjW90 59+RaH9uJ84WtUbwStrHU/fQVzFrenzmJQTqs2QfK6a1wVyLGEINJi1r9IOLEMqS GNU+ATAeIyFOXY3Uh4RbaFnM6SYdcAlD2/x6eBCbpZ4BjIiO75/RSOsS3C2rlL8k TW0/Bx3D+qMfW4ymZnI10xOg8H/m2UiGpr78e8aLDqHvrjEYwTio4NnGOquA963P PpeSGTLQci40xCw5+vuHJYG/BD4sIR06mKFOG0GjulJ3UbkrkQ3o5Ix+TRjngw0a eWJbOQcKdhcI7ShiVmZEwZganZfY0G+xodgVbcPnfgPLQi8/O1Q= =zV5t -----END PGP SIGNATURE----- --3MwIy2ne0vdjdPXF--