Bug #742: 7.2.1 createdb test gives segmentation fault

From: pgsql-bugs(at)postgresql(dot)org
To: pgsql-bugs(at)postgresql(dot)org
Subject: Bug #742: 7.2.1 createdb test gives segmentation fault
Date: 2002-08-22 14:31:55
Message-ID: 20020822143155.01279475D35@postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-bugs

John Nealy (john(dot)nealy(at)sdhc(dot)k12(dot)fl(dot)us) reports a bug with a severity of 2
The lower the number the more severe it is.

Short Description
7.2.1 createdb test gives segmentation fault

Long Description
When installing PG 7.2.1 from source on S/390 Linux using the
--enable-multibyte option I cannot create databases and psql does not work at all. Everything is fine using plain ./configure. I wanted to use the multibyte because I need to compile a PHP 4.x Apache module to interface with PgSQL. Without it I get Undefined symbol... pg_encoding_to_char then starting Apache. Anyway, below is some relevant output:

first do initdb:
[postgres(at)linux1 postgres]$/usr/local/pgsql/bin/initdb -D /usr/local/pgsql/data
The files belonging to this database system will be owned by user "postgres".
This user must also own the server process.

Fixing permissions on existing directory /usr/local/pgsql/data... ok
creating directory /usr/local/pgsql/data/base... ok
creating directory /usr/local/pgsql/data/global... ok
creating directory /usr/local/pgsql/data/pg_xlog... ok
creating directory /usr/local/pgsql/data/pg_clog... ok
creating template1 database in /usr/local/pgsql/data/base/1... ok
creating configuration files... ok
initializing pg_shadow... ok
enabling unlimited row size for system tables... ok
creating system views... ok
loading pg_description... ok
vacuuming database template1... ok
copying template1 to template0... ok

Success. You can now start the database server using:

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

[postgres(at)linux1 postgres]$ /usr/local/pgsql/bin/pg_ctl -D /usr/local/pgsql/data -l logfile start
postmaster successfully started

[postgres(at)linux1 postgres]$ /usr/local/pgsql/bin/createdb test
/usr/local/pgsql/bin/createdb: line 172: 9309 Segmentation fault (core dum
ped) ${PATHNAME}psql $PSQLOPT -d template1 -c "CREATE DATABASE \"$dbname\"$withs
tring"
createdb: database creation failed
[postgres(at)linux1 postgres]$

logfile has
DEBUG: database system was shut down at 2002-08-22 09:15:04 GMT
DEBUG: checkpoint record is at 0/113640
DEBUG: redo record is at 0/113640; undo record is at 0/0; shutdown TRUE
DEBUG: next transaction id: 89; next oid: 16556
DEBUG: database system is ready
DEBUG: pq_recvbuf: unexpected EOF on client connection

from command line:
[postgres(at)linux1 postgres]$ psql template1
Segmentation fault (core dumped)
[postgres(at)linux1 postgres]$

Should I just try a previous version on Pg (or PHP)? Any help is greatly appreciated.

Sample Code

No file was uploaded with this report

Responses

Browse pgsql-bugs by date

  From Date Subject
Next Message pgsql-bugs 2002-08-22 14:40:24 Bug #743: pg_dump -a -c without DELETE FROM
Previous Message Tom Lane 2002-08-22 13:53:48 Re: pg_statistic_relid_att_index