Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1Vay7M-0007My-DQ for pgsql-hackers@arkaria.postgresql.org; Tue, 29 Oct 2013 01:29:12 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.80) (envelope-from ) id 1Vay7L-0006Kx-Qi for pgsql-hackers@arkaria.postgresql.org; Tue, 29 Oct 2013 01:29:11 +0000 Received: from makus.postgresql.org ([2001:4800:7903:4::125]) by malur.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1Vay7J-0006IO-9B for pgsql-hackers@postgresql.org; Tue, 29 Oct 2013 01:29:09 +0000 Received: from moutng.kundenserver.de ([212.227.17.8]) by makus.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1Vay7F-0005Y1-UO for pgsql-hackers@postgresql.org; Tue, 29 Oct 2013 01:29:08 +0000 Received: from anarazel.de (p5DDC714A.dip0.t-ipconnect.de [93.220.113.74]) by mrelayeu.kundenserver.de (node=mrbap2) with ESMTP (Nemesis) id 0MEbiz-1VU8UL2TaT-00GNRS; Tue, 29 Oct 2013 02:29:04 +0100 Received: by anarazel.de (Postfix, from userid 1000) id EE0841013EF; Tue, 29 Oct 2013 02:29:03 +0100 (CET) Date: Tue, 29 Oct 2013 02:29:03 +0100 From: Andres Freund To: Tom Lane Cc: Andrew Dunstan , Robert Haas , "pgsql-hackers@postgresql.org" , Matthias Schmitt Subject: Re: OSX doesn't accept identical source/target for strcpy() anymore Message-ID: <20131029012903.GK20248@awork2.anarazel.de> 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> X-Provags-ID: V02:K0:H4zIrQPGiCbeVkGEPLJLPIoDsCiDE94vpxzEMqWHNsy dOzvg3QGh35dEdIdSS4GOmGGGMmkHrGtmdI2so3utwqPauNngu 0vRbnrTSy4y3ZB2en6HFj8fCdRLf0dosB4VDvtCwdCbM3Xvkv1 lUBaFmt6BM54Sn5F2xpgSVcakbHvUHYTuvblxGAbXgMaUNV30/ 4hD82miAiPENKmbC/DWHPH8UdMdtuH2fzcJF3ZRqeLwJ8hF1R4 dr1Jfbg3fioCblhsUhCVxrplkr0ncQFuFszgDtYHTYqxcs2DSL fqNk4vBriyp40s0tAah13BKxTSyHQjdpeer43IT0At6H3VrrAJ HxaMjIKVyxyP7p9FC+ujlgP3oBx2+u8RtO2mwb1ZA X-Pg-Spam-Score: -1.9 (-) 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 2013-10-28 21:14:48 -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; but there are far worse > problems: Spurious or real bugs? Inside PG or libc? > 1. The output goes to stderr which means it's mixed in with the backend's > normal log chatter. That's relatively easy to fix. We could just pass --log-file redirecting the errors somewhere special and display them there. What I've done so far is to tell valgrind to let child processes with errors exit with a non-zero exitcode using the --error-exitcode parameter and specify -q to reduce the chatter upon normal process exit. That gives at least some correlation to the errors in the failed tests. > 2. valgrind causes autovacuum to dump core, at least on my box (RHEL6). > I'm prepared to believe that this is some relatively old bug that Red Hat > hasn't gotten round to including a patch for, but still it doesn't leave > me with any warm fuzzy feeling about the practicality of routine valgrind > testing. Yea, I know which bug that is, I've pushed the valgrind guys into fixing it... valgrind used to get confused about stack alignment in signal handlers causing instructions that care about that (mostly xmm* register using ones) to fail. elog() fails because we frequently pass many parameters. Since we fork processes from inside signal handlers, that situation happens pretty often. https://bugs.kde.org/show_bug.cgi?id=280114 3. valgrind gets floating point computations for exp(larger_negative_double) wrong and returns the wrong error message: regression=# SELECT exp(-808.3::float8); ERROR: value out of range: overflow exp sets errno=ERANGE and returns inf. That's not supposed to happen according to my exp(3)... Greetings, Andres Freund -- Andres Freund http://www.2ndQuadrant.com/ PostgreSQL Development, 24x7 Support, Training & Services -- Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-hackers