Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1Vaslb-0005II-1D for pgsql-hackers@arkaria.postgresql.org; Mon, 28 Oct 2013 19:46:23 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.80) (envelope-from ) id 1VaslZ-0000mk-Pl for pgsql-hackers@arkaria.postgresql.org; Mon, 28 Oct 2013 19:46:21 +0000 Received: from makus.postgresql.org ([2001:4800:7903:4::125]) by malur.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1VaslW-0000mU-Dg for pgsql-hackers@postgresql.org; Mon, 28 Oct 2013 19:46:20 +0000 Received: from moutng.kundenserver.de ([212.227.17.10]) by makus.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1VaslS-0007m9-OD for pgsql-hackers@postgresql.org; Mon, 28 Oct 2013 19:46:17 +0000 Received: from anarazel.de (p5DDC7390.dip0.t-ipconnect.de [93.220.115.144]) by mrelayeu.kundenserver.de (node=mreu3) with ESMTP (Nemesis) id 0LiJtA-1W6d9K2H5Y-00ceZ3; Mon, 28 Oct 2013 20:46:10 +0100 Received: by anarazel.de (Postfix, from userid 1000) id DF7BE102004; Mon, 28 Oct 2013 20:46:09 +0100 (CET) Date: Mon, 28 Oct 2013 20:46:09 +0100 From: Andres Freund To: Andrew Dunstan Cc: Tom Lane , Robert Haas , "pgsql-hackers@postgresql.org" , Matthias Schmitt Subject: Re: OSX doesn't accept identical source/target for strcpy() anymore Message-ID: <20131028194609.GA16709@awork2.anarazel.de> References: <5A871654-B250-4837-99DB-EB6D44E64E65@mmp.lu> <20131028144225.GG5577@awork2.anarazel.de> <55D64809-F305-41A9-946B-8EAFF88FBE3B@mmp.lu> <20131028153750.GH5577@awork2.anarazel.de> <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> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <526EB8F4.2070806@dunslane.net> X-Provags-ID: V02:K0:BQbzNh+ESYsCejFrYU4dzRoWaXbfF2bre89du/BzpcR oitx1ZiGo60Df2VvUBNQhTav2YCFnJZDn9TyiL6wcT3cSG4eGV AREyV6wz+h9PEbn9t/HulyPDw/RQ1wNBfNUrXko1c7RUMpUfpn fKQ0T5UfSoNiKlWvWcRVP0gIX2PjJiqfEtR6/XIfQasI+DQtwL 9ZOX5nTjOcU3VPb/tQVa09/s8Pt7ILD80p/LiAd2iuQwGaPWyS uUn/hrE8bYZUhOmpiQ9CxN+IXLjMofa4++7pvbYKp3kS/uP4Dh j3+hTQ4yeEw9ZxvoP+IaQ8VUBpRD04Boj3TVrPlv+1VMASkjJD Ze+SE+2hCNhy1rjjevCGsWB+VYlAGOPlGmF1C48+p 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 15:20:20 -0400, Andrew Dunstan wrote: > > On 10/28/2013 02:26 PM, Andres Freund wrote: > > > >It'd be neat if we could get a buildfarm animal up that uses valgrind - > >which would catch such and lots of other errors. That's where the topic > >has come up in the past: > >http://www.postgresql.org/message-id/20110312133224.GA7833%40tornado.gateway.2wire.net > >http://www.postgresql.org/message-id/20130217142209.GA5073@awork2.anarazel.de > > > > > How exactly is it going to do that? The easiest method - somewhat slower than necessary - is to just run "valgrind --suppressions=$srcdir/src/tools/valgrind.supp make check". But the buildfarm supports running a postgres install before installcheck, right? If we could run just that step using valgrind we'd be very well of I think because we'd not run valgrind (slow!) if there are plain regression failures around. [.. looking for sources ...] start_db in https://github.com/PGBuildFarm/client-code/blob/master/run_build.pl is where the server's run, right? Hm. That uses pg_ctl and not the server itself and relies on pg_ctl -w returning when the server is started... So it's not easy to make it use valgrind properly. We could hack it by replacing bin/postgres with a wrapper around valgrind that invokes postgres, but ick. Maybe we can make pg_ctl start $PG_POSTGRES_BINARY instead of postgres if defined? Better ideas? > Fundamentally, the buildfarm client is simply glue to run existing build and > test code, collect the results, and send them to the server. AFAICT there > are no configure or make targets for running under valgrind. > If someone provides the requisite support in the build system for this I'll > be happy to add buildfarm support for it. It'd be relatively easy to add support for make check (not installcheck) wrapping postgres in valgrind via pg_regress, but I am not sure that's the best way to go. I think defining an additional CFLAG (USE_VALGRIND) shouldn't be a problem? 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