Re: 9.2 beta2 - pg_ctl crashes on Win32 when neither PGDATA nor -D specified

From: Edmund Horner <ejrh00(at)gmail(dot)com>
To:
Cc: pgsql-bugs(at)postgresql(dot)org, Bruce Momjian <bruce(at)momjian(dot)us>
Subject: Re: 9.2 beta2 - pg_ctl crashes on Win32 when neither PGDATA nor -D specified
Date: 2012-06-12 02:30:07
Message-ID: CAMyN-kAM-e-TizGJJOX-4Ttj3DZqf0JeiSGYCk5-Qe5iUknpqA@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-bugs

On 12 June 2012 14:23, Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us> wrote:
> Edmund Horner <ejrh00(at)gmail(dot)com> writes:
>> In 9.1, if I run "pg_ctl start" without providing way for it to find
>> the datadir, it prints the error:
>
>>     C:\ehorner\pgsql-old\bin>pg_ctl start
>>     pg_ctl: no database directory specified and environment variable
>> PGDATA unset
>>     Try "pg_ctl --help" for more information.
>
>> In 9.2 (beta1 and beta2), it runs for a couple of seconds and then
>> Windows pops up an error box saying it has "encountered a problem".  I
>> ...
>> I think it could be something in
>> http://git.postgresql.org/gitweb/?p=postgresql.git;a=commitdiff;h=aaa6e1def292cdacb6b27088898793b1b879fedf#patch5
>
> 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).

Anyway I'm happy to test it again when there's a new binary.

Edmund.

In response to

Browse pgsql-bugs by date

  From Date Subject
Next Message Tom Lane 2012-06-12 02:51:50 Re: 9.2 beta2 - pg_ctl crashes on Win32 when neither PGDATA nor -D specified
Previous Message Tom Lane 2012-06-12 02:23:00 Re: 9.2 beta2 - pg_ctl crashes on Win32 when neither PGDATA nor -D specified