pg.ddx.io  pgsql-bugs@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: Edmund Horner <ejrh00@gmail.com>
Cc: pgsql-bugs@postgresql.org
Cc: Bruce Momjian <bruce@momjian.us>
Subject: Re: 9.2 beta2 - pg_ctl crashes on Win32 when neither PGDATA nor -D specified
Date: Mon, 11 Jun 2012 22:51:50 -0400
Message-ID: <10316.1339469510@sss.pgh.pa.us> (raw)
In-Reply-To: <CAMyN-kDt4CRTqx9UG81NtkaGe_WX32WUCEjfkSHmqz0FHWsY-w@mail.gmail.com>
References: <CAMyN-kAsMj18rV9eshn4JX4Dn-JXbLMzC+eZ6wrnQ76FavaFfA@mail.gmail.com>
	<9940.1339467780@sss.pgh.pa.us>
	<CAMyN-kDt4CRTqx9UG81NtkaGe_WX32WUCEjfkSHmqz0FHWsY-w@mail.gmail.com>

Edmund Horner <ejrh00@gmail.com> writes:
> On 12 June 2012 14:23, Tom Lane <tgl@sss.pgh.pa.us> wrote:
>> Hm, that patch seems to be several bricks shy of a load.  I will fix
>> two obvious bugs in it:
>> (1) not dump core on boxes where printf("%s", NULL) dumps core;

> I saw that, but I couldn't decide if it was the actual problem in my
> case.  Later parts of adjust_data_dir appeared to be running (looking
> at file system activity).

The weird thing is that if it's not dumping core, the first fopen would
presumably be trying to open "/postgresql.conf", which generally ought
to fail and thus mask any problems in the rest of adjust_data_dir().
Have you by any chance got a postgresql.conf laying about in your root
directory?

			regards, tom lane



view thread (13+ messages)  latest in thread

Message-ID: <10316.1339469510@sss.pgh.pa.us>
Permalink:  ../10316.1339469510@sss.pgh.pa.us/
Also on:    postgresql.org/message-id/10316.1339469510@sss.pgh.pa.us

 · 

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: tgl@sss.pgh.pa.us, ejrh00@gmail.com, bruce@momjian.us
  Subject: Re: 9.2 beta2 - pg_ctl crashes on Win32 when neither PGDATA nor -D specified
  In-Reply-To: <10316.1339469510@sss.pgh.pa.us>
  References: <CAMyN-kAsMj18rV9eshn4JX4Dn-JXbLMzC+eZ6wrnQ76FavaFfA@mail.gmail.com> <9940.1339467780@sss.pgh.pa.us> <CAMyN-kDt4CRTqx9UG81NtkaGe_WX32WUCEjfkSHmqz0FHWsY-w@mail.gmail.com> <10316.1339469510@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