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

Re: Initdb and IpcMemoryCreate Errors

From: Jason Tishler <Jason(dot)Tishler(at)dothill(dot)com>
To: Dave Page <dpage(at)vale-housing(dot)co(dot)uk>
Cc: "'pgsql-cygwin(at)postgresql(dot)org'" <pgsql-cygwin(at)postgresql(dot)org>
Subject: Re: Initdb and IpcMemoryCreate Errors
Date: 2001-04-30 13:07:16
Message-ID: 20010430090716.A549@dothill.com (view raw or flat)
Thread:
Lists: pgsql-cygwin
Dave,

On Mon, Apr 30, 2001 at 01:39:57PM +0100, Dave Page wrote:
> I've found that removing the ntsec option the the CYGWIN envvar has cured my
> initdb problem. With ntsec, whilst I could read/write to /tmp and other
> places, access denied error messages on other directories including some I
> had just created myself (with suitable permissions) lead me to believe that
> there is something seriously wrong with it. I have also tried installing
> from scratch whilst logged in as the PC's local administrator rather than
> myself which made no difference.

Ah ntsec...  Since I don't run with it, I always forgot about this
permutation.  I don't believe that there is anything "seriously" wrong
with ntsec -- using it just requires more administration.  From monitoring
the Cygwin mailing list, I have gleaned that people who use ntsec do
a lot of chown and chmod commands after installation.  See the following
for an example:

    http://sources.redhat.com/ml/cygwin/2001-04/msg01668.html

> I'm now left with a single (new) error when starting the postmaster:
> 
> PC20 $ postmaster -i &
> [1] 1180
> PC20 $ C:\cygwin\bin\postgres.exe: *** recreate_mmaps_after_fork_failed
> postmaster: Startup proc 724 exited with status 256 - abort

The above is an easy one and a known problem.  You must upgrade your
Cygwin DLL since you are still using 1.1.8.  I can tell this from the
cygcheck output below:

> The output from cygcheck is as follows:
> 
> PC20 $ cygcheck -s -v -r
> 
> Cygnus Win95/NT Configuration Diagnostics
> Current System Time: Mon Apr 30 13:35:30 2001
> 
> WinNT Ver 5.0 build 2195 Service Pack 1
> 
> Path:   /usr/local/bin
>
> [snip]
>
>   615k 2001/01/31 C:\cygwin\bin\cygwin1.dll - os=4.0 img=1.0 sys=4.0
>                   "cygwin1.dll" v0.0 ts=2001/1/31 15:08
>     Cygwin DLL version info:
>         dll major: 1001

The above implies 1.1.x and

>         dll minor: 8

the above implies y.z.8

Hence, you are running 1.1.8.  You can confirm this with:

    $ uname -r

Upgrade to 1.3.1 (if you are bold) or to a snapshot (e.g., 20010413).

Jason

-- 
Jason Tishler
Director, Software Engineering       Phone: +1 (732) 264-8770 x235
Dot Hill Systems Corp.               Fax:   +1 (732) 264-8798
82 Bethany Road, Suite 7             Email: Jason(dot)Tishler(at)dothill(dot)com
Hazlet, NJ 07730 USA                 WWW:   http://www.dothill.com

In response to

pgsql-cygwin by date

Next:From: Jason TishlerDate: 2001-04-30 13:15:14
Subject: Re: Postgres 7.1-2 repeatedly fails to connect
Previous:From: Dave PageDate: 2001-04-30 12:39:57
Subject: RE: Initdb and IpcMemoryCreate Errors

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