Received: from magus.postgresql.org ([87.238.57.229]) by malur.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1TOvZG-0004MX-Le for pgsql-bugs@postgresql.org; Thu, 18 Oct 2012 19:15:42 +0000 Received: from smtprelay0162.b.hostedemail.com ([64.98.42.162] helo=smtprelay.b.hostedemail.com) by magus.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1TOvZ9-0006TN-Ln for pgsql-bugs@postgresql.org; Thu, 18 Oct 2012 19:15:41 +0000 Received: from filter.hostedemail.com (b-bigip1 [10.5.19.254]) by smtprelay02.b.hostedemail.com (Postfix) with SMTP id 4E77117C626; Thu, 18 Oct 2012 19:15:33 +0000 (UTC) X-Panda: scanned! X-Spam-Summary: 50, 0, 0, , d41d8cd98f00b204, alvherre@alvh.no-ip.org, :::::::, RULES_HIT:355:379:599:601:967:973:982:988:989:1260:1277:1311:1312:1313:1314:1345:1358:1359:1437:1515:1516:1518:1519:1534:1538:1593:1594:1595:1596:1711:1714:1730:1747:1777:1792:2393:2525:2560:2563:2682:2685:2828:2857:2859:2933:2937:2939:2942:2945:2947:2951:2954:3022:3027:3138:3139:3140:3141:3142:3350:3865:3866:3867:3869:3870:3871:3872:3934:3936:3938:3941:3944:3947:3950:3953:3956:3959:4605:4659:5007:6261:7679:9025:9121:10004:10400:10848:11256:11257:11658:11914:12517:12519, 0, RBL:none, CacheIP:none, Bayesian:0.5, 0.5, 0.5, Netcheck:none, DomainCache:0, MSF:not bulk, SPF:fn, MSBL:0, DNSBL:none, Custom_rules:0:0:0 X-Session-Marker: 616C76686572726540616C76682E6E6F2D69702E6F7267 X-Filterd-Recvd-Size: 1705 Received: from perhan.alvh.no-ip.org (unknown [190.95.25.25]) (Authenticated sender: alvherre@alvh.no-ip.org) by omf06.b.hostedemail.com (Postfix) with ESMTPA; Thu, 18 Oct 2012 19:15:32 +0000 (UTC) Received: by perhan.alvh.no-ip.org (Postfix, from userid 1000) id 3DF856E05D; Thu, 18 Oct 2012 16:15:30 -0300 (CLST) Date: Thu, 18 Oct 2012 16:15:30 -0300 From: Alvaro Herrera To: Dave Vitek Cc: Heikki Linnakangas , Tom Lane , Pg Bugs Subject: Re: Fwd: race in pg_ctl start -w Message-ID: <20121018191529.GM3763@alvh.no-ip.org> References: <5076F626.2090404@grammatech.com> <5076FF23.6020704@iki.fi> <22107.1349976592@sss.pgh.pa.us> <50771713.8000908@vmware.com> <25454.1349984162@sss.pgh.pa.us> <507BC402.40807@vmware.com> <508052F6.20803@grammatech.com> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline In-Reply-To: <508052F6.20803@grammatech.com> User-Agent: Mutt/1.5.21 (2010-09-15) Content-Transfer-Encoding: quoted-printable X-Pg-Spam-Score: -1.9 (-) X-Archive-Number: 201210/184 X-Sequence-Number: 34484 Dave Vitek wrote: > Heikki, >=20 > It's happy about the overruns. It did flag an issue where the file > descriptor can leak when the various early returns get taken. This is a common problem with static analysers; they don't realise we don't care about the leaked resource because the program is shortly going to terminate anyway. We (used to?) have plenty of false positives in initdb as reported in the Coverity scanner, for example. --=20 =C1lvaro Herrera http://www.2ndQuadrant.com/ PostgreSQL Development, 24x7 Support, Training & Services