From: Tom Lane <tgl@sss.pgh.pa.us>
To: Michael Paquier <michael.paquier@gmail.com>
Cc: Jehan-Guillaume de Rorthais <jgdr@dalibo.com>
Cc: PostgreSQL mailing lists <pgsql-bugs@postgresql.org>
Subject: Re: Segmentation fault with postgres -C external_pid_file
Date: Thu, 16 Jun 2016 11:50:07 -0400
Message-ID: <31465.1466092207@sss.pgh.pa.us> (raw)
In-Reply-To: <CAB7nPqQ3MFrk9pnjWRM5yw3GG3wDzmnV=51Mkw2XBuU-2jn2RA@mail.gmail.com>
References: <20160615204036.2d35d86a@firost>
<CAB7nPqQ3MFrk9pnjWRM5yw3GG3wDzmnV=51Mkw2XBuU-2jn2RA@mail.gmail.com>
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-bugs>
Michael Paquier <michael.paquier@gmail.com> writes:
> On Thu, Jun 16, 2016 at 3:40 AM, Jehan-Guillaume de Rorthais
> <jgdr@dalibo.com> wrote:
>> I just found that the following command always produce a segmentation fault
>> when external_pid_file is kept commented:
>> $ postgres -C external_pid_file
>> Segmentation fault (core dumped)
> Confirmed. puts() would print (null) on OSX even if that's not
> mentioned in the standard, and Linux would just segfault on it.
Right, this is going to be platform-specific behavior.
> So instead of your patch, I think that we'd rather just change
> PostmasterMain() so as it outputs something useful to the user in case
> of a NULL value, like that:
Agreed, fixing the -C code seems much less likely to have unexpected
side-effects than changing default values. Will push this in a bit.
regards, tom lane
--
Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-bugs
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: tgl@sss.pgh.pa.us, michael.paquier@gmail.com, jgdr@dalibo.com
Subject: Re: Segmentation fault with postgres -C external_pid_file
In-Reply-To: <31465.1466092207@sss.pgh.pa.us>
References: <20160615204036.2d35d86a@firost> <CAB7nPqQ3MFrk9pnjWRM5yw3GG3wDzmnV=51Mkw2XBuU-2jn2RA@mail.gmail.com> <31465.1466092207@sss.pgh.pa.us>
* 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