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 1gXeo9-0007b3-6E for pgsql-hackers@arkaria.postgresql.org; Fri, 14 Dec 2018 04:10:37 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1gXeo6-0002yF-73 for pgsql-hackers@arkaria.postgresql.org; Fri, 14 Dec 2018 04:10:34 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1gXeo5-0002xM-Vp for pgsql-hackers@lists.postgresql.org; Fri, 14 Dec 2018 04:10:34 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1gXeo1-0003Kv-Lz for pgsql-hackers@lists.postgresql.org; Fri, 14 Dec 2018 04:10:32 +0000 Received: from sss1.sss.pgh.pa.us (localhost [127.0.0.1]) by sss.pgh.pa.us (8.14.4/8.14.4) with ESMTP id wBE4APfx016354; Thu, 13 Dec 2018 23:10:25 -0500 From: Tom Lane To: Tomas Vondra cc: Alvaro Herrera , pgsql-hackers@lists.postgresql.org Subject: Re: valgrind issues on Fedora 28 In-reply-to: <9063c043-83cd-b439-a928-622a743edd2c@2ndquadrant.com> References: <20181106173527.omm63tiaguxft7mg@alvherre.pgsql> <23c8e539-6777-1793-0939-12e73cb98314@2ndquadrant.com> <9063c043-83cd-b439-a928-622a743edd2c@2ndquadrant.com> Comments: In-reply-to Tomas Vondra message dated "Sun, 18 Nov 2018 00:11:54 +0100" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <16352.1544760625.1@sss.pgh.pa.us> Content-Transfer-Encoding: quoted-printable Date: Thu, 13 Dec 2018 23:10:25 -0500 Message-ID: <16353.1544760625@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk Tomas Vondra writes: > On 11/8/18 1:07 PM, Tomas Vondra wrote: >> Not sure what to do about this - maybe we should wildcard this first >> frame, to accept all wcsnlen variants. Opinions? > I've committed this with the first frame wirldcarded, and backpatched it > all the way back to 9.4. So I just got around to trying to do some valgrind testing for the first time in a couple of months, and what I find is that this patch completely breaks valgrind for me: it exits immediately with complaints like =3D=3D00:00:00:00.222 14821=3D=3D FATAL: in suppressions file "/home/postg= res/pgsql/src/tools/valgrind.supp" near line 227: =3D=3D00:00:00:00.222 14821=3D=3D unknown tool suppression type =3D=3D00:00:00:00.222 14821=3D=3D exiting now. After a bit of hair-pulling I found that the line number report is a lie, and what it's really unhappy about is the "Memcheck:Addr32" specification on line 236. This is not terribly surprising perhaps considering that "Addr32" isn't even documented on what should be the authoritative page: http://valgrind.org/docs/manual/mc-manual.html#mc-manual.suppfiles This is valgrind 3.8.1 (RHEL6's version), so not bleeding edge exactly, but we have very little evidence about how far back the committed patch works. I'm inclined to think we can't use this solution. regards, tom lane