By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
432,086 Members | 1,875 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 432,086 IT Pros & Developers. It's quick & easy.

FATAL: shmat(id=1179648) failed: Invalid argument

P: n/a

Hi,

creating template1 database in /var/pgsql/data1/base/1... DEBUG:
invoking IpcMemoryCreate(size=1081344)
FATAL: shmat(id=1179648) failed: Invalid argument

What's the problem why is shmat passed a wrong id?

I temporarily need Postgres running on Windows98
just to write a client app and I'm stuck at this point.
The same problem has been posted on the cygwin list
but there's no solution so far.
I've got a recent cygwin and tried cygwin postgres 7.4.2-1 and 7.4.3-1
Do I need to tweak the configuration file for cygserver?
I guess the problem is on the cygwin's side
but got no clue how to tackle it.

Help greatly appreciated.

Greg

--

Running in debug mode.

initdb: internal variables:
PGDATA=/var/pgsql/data1
datadir=/usr/share/postgresql
PGPATH=/usr/bin
ENCODING=
ENCODINGID=0
POSTGRES_SUPERUSERNAME=admin
POSTGRES_BKI=/usr/share/postgresql/postgres.bki
POSTGRES_DESCR=/usr/share/postgresql/postgres.description
POSTGRESQL_CONF_SAMPLE=/usr/share/postgresql/postgresql.conf.sample
PG_HBA_SAMPLE=/usr/share/postgresql/pg_hba.conf.sample
PG_IDENT_SAMPLE=/usr/share/postgresql/pg_ident.conf.sample
The files belonging to this database system will be owned by user "admin".
This user must also own the server process.

The database cluster will be initialized with locale C.

fixing permissions on existing directory /var/pgsql/data1... ok
creating directory /var/pgsql/data1/base... ok
creating directory /var/pgsql/data1/global... ok
creating directory /var/pgsql/data1/pg_xlog... ok
creating directory /var/pgsql/data1/pg_clog... ok
selecting default max_connections... 10
selecting default shared_buffers... 50
creating configuration files... ok
creating template1 database in /var/pgsql/data1/base/1... DEBUG:
invoking IpcMemoryCreate(size=1081344)
FATAL: shmat(id=1179648) failed: Invalid argument
DEBUG: proc_exit(1)
DEBUG: shmem_exit(1)
DEBUG: exit(1)

initdb: failed

---------------------------(end of broadcast)---------------------------
TIP 2: you can get off all lists at once with the unregister command
(send "unregister YourEmailAddressHere" to ma*******@postgresql.org)

Nov 23 '05 #1
Share this question for a faster answer!
Share on Google+

This discussion thread is closed

Replies have been disabled for this discussion.