> >>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