Received: from makus.postgresql.org (makus.postgresql.org [98.129.198.125]) by mail.postgresql.org (Postfix) with ESMTP id D7CFB198A8D6 for ; Mon, 11 Jun 2012 23:52:05 -0300 (ADT) Received: from sss.pgh.pa.us ([66.207.139.130]) by makus.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1SeHDA-0008K8-B7 for pgsql-bugs@postgresql.org; Tue, 12 Jun 2012 02:52:05 +0000 Received: from sss2.sss.pgh.pa.us (tgl@localhost [127.0.0.1]) by sss.pgh.pa.us (8.14.5/8.14.5) with ESMTP id q5C2poeG010317; Mon, 11 Jun 2012 22:51:50 -0400 (EDT) From: Tom Lane To: Edmund Horner cc: pgsql-bugs@postgresql.org, Bruce Momjian Subject: Re: 9.2 beta2 - pg_ctl crashes on Win32 when neither PGDATA nor -D specified In-reply-to: References: <9940.1339467780@sss.pgh.pa.us> Comments: In-reply-to Edmund Horner message dated "Tue, 12 Jun 2012 14:28:19 +1200" Date: Mon, 11 Jun 2012 22:51:50 -0400 Message-ID: <10316.1339469510@sss.pgh.pa.us> X-Pg-Spam-Score: -1.9 (-) X-Archive-Number: 201206/114 X-Sequence-Number: 33341 Edmund Horner writes: > On 12 June 2012 14:23, Tom Lane 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