Re: exit code 139 performing initdb (pg 9.1 on linux)

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Gunthard Stübs <stuebs2009(at)gmx(dot)de>
Cc: pgsql-admin(at)postgresql(dot)org
Subject: Re: exit code 139 performing initdb (pg 9.1 on linux)
Date: 2011-09-13 17:25:56
Message-ID: 8602.1315934756@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-admin

=?ISO-8859-1?Q?Gunthard_St=FCbs?= <stuebs2009(at)gmx(dot)de> writes:
> I installed v9.1 on linux (older suse distr.) from source code using
> configure --without-readline (in case that it is important).

> performing initdb --locale=de_DE.UTF-8 -D /usr/local/pgsql/data/ everything
> run fine until:
> vacuuming database template1 ... ok
> copying template1 to template0 ... child process exited with exit code 139
> initdb: removing contents of data directory "/usr/local/pgsql/data"

Hmm, that's pretty interesting. Exit code 139 is presumably a SIGSEGV,
but it's surprising that it would get that far and then crash.

Please (1) rebuild with --enable-cassert and --enable-debug configure
options, if you didn't already; (2) set "ulimit -c unlimited" if that's
not the default in your environment; (3) run initdb with the --noclean
option; (4) look into /usr/local/pgsql/data to find the core file left
behind by the crash, and do
$ gdb /usr/local/bin/postgres /path/to/core-file
gdb> bt
gdb> quit
(5) post the output of "bt" here.

BTW, what compiler version are you using exactly, and what compiler options?

regards, tom lane

In response to

Responses

Browse pgsql-admin by date

  From Date Subject
Next Message Gunthard Stübs 2011-09-13 18:11:32 Re: exit code 139 performing initdb (pg 9.1 on linux)
Previous Message Gunthard Stübs 2011-09-13 16:03:35 exit code 139 performing initdb (pg 9.1 on linux)