Skip site navigation (1) Skip section navigation (2)

Re: windows / initdb oddness

From: Andrew Dunstan <andrew(at)dunslane(dot)net>
To: Magnus Hagander <mha(at)sollentuna(dot)net>
Cc: PostgreSQL-development <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: windows / initdb oddness
Date: 2006-02-21 19:05:29
Message-ID: 43FB6479.4020000@dunslane.net (view raw or flat)
Thread:
Lists: pgsql-hackerspgsql-patches
Magnus Hagander wrote:

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

I'll have a look when I get time to reboot the machine into Windows.

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

Should be unprivileged - it's the account I use to run buildfarm. (and 
which has therefore in each case just successfully run "make check" with 
the identical binaries).

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

relative path: bin/initdb foo

(bin has libpq.dll as well as initdb.exe).

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

I will add some trace writes when I get a chance. I was rather hoping 
something would jump out at you, but obviously it hasn't, so I'll have 
to dig into it the slow way. *sigh*

cheers

andrew

In response to

Responses

pgsql-hackers by date

Next:From: Magnus HaganderDate: 2006-02-21 19:42:17
Subject: Re: windows / initdb oddness
Previous:From: Magnus HaganderDate: 2006-02-21 18:35:00
Subject: Re: windows / initdb oddness

pgsql-patches by date

Next:From: Neil ConwayDate: 2006-02-21 23:05:16
Subject: Re: ScanDirections
Previous:From: Magnus HaganderDate: 2006-02-21 18:35:00
Subject: Re: windows / initdb oddness

Privacy Policy | About PostgreSQL
Copyright © 1996-2014 The PostgreSQL Global Development Group