Re: [9.0beta5/cvs head] build failure due to unchecked results

From: Robert Haas <robertmhaas(at)gmail(dot)com>
To: Peter Eisentraut <peter_e(at)gmx(dot)net>
Cc: Andres Freund <andres(at)anarazel(dot)de>, pgsql-bugs(at)postgresql(dot)org, Martin Pitt <mpitt(at)debian(dot)org>
Subject: Re: [9.0beta5/cvs head] build failure due to unchecked results
Date: 2010-04-30 14:03:52
Message-ID: AANLkTikl7uHt-Cm3VpiDwglB0L8JMMlffySn3U1P6rte@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-bugs

On Fri, Apr 30, 2010 at 9:14 AM, Peter Eisentraut <peter_e(at)gmx(dot)net> wrote:
> On fre, 2010-04-30 at 14:43 +0200, Andres Freund wrote:
>> On Friday 30 April 2010 13:56:11 Peter Eisentraut wrote:
>> >
>> > You probably mean alpha5, unless you come from the future. ;-)  That was
>> > actually a mistake in the packaging, which is why there is a -revised
>> > tarball available.
>> Isnt it a good idea to set this in the pre-release versions? It might catch
>> potential problems and people trying to compile unreleased software from
>> source should be able to change it/report a bug if necessary.
>
> In practice it might prevent more people from building and thus testing
> PostgreSQL than it would catch actually interesting problems.  You also
> can't assume that the same warning-freeness applies to all platforms.

Yeah, that's the real problem - one doesn't get the same warnings
everywhere. Still, I think we should consider applying the portion of
the proposed patch that avoid relying on the contents of the fgets()
buffer after fgets() returns NULL, because at least on MacOS the man
page for gets/fgets says:

If an error occurs, they return NULL and the buffer contents are indeterminate.

Indeterminate is bad. The actual chance of a crash seems low, and I
notice that the Linux man page has no such caveat, but still.

...Robert

In response to

Responses

Browse pgsql-bugs by date

  From Date Subject
Next Message Tom Lane 2010-04-30 15:50:47 Re: BUG #5443: Undetected deadlock situation
Previous Message Claudio Freire 2010-04-30 14:01:11 Re: BUG #5443: Undetected deadlock situation