Re: windows / initdb oddness

From: "Magnus Hagander" <mha(at)sollentuna(dot)net>
To: "Andrew Dunstan" <andrew(at)dunslane(dot)net>
Cc: "PostgreSQL-development" <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: windows / initdb oddness
Date: 2006-02-21 18:35:00
Message-ID: 6BCB9D8A16AC4241919521715F4D8BCEA0F7C9@algol.sollentuna.se
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers pgsql-patches

> >>This took me hours to find ...
> >>
> >>On my Windows box, CVS HEAD gets an execution failure on
> "initdb foo"
> >>but succeeds happily with "initdb -D foo".
> >>
> >>This is not true for REL8_1_STABLE, nor is it true for all Windows
> >>machines/environments, apparently, otherwise we would be seeing
> >>failures from the buildfarm member snake, since the
> buildfarm script
> >>does "initdb data".
> >>
> >>My suspicion is that this is some side effect of the
> restricted-exec
> >>patch, but I don't have time to dig further right now.
> >>
> >>
> >
> >Um, so what error msg do you get when it's failing?
> >
> >
>
>
> I get a popup box that says:
>
> initdb.exe has encountered a problem and needs to close.
> We are sorry for the inconvenience.
>
> Clicking a link gives this info:
>
> AppName: initdb.exe AppVer: 8.2.0.6051 ModName: msvcrt.dll
> ModVer: 7.0.2600.1106 Offset: 00033830
>
> It wouldn't let me copy the rest of the info ;-(

Hm. Crap. (For those not familiar with this, that's a coredump without a
core:-P)

Does it give you an error code? (Nevermind the stackdump etc, just the
code)

Are you running this with an admin account or a non-admin account? If
admin, what are the permissions on the initdb.exe file and libpq.dll?

Anything weird in how you run it - do you specify a path to initdb, or
run it from current directory for example?

And finally, can you check with process explorer if it's the first or
second initdb that dies? (With this patch, initdb will re-exec itself
with lower privs)

//Magnus

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Andrew Dunstan 2006-02-21 19:05:29 Re: windows / initdb oddness
Previous Message Andrew Dunstan 2006-02-21 17:31:51 Re: windows / initdb oddness

Browse pgsql-patches by date

  From Date Subject
Next Message Andrew Dunstan 2006-02-21 19:05:29 Re: windows / initdb oddness
Previous Message Martijn van Oosterhout 2006-02-21 10:50:25 [PATCH] Explicit shell types