Re: BUG #15899: Valgrind detects errors on create gist index
Michael Paquier <michael@paquier.xyz>
From: Michael Paquier <michael@paquier.xyz>
To: Andres Freund <andres@anarazel.de>
Cc: Alexander Lakhin <exclusion@gmail.com>, pgsql-bugs@lists.postgresql.org
Date: 2019-07-10T07:07:25Z
Lists: pgsql-bugs
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
Commits
-
Fix variable initialization when using buffering build with GiST
- 7b60468fa14a 9.4.24 landed
- b9e1538fcf35 9.5.19 landed
- 6365f3ca24b8 9.6.15 landed
- 4fea3434939d 10.10 landed
- 1cde7fe84a47 11.5 landed
- 4d713595914b 12.0 landed
- fa19a08d71fb 13.0 landed