Re: windows / initdb oddness - Mailing list pgsql-hackers

From Magnus Hagander
Subject Re: windows / initdb oddness
Date
Msg-id 6BCB9D8A16AC4241919521715F4D8BCEA0F7C9@algol.sollentuna.se
Whole thread Raw
In response to windows / initdb oddness  (Andrew Dunstan <andrew@dunslane.net>)
Responses Re: windows / initdb oddness
List pgsql-hackers
> >>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


pgsql-hackers by date:

Previous
From: Andrew Dunstan
Date:
Subject: Re: windows / initdb oddness
Next
From: Andrew Dunstan
Date:
Subject: Re: windows / initdb oddness