Thread: initdb failed (terminated signal 5)

initdb failed (terminated signal 5)

From
"Peter Manten"
Date:
I tried to install the windows version of postgre 7.5 dev, but got some
errors during the proces.
This is what I did:
1) unzip the download in c:\postgres
2) add to my path c:\postgres\bin and c:\postgres\lib
3) add environmental variable PGDATA with value c:\postgres\data.
(So far no problem)
4) open command window and type initdb -L "c:/postgres/share".

Then I get the following output in the command window:
....
....
creating configuration files ... ok
creating template1 database in c:/postgres/data/base/1 ... child proces was
terminated by signal 5
initdb: failed
initdb: removing contents of data directory "c:/postgres/data/
...
...

After this I tried the command "initdb --debug (so with the debug option).
The last debug-lines, before I get the error are:
DEBUG: inserted -> -
DEBUG: inserting column 15 NULL
DEBUG: inserting row oid 1242, 16 columns
after that:
child progress was terminated by signal 5
initdb: failed

(At the same time, a windows popup screen appears, which says: "postgres.exe
has generated errors and will be closed by Windows...etc.")

Obviously something goes wrong here, but I've got no clue whatsoever. I
double checked the path and new environmental variable, but that looks ok. I
also created and used a windows account, that hasn't any administrative
rights (this seems to be necessary for the windows version).

In a previous thread there were two suggestions:
1) check the privileges for the postgre windows-user. This should be ok,
since I created a special postgre-windows user which does the installation
and which has access right to the system folders
2) download a new version of the zip, because maybe something's wrong with a
previous version. I used a zip from last week and just now I tried it again
with today's zip

Anyone can sort this out?
Thanks in advance!!
Peter

_________________________________________________________________
Talk with your online friends with MSN Messenger http://messenger.msn.nl/


Re: initdb failed (terminated signal 5)

From
John Meinel
Date:
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

You didn't set your path. There are executable files in C:\postgres\bin,
and some library files in C:\postgres\lib that need to be in the path.
That's probably the signal 5 error.

Otherwise, at one point there was a bug in the build, there was a huge
discussion involving the signal 5 stuff. They never found the exact
cause, though.
John
=:->

Peter Manten wrote:

| I tried to install the windows version of postgre 7.5 dev, but got some
| errors during the proces.
| This is what I did:
| 1) unzip the download in c:\postgres
| 2) add to my path c:\postgres\bin and c:\postgres\lib
| 3) add environmental variable PGDATA with value c:\postgres\data.
| (So far no problem)
| 4) open command window and type initdb -L "c:/postgres/share".
|
| Then I get the following output in the command window:
| ....
| ....
| creating configuration files ... ok
| creating template1 database in c:/postgres/data/base/1 ... child proces
| was terminated by signal 5
| initdb: failed
| initdb: removing contents of data directory "c:/postgres/data/

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.4 (Cygwin)
Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org

iD8DBQFA7rNVJdeBCYSNAAMRAqxSAKCkW65m/Q/tNXd5VebqjMf2WRVU1ACfaegz
aZ3blOzugfunM83zg/2cqvA=
=Fd3A
-----END PGP SIGNATURE-----

Re: initdb failed (terminated signal 5)

From
Alexander Cohen
Date:
Im having the same signal 5 problem when trying to initdb, so i just
want to check and make sure im setting paths right. Is this the correct
syntax to use from the cmd?

set Path=%Path%;C:\postgres\bin\;C:\postgres\lib\

Thanks

Alex

On Jul 9, 2004, at 11:01 AM, John Meinel wrote:

> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
>
> You didn't set your path. There are executable files in
> C:\postgres\bin,
> and some library files in C:\postgres\lib that need to be in the path.
> That's probably the signal 5 error.
>
> Otherwise, at one point there was a bug in the build, there was a huge
> discussion involving the signal 5 stuff. They never found the exact
> cause, though.
> John
> =:->
>
> Peter Manten wrote:
>
> | I tried to install the windows version of postgre 7.5 dev, but got
> some
> | errors during the proces.
> | This is what I did:
> | 1) unzip the download in c:\postgres
> | 2) add to my path c:\postgres\bin and c:\postgres\lib
> | 3) add environmental variable PGDATA with value c:\postgres\data.
> | (So far no problem)
> | 4) open command window and type initdb -L "c:/postgres/share".
> |
> | Then I get the following output in the command window:
> | ....
> | ....
> | creating configuration files ... ok
> | creating template1 database in c:/postgres/data/base/1 ... child
> proces
> | was terminated by signal 5
> | initdb: failed
> | initdb: removing contents of data directory "c:/postgres/data/
>
> -----BEGIN PGP SIGNATURE-----
> Version: GnuPG v1.2.4 (Cygwin)
> Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org
>
> iD8DBQFA7rNVJdeBCYSNAAMRAqxSAKCkW65m/Q/tNXd5VebqjMf2WRVU1ACfaegz
> aZ3blOzugfunM83zg/2cqvA=
> =Fd3A
> -----END PGP SIGNATURE-----
>
> ---------------------------(end of
> broadcast)---------------------------
> TIP 2: you can get off all lists at once with the unregister command
>    (send "unregister YourEmailAddressHere" to majordomo@postgresql.org)
>
>