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

initdb crashing, signal 5, etc

From: Jacob Hanson <jacdx(at)jacobhanson(dot)com>
To: pgsql-hackers-win32(at)postgresql(dot)org
Subject: initdb crashing, signal 5, etc
Date: 2004-07-27 23:48:24
Message-ID: (view raw, whole thread or download thread mbox)
Lists: pgsql-hackers-win32
Had success with a snapshot from last week. Today's snapshot crashes
several times during initdb. As soon as "selecting default
max_connections" appears, postgres.exe crashes ("postgres.exe has
encountered a problem and needs to close."). After closing 6 of those
"10" appears and it continues to "selecting default shared_buffers".
11 crashes then "50" appears. It continues to the "No such file or
directory" error and postgres.exe crashes once, then the signal 5
message appears. Full initdb output is below.

Observations: During the crashes, postgresql.conf is created, but
remains 0 bytes. Cacls reports my "postgres" user has full access to
the entire c:\dev\pgsql tree, including the data dir, postgresql.conf
(after it has been created), and c:\dev\pgsql\share\timezone, which
certainly exists (note: NOT "/shared/timezone" necessarily), etc.

C:\dev\pgsql\data>initdb -d -L "c:/dev/pgsql/share"
Running in debug mode.
The files belonging to this database system will be owned by user "postgres".
This user must also own the server process.

The database cluster will be initialized with locale English_United States.1252.

fixing permissions on existing directory C:/dev/pgsql/data ... ok
creating directory C:/dev/pgsql/data/global ... ok
creating directory C:/dev/pgsql/data/pg_xlog ... ok
creating directory C:/dev/pgsql/data/pg_clog ... ok
creating directory C:/dev/pgsql/data/pg_subtrans ... ok
creating directory C:/dev/pgsql/data/base ... ok
creating directory C:/dev/pgsql/data/base/1 ... ok
creating directory C:/dev/pgsql/data/pg_tblspc ... ok
selecting default max_connections ... 10
selecting default shared_buffers ... 50
creating configuration files ... ok
creating template1 database in C:/dev/pgsql/data/base/1 ... LOG:  could not open
 directory "/share/timezone": No such file or directory
child process was terminated by signal 5
initdb: failed
initdb: removing contents of data directory "C:/dev/pgsql/data"
Deleted file - C:\dev\pgsql\data\pg_hba.conf
Deleted file - C:\dev\pgsql\data\pg_ident.conf
Deleted file - C:\dev\pgsql\data\PG_VERSION
Deleted file - C:\dev\pgsql\data\postgresql.conf


pgsql-hackers-win32 by date

Next:From: 帅猛Date: 2004-07-28 02:45:51
Subject: Re: initdb problem in Korean OS.
Previous:From: Andreas PflugDate: 2004-07-27 23:06:43
Subject: Re: win32 pgsql not installable

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