From: Noah Misch <noah@leadboat.com>
To: Tom Lane <tgl@sss.pgh.pa.us>
Cc: Andres Freund <andres@2ndquadrant.com>
Cc: Andrew Dunstan <andrew@dunslane.net>
Cc: Robert Haas <robertmhaas@gmail.com>
Cc: pgsql-hackers@postgresql.org <pgsql-hackers@postgresql.org>
Cc: Matthias Schmitt <freak002@mmp.lu>
Subject: Re: OSX doesn't accept identical source/target for strcpy() anymore
Date: Mon, 28 Oct 2013 22:20:02 -0400
Message-ID: <20131029022002.GA587990@tornado.leadboat.com> (raw)
In-Reply-To: <17900.1383009288@sss.pgh.pa.us>
References: <934199A3-FF2F-4E5E-A8FF-E6F621B6F64D@mmp.lu>
<20131028161132.GA14980@awork2.anarazel.de>
<CA+TgmoavSKcuuPx-7tbq8+zCwsn9N0TTzzU-OkfLm2uX+jCqmA@mail.gmail.com>
<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>
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-hackers>
On Mon, Oct 28, 2013 at 09:14:48PM -0400, Tom Lane wrote:
> Andres Freund <andres@2ndquadrant.com> 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
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-bugs@postgresql.org
Cc: noah@leadboat.com, tgl@sss.pgh.pa.us, andres@2ndquadrant.com, andrew@dunslane.net, robertmhaas@gmail.com, pgsql-hackers@postgresql.org, freak002@mmp.lu
Subject: Re: OSX doesn't accept identical source/target for strcpy() anymore
In-Reply-To: <20131029022002.GA587990@tornado.leadboat.com>
References: <934199A3-FF2F-4E5E-A8FF-E6F621B6F64D@mmp.lu> <20131028161132.GA14980@awork2.anarazel.de> <CA+TgmoavSKcuuPx-7tbq8+zCwsn9N0TTzzU-OkfLm2uX+jCqmA@mail.gmail.com> <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> <20131029022002.GA587990@tornado.leadboat.com>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox