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

Re: BUG #5140: initdb crashes

From: Robert Haas <robertmhaas(at)gmail(dot)com>
To: Marcus Lundblad <marcus(dot)lundblad(at)mogul(dot)com>
Cc: pgsql-bugs(at)postgresql(dot)org
Subject: Re: BUG #5140: initdb crashes
Date: 2009-10-31 13:13:26
Message-ID: 603c8f070910310613g305694f9n2d9a20f78ea54ef6@mail.gmail.com (view raw or flat)
Thread:
Lists: pgsql-bugs
On Tue, Oct 27, 2009 at 10:47 AM, Marcus Lundblad
<marcus(dot)lundblad(at)mogul(dot)com> wrote:
>
> The following bug has been logged online:
>
> Bug reference:      5140
> Logged by:          Marcus Lundblad
> Email address:      marcus(dot)lundblad(at)mogul(dot)com
> PostgreSQL version: 8.3.8
> Operating system:   Solaris 10
> Description:        initdb crashes
> Details:
>
> Hi
>
> I compiled version 8.3.8 of postgres on a Solaris 10 machine.
> When running initdb it crashes like this:
>
> postgres(at)webbkartbas02> /usr/local/postgres/bin/initdb -D
> /usr/local/postgres/data/ -d
> Running in debug mode.
> VERSION=8.3.8
> PGDATA=/usr/local/postgres/data
> share_path=/usr/local/postgres/share
> PGPATH=/usr/local/postgres/bin
> POSTGRES_SUPERUSERNAME=postgres
> POSTGRES_BKI=/usr/local/postgres/share/postgres.bki
> POSTGRES_DESCR=/usr/local/postgres/share/postgres.description
> POSTGRES_SHDESCR=/usr/local/postgres/share/postgres.shdescription
> POSTGRESQL_CONF_SAMPLE=/usr/local/postgres/share/postgresql.conf.sample
> PG_HBA_SAMPLE=/usr/local/postgres/share/pg_hba.conf.sample
> PG_IDENT_SAMPLE=/usr/local/postgres/share/pg_ident.conf.sample
> 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 C.
> The default database encoding has accordingly been set to SQL_ASCII.
> The default text search configuration will be set to "english".
>
> fixing permissions on existing directory /usr/local/postgres/data ... ok
> creating subdirectories ... ok
> selecting default max_connections ... 100
> selecting default shared_buffers/max_fsm_pages ... 32MB/204800
> creating configuration files ... ok
> creating template1 database in /usr/local/postgres/data/base/1 ... DEBUG:
> invoking IpcMemoryCreate(size=38264832)
> DEBUG:  creating and filling new WAL file
> DEBUG:  done creating and filling new WAL file
> LOG:  database system was shut down at 2009-10-27 15:26:27 CET
> LOG:  incorrect resource manager data checksum in record at 0/20
> LOG:  invalid primary checkpoint record
> LOG:  invalid secondary checkpoint link in control file
> PANIC:  could not locate a valid checkpoint record
> Abort - core dumped
> child process exited with exit code 134
> initdb: removing contents of data directory "/usr/local/postgres/data"
>
> The following params to ./configure was passed when compiling postgres:
>
> ./configure --prefix=/usr/local/postgres/ --with-pam
> --with-libedit-preferred --with-libxml --with-libxslt --with-gssapi
> --enable-thread-safety
> --enable-dtrace--with-includes=/usr/local/include:/usr/include:/usr/gcc/incl
> ude:/usr/sfw/include/ --with-libs=/usr/local/lib:/usr/gcc/lib:/usr/lib
> --with-libraries=/usr/local/lib:/usr/gcc/lib:/usr/lib
>
> the version of gcc is:
> sparc-sun-solaris2.10-gcc (GCC) 4.2.1 (20090222) (gccfss)

Can you get a backtrace from the core dump?

...Robert

In response to

pgsql-bugs by date

Next:From: Tom LaneDate: 2009-10-31 16:17:29
Subject: Re: BUG #5156: Problem compiling postgresql-8.5alpha2
Previous:From: Robert HaasDate: 2009-10-31 13:10:56
Subject: Re: BUG #5150: math bug

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