pg.ddx.io  pgsql-bugs@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Alvaro Herrera <alvherre@2ndquadrant.com>
To: Dave Vitek <dvitek@grammatech.com>
Cc: Heikki Linnakangas <hlinnakangas@vmware.com>
Cc: Tom Lane <tgl@sss.pgh.pa.us>
Cc: Pg Bugs <pgsql-bugs@postgresql.org>
Subject: Re: Fwd: race in pg_ctl start -w
Date: Thu, 18 Oct 2012 16:15:30 -0300
Message-ID: <20121018191529.GM3763@alvh.no-ip.org> (raw)
In-Reply-To: <508052F6.20803@grammatech.com>
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>

Dave Vitek wrote:

> Heikki,
> 
> 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.

-- 
Álvaro Herrera                http://www.2ndQuadrant.com/
PostgreSQL Development, 24x7 Support, Training & Services




view thread (8+ messages)  latest in thread

Message-ID: <20121018191529.GM3763@alvh.no-ip.org>
Permalink:  ../20121018191529.GM3763@alvh.no-ip.org/
Also on:    postgresql.org/message-id/20121018191529.GM3763@alvh.no-ip.org

 · 

reply

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: alvherre@2ndquadrant.com, dvitek@grammatech.com, hlinnakangas@vmware.com, tgl@sss.pgh.pa.us
  Subject: Re: Fwd: race in pg_ctl start -w
  In-Reply-To: <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> <20121018191529.GM3763@alvh.no-ip.org>

* 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