Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1Vayui-00034o-AJ for pgsql-hackers@arkaria.postgresql.org; Tue, 29 Oct 2013 02:20:12 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.80) (envelope-from ) id 1Vayuh-0004FY-MD for pgsql-hackers@arkaria.postgresql.org; Tue, 29 Oct 2013 02:20:11 +0000 Received: from makus.postgresql.org ([2001:4800:7903:4::125]) by malur.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1Vayug-0004Ep-96 for pgsql-hackers@postgresql.org; Tue, 29 Oct 2013 02:20:10 +0000 Received: from mail-qe0-f42.google.com ([209.85.128.42]) by makus.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1Vayuc-0006Qw-Gr for pgsql-hackers@postgresql.org; Tue, 29 Oct 2013 02:20:08 +0000 Received: by mail-qe0-f42.google.com with SMTP id gc15so4590018qeb.15 for ; Mon, 28 Oct 2013 19:20:05 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-type:content-disposition:in-reply-to :user-agent; bh=oMb5dJkVy7nAOqJ+JwmjPPs90pnoUWssUsVUl+wr4oc=; b=ROyh3sI0w7Ii6pzclLOKjRZ96zTC62tzJ9M8S9upQzyTZIMvu+YHoN/KH74IiDnMsS GeFVLMWt/Hh+MjvWojY3OnYdonVFp96w2/UZaS9o4WMomEu2xLCFTgyy7VdMewQQJ5uh dpzzdX+f6Hsh7MGjpWFOXjQaDNCnZGhT22Ziak+H0CjvhjrUfJ5AtrALxMDy8fG6/L8n HualxatqhJmwB++5ruqvY2EpdI7E6CD3MDgvqrunQQyE4YqBzRZ/H7VePh5XWrXJzimZ jnNP+1/92F3FiSM00OawUhkEEO6VCxDNoylLoiHFGiMb910Iu7bRLwzaD4RLdDoC3gLW MeuA== X-Gm-Message-State: ALoCoQmfeDGBMN8bKhUQ3gX9c78k8BAipsKSlqCtBGbE3SoV6zZkinnBvjt8uOizlERC9k/Hzk2u X-Received: by 10.224.131.133 with SMTP id x5mr34053272qas.70.1383013205407; Mon, 28 Oct 2013 19:20:05 -0700 (PDT) Received: from tornado.leadboat.com (c-107-4-219-91.hsd1.va.comcast.net. [107.4.219.91]) by mx.google.com with ESMTPSA id d7sm60088756qas.10.2013.10.28.19.20.04 for (version=TLSv1 cipher=RC4-SHA bits=128/128); Mon, 28 Oct 2013 19:20:04 -0700 (PDT) Date: Mon, 28 Oct 2013 22:20:02 -0400 From: Noah Misch To: Tom Lane Cc: Andres Freund , Andrew Dunstan , Robert Haas , "pgsql-hackers@postgresql.org" , Matthias Schmitt Subject: Re: OSX doesn't accept identical source/target for strcpy() anymore Message-ID: <20131029022002.GA587990@tornado.leadboat.com> References: <934199A3-FF2F-4E5E-A8FF-E6F621B6F64D@mmp.lu> <20131028161132.GA14980@awork2.anarazel.de> <7718.1382983872@sss.pgh.pa.us> <20131028182653.GD20248@awork2.anarazel.de> <526EB8F4.2070806@dunslane.net> <20131028194609.GA16709@awork2.anarazel.de> <10044.1382990556@sss.pgh.pa.us> <20131028203253.GH20248@awork2.anarazel.de> <17900.1383009288@sss.pgh.pa.us> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <17900.1383009288@sss.pgh.pa.us> User-Agent: Mutt/1.5.18 (2008-05-17) X-Pg-Spam-Score: -2.6 (--) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-hackers Precedence: bulk Sender: pgsql-hackers-owner@postgresql.org On Mon, Oct 28, 2013 at 09:14:48PM -0400, Tom Lane wrote: > Andres Freund writes: > > On 2013-10-28 16:02:36 -0400, Tom Lane wrote: > >> The larger problem though is what you'd do with the output. There's > >> enough false-positive noise from valgrind that I can't see having > >> the buildfarm run just fail if there are any messages. What to do > >> instead isn't very clear. > > > The false positives should be gone using the suppressions file we ship > > these days (--suppressions=/path/to/pg/src/tools/valgrind.supp). We > > might miss some more cases there, but it should be fairly easy to extend > > it. > > They're not all gone according to my testing True. Getting a clean Valgrind report is similar to getting the build warning-free. Variations of compiler version, optimization level, host OS, and CPU architecture can all affect the set of errors Valgrind reports, just as they affect compiler warnings. Valgrind cleanliness has a lot of catching up to do. I never ran initdb under Valgrind, just "make installcheck", so that's novel territory. > 1. The output goes to stderr which means it's mixed in with the backend's > normal log chatter. As Andres explained, this is strictly a local configuration choice. > 2. valgrind causes autovacuum to dump core, at least on my box (RHEL6). Don't bother with versions older than Valgrind 3.8.1. Besides having a fix for that bug, it runs PostgreSQL an order of magnitude faster, per the comment in pg_config_manual.h. nm -- Noah Misch EnterpriseDB http://www.enterprisedb.com -- Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-hackers