Received: from maia.hub.org (maia-2.hub.org [200.46.204.251]) by mail.postgresql.org (Postfix) with ESMTP id B15E3B5DC1C for ; Tue, 13 Sep 2011 16:41:18 -0300 (ADT) Received: from mail.postgresql.org ([200.46.204.86]) by maia.hub.org (mx1.hub.org [200.46.204.251]) (amavisd-maia, port 10024) with ESMTP id 56582-03 for ; Tue, 13 Sep 2011 19:41:12 +0000 (UTC) X-Greylist: from auto-whitelisted by SQLgrey-1.7.6 Received: from sss.pgh.pa.us (sss.pgh.pa.us [66.207.139.130]) by mail.postgresql.org (Postfix) with ESMTP id 3BE37B5DC00 for ; Tue, 13 Sep 2011 16:41:12 -0300 (ADT) Received: from sss2.sss.pgh.pa.us (tgl@localhost [127.0.0.1]) by sss.pgh.pa.us (8.14.2/8.14.2) with ESMTP id p8DJfAsS010915; Tue, 13 Sep 2011 15:41:10 -0400 (EDT) To: =?ISO-8859-1?Q?Gunthard_St=FCbs?= cc: pgsql-admin@postgresql.org Subject: Re: exit code 139 performing initdb (pg 9.1 on linux) 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> Comments: In-reply-to =?ISO-8859-1?Q?Gunthard_St=FCbs?= message dated "Tue, 13 Sep 2011 21:30:23 +0200" Date: Tue, 13 Sep 2011 15:41:10 -0400 Message-ID: <10914.1315942870@sss.pgh.pa.us> From: Tom Lane X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=-2.404 tagged_above=-10 required=5 tests=BAYES_00=-1.9, RP_MATCHES_RCVD=-0.504 X-Spam-Level: X-Archive-Number: 201109/86 X-Sequence-Number: 38323 =?ISO-8859-1?Q?Gunthard_St=FCbs?= 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