Re: FW: getting a crash during initdb

From: Bruce Momjian <pgman(at)candle(dot)pha(dot)pa(dot)us>
To: Merlin Moncure <merlin(dot)moncure(at)rcsonline(dot)com>
Cc: Andrew Dunstan <andrew(at)dunslane(dot)net>, pgsql-hackers(at)postgresql(dot)org
Subject: Re: FW: getting a crash during initdb
Date: 2004-04-26 17:25:56
Message-ID: 200404261725.i3QHPuI11709@candle.pha.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Merlin Moncure wrote:
> > I have no idea what caused the pg_depend stuff to crash.
>
> The AV is in postgres.exe following the first SQL call in
> setup_depend(). The problem is not in initdb (it hasn't changed) but
> something in the backend. Changing the SQL statement made no
> difference: I'd venture a guess that postgres.exe crashes when *any*
> statement is sent to it. About 20 files have changed since my last
> initdb; I have a list. Forced initdb + initdb crash = nasty bug, even
> if it's just the cvs version (specific only to windows?).
>
> I'll check why the rmdir command is not working as expected.

I just poked around and couldn't figure out the cause. Initdb should
either remove the directory if it created it, or remove everything _in_
the directory if the directory already existed. I tried the rmdir/del
/s /q commands in a CMD window and it worked fine.

--
Bruce Momjian | http://candle.pha.pa.us
pgman(at)candle(dot)pha(dot)pa(dot)us | (610) 359-1001
+ If your life is a hard drive, | 13 Roberts Road
+ Christ can be your backup. | Newtown Square, Pennsylvania 19073

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Alvaro Herrera 2004-04-26 17:27:32 Re: Thread code not vpath-safe
Previous Message Jim C. Nasby 2004-04-26 17:25:41 Re: [HACKERS] What can we learn from MySQL?