pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: Gunthard Stübs <stuebs2009@gmx.de>
Cc: pgsql-admin@postgresql.org
Subject: Re: exit code 139 performing initdb (pg 9.1 on linux)
Date: Tue, 13 Sep 2011 15:41:10 -0400
Message-ID: <10914.1315942870@sss.pgh.pa.us> (raw)
In-Reply-To: <4E6FAF4F.2030801@gmx.de>
References: <4E6F7ED7.9050000@gmx.de>
	<8602.1315934756@sss.pgh.pa.us>
	<4E6F9CD4.9000705@gmx.de>
	<4E6FAF4F.2030801@gmx.de>

=?ISO-8859-1?Q?Gunthard_St=FCbs?= <stuebs2009@gmx.de> writes:
> the correct backtrace looks like this:

> #3  0x082676a1 in pg_flush_data (fd=9, offset=0, amount=57344) at fd.c:335
> #4  0x0826ab02 in copy_file (fromfile=0xbfffeb90 "base/1/12051", 
> tofile=0xbfffe790 "base/12277/12051")
>      at copydir.c:205
> #5  0x0826a743 in copydir (fromdir=0x85f26ec "base/1", todir=0x85f4dbc 
> "base/12277", recurse=0 '\0')
>      at copydir.c:95

Thanks for doing the legwork.  Line 335 of fd.c is

	return posix_fadvise(fd, offset, amount, POSIX_FADV_DONTNEED);

which means you've got one of those nasty Linux versions that claims to
have posix_fadvise but it dumps core when executed.  As a workaround
you can comment out "#define USE_POSIX_FADVISE" in
src/include/pg_config_manual.h before building.

What kernel and glibc versions are you running, exactly?

			regards, tom lane



view thread (6+ messages)  latest in thread

Message-ID: <10914.1315942870@sss.pgh.pa.us>
Permalink:  ../10914.1315942870@sss.pgh.pa.us/
Also on:    postgresql.org/message-id/10914.1315942870@sss.pgh.pa.us

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients using the --to and --cc options:
  reply via email

  To: pgsql-admin@postgresql.org
  Cc: tgl@sss.pgh.pa.us, stuebs2009@gmx.de
  Subject: Re: exit code 139 performing initdb (pg 9.1 on linux)
  In-Reply-To: <10914.1315942870@sss.pgh.pa.us>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox