pg.ddx.io  pgsql-bugs@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Jehan-Guillaume de Rorthais <jgdr@dalibo.com>
To: Tom Lane <tgl@sss.pgh.pa.us>
Cc: Michael Paquier <michael.paquier@gmail.com>
Cc: PostgreSQL mailing lists <pgsql-bugs@postgresql.org>
Subject: Re: Segmentation fault with postgres -C external_pid_file
Date: Fri, 17 Jun 2016 16:28:50 +0200
Message-ID: <20160617162850.419d577b@firost> (raw)
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>
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-bugs>

Le Thu, 16 Jun 2016 11:50:07 -0400,
Tom Lane <tgl@sss.pgh.pa.us> a écrit :

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

Thank you for the fix guys.

Regards,


-- 
Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-bugs



view thread (4+ messages)

Message-ID: <20160617162850.419d577b@firost>
Permalink:  ../20160617162850.419d577b@firost/
Also on:    postgresql.org/message-id/20160617162850.419d577b@firost

 · 

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: jgdr@dalibo.com, tgl@sss.pgh.pa.us, michael.paquier@gmail.com
  Subject: Re: Segmentation fault with postgres -C external_pid_file
  In-Reply-To: <20160617162850.419d577b@firost>
  References: <20160615204036.2d35d86a@firost> <CAB7nPqQ3MFrk9pnjWRM5yw3GG3wDzmnV=51Mkw2XBuU-2jn2RA@mail.gmail.com> <31465.1466092207@sss.pgh.pa.us> <20160617162850.419d577b@firost>

* 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