Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1eoBtN-0005Ds-MD for pgsql-hackers@arkaria.postgresql.org; Tue, 20 Feb 2018 17:39:49 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1eoBtM-0006YH-J2 for pgsql-hackers@arkaria.postgresql.org; Tue, 20 Feb 2018 17:39:48 +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_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1eoBtM-0006Y7-CH for pgsql-hackers@lists.postgresql.org; Tue, 20 Feb 2018 17:39:48 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1eoBtJ-0001Vb-JT for pgsql-hackers@postgresql.org; Tue, 20 Feb 2018 17:39:47 +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 w1KHdbY4009336; Tue, 20 Feb 2018 12:39:37 -0500 From: Tom Lane To: Andres Freund cc: Aleksander Alekseev , PostgreSQL Hackers Subject: Re: [PATCH] Add a few suppression rules for Valgrind In-reply-to: <20180220172858.ol7rndl6o7sh3qvr@alap3.anarazel.de> References: <20180220150838.GD18315@e733.localdomain> <20180220172858.ol7rndl6o7sh3qvr@alap3.anarazel.de> Comments: In-reply-to Andres Freund message dated "Tue, 20 Feb 2018 09:28:58 -0800" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <9334.1519148377.1@sss.pgh.pa.us> Date: Tue, 20 Feb 2018 12:39:37 -0500 Message-ID: <9335.1519148377@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk Andres Freund writes: >> I decided to run the code from master branch under Valgrind and >> discovered that it reports some errors. > On my systems I just include a global valgrind suppression file which > includes libc specific things and then the postgres valgrind.supp. I'm > very hesitant to add suppressions to the codebase for this, seems too > likely to actually hide bugs. Yeah, I think it's a much better idea to add a local suppression file for problems in your local libc or other libraries. That's what I do. Looking at mine, it also suppresses some weirdnesses in RHEL6's version of Perl, which would surely be inappropriate on other platforms. regards, tom lane