Re: 9.2 beta2 - pg_ctl crashes on Win32 when neither PGDATA nor -D specified - Mailing list pgsql-bugs

From Tom Lane
Subject Re: 9.2 beta2 - pg_ctl crashes on Win32 when neither PGDATA nor -D specified
Date
Msg-id 10316.1339469510@sss.pgh.pa.us
Whole thread Raw
In response to 9.2 beta2 - pg_ctl crashes on Win32 when neither PGDATA nor -D specified  (Edmund Horner <ejrh00@gmail.com>)
Responses Re: 9.2 beta2 - pg_ctl crashes on Win32 when neither PGDATA nor -D specified
List pgsql-bugs
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

pgsql-bugs by date:

Previous
From: Edmund Horner
Date:
Subject: Re: 9.2 beta2 - pg_ctl crashes on Win32 when neither PGDATA nor -D specified
Next
From: Edmund Horner
Date:
Subject: Re: 9.2 beta2 - pg_ctl crashes on Win32 when neither PGDATA nor -D specified