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

[7.1b6 on win2k] server crashes with mmap error

From: Frank Wegmann <wegmann(at)acm(dot)org>
To: pgsql-ports(at)postgresql(dot)org
Subject: [7.1b6 on win2k] server crashes with mmap error
Date: 2001-03-24 14:28:08
Message-ID: Pine.NXT.4.10.10103222122370.2083-100000@slf1 (view raw or flat)
Thread:
Lists: pgsql-ports
Hi all,

tried to install v 7.1 beta6 on a system with following setup:

- Windows 2000 SP1 (384MB RAM is enough even for Windows)
- Cygwin 1.1.8, gcc-2.95.2-6
- cygipc 1.0.9 (took binary, installed it as a service)

I compiled and installed PostgreSQL as a user with administrator
privileges. I also installed a new user postgres, (both Win and
cygwin), and failed when trying to initialize db as postgres:

$ initdb -D /usr/pgsql/data
This database system will be initialized with username "postgres".
This user will own all the data files and must also own the server process.

Fixing permissions on existing directory /usr/pgsql/data
Creating directory /usr/pgsql/data/base
Creating directory /usr/pgsql/data/global
Creating directory /usr/pgsql/data/pg_xlog
Creating template1 database in /usr/pgsql/data/base/1
DEBUG:  database system was shut down at 2001-03-24 13:35:40
DEBUG:  CheckPoint record at (0, 8)
DEBUG:  Redo record at (0, 8); Undo record at (0, 8); Shutdown TRUE
DEBUG:  NextTransactionId: 514; NextOid: 16384
DEBUG:  database system is in production state
Creating global relations in /usr/pgsql/data/global
DEBUG:  database system was shut down at 2001-03-24 13:35:45
DEBUG:  CheckPoint record at (0, 112)
DEBUG:  Redo record at (0, 112); Undo record at (0, 0); Shutdown TRUE
DEBUG:  NextTransactionId: 514; NextOid: 17199
DEBUG:  database system is in production state
Initializing pg_shadow.
Enabling unlimited row width for system tables.
Creating system views.
Loading pg_description.
Setting lastsysoid.
Vacuuming database.
Copying template1 to template0.

Success. You can now start the database server using:

    /usr/pgsql/bin/postmaster -D /usr/pgsql/data
or
    /usr/pgsql/bin/pg_ctl -D /usr/pgsql/data -l logfile start



Well, that's what pgsql said. Tried running it in the background or
foreground to no avail:



postgres(at)ABSOLUT /usr/pgsql/data
$ nohup /usr/pgsql/bin/postmaster -D /usr/pgsql/data < /dev/null
>>server.log 2
>&1 < /dev/null &
[1] 1048

postgres(at)ABSOLUT /usr/pgsql/data
$ D:\cygwin\usr\pgsql\bin\postgres.exe: *** recreate_mmaps_after_fork_failed

[1]+  Exit 1                  nohup /usr/pgsql/bin/postmaster -D
/usr/pgsql/data
 </dev/null >>server.log 2>&1 </dev/null

postgres(at)ABSOLUT /usr/pgsql/data
$ postmaster -D /usr/pgsql/data
D:\cygwin\usr\pgsql\bin\postgres.exe: *** recreate_mmaps_after_fork_failed
postmaster: Startup proc 1144 exited with status 256 - abort
 

Also tried it as the user who compiled and installed the stuff, but the same
error occurs. What's going wrong here?

And: how can I install a hopefully running postmaster as a service?

Thanks a lot,

Frank Wegmann



Responses

pgsql-ports by date

Next:From: David A. VentimigliaDate: 2001-03-25 03:01:06
Subject: Failed compile on NT
Previous:From: Jason TishlerDate: 2001-03-22 16:09:26
Subject: Re: problem install postgres7.03 on win2000!!!!

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