Received: from localhost (unknown [200.46.204.183]) by mail.postgresql.org (Postfix) with ESMTP id 4B87E6330E7 for ; Mon, 16 Feb 2009 04:25:33 -0400 (AST) Received: from mail.postgresql.org ([200.46.204.86]) by localhost (mx1.hub.org [200.46.204.183]) (amavisd-maia, port 10024) with ESMTP id 05148-09 for ; Mon, 16 Feb 2009 04:25:29 -0400 (AST) X-Greylist: delayed 00:06:35.117712 by SQLgrey-1.7.6 Received: from mail-fx0-f15.google.com (mail-fx0-f15.google.com [209.85.220.15]) by mail.postgresql.org (Postfix) with ESMTP id 7C09A6330EC for ; Mon, 16 Feb 2009 04:25:29 -0400 (AST) Received: by fxm8 with SMTP id 8so27099fxm.19 for ; Mon, 16 Feb 2009 00:25:27 -0800 (PST) Received: by 10.103.92.10 with SMTP id u10mr2737454mul.22.1234772193267; Mon, 16 Feb 2009 00:16:33 -0800 (PST) Received: from ?192.168.120.6? (vpn2-b155.Voronezh.golden.ru [212.46.227.155]) by mx.google.com with ESMTPS id 14sm7251538muo.20.2009.02.16.00.16.31 (version=TLSv1/SSLv3 cipher=RC4-MD5); Mon, 16 Feb 2009 00:16:32 -0800 (PST) From: Vladimir Rusinov To: pgsql-admin@postgresql.org Subject: Re: initdb causes Segmentation fault Date: Mon, 16 Feb 2009 11:16:28 +0300 User-Agent: KMail/1.9.10 References: <101381.16138.qm@web25705.mail.ukl.yahoo.com> In-Reply-To: <101381.16138.qm@web25705.mail.ukl.yahoo.com> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200902161116.28305.vladimir@greenmice.info> X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=0 tagged_above=0 required=5 tests=none X-Spam-Level: X-Archive-Number: 200902/103 X-Sequence-Number: 31324 On Monday 16 February 2009 01:34:07 Haluk Durmus wrote: > I'm running ubuntu 8.04 on > > a Linux 2.6.24-22-generic #1 SMP Mon Nov 24 19:35:06 UTC 2008 x86_64 > GNU/Linux machine. > > there was same porblem with preinstalation of progres and superuser. > So I tried to solve it by reinstall postgres 8.3 with apt-get after > removing it with sudo apt-get --purge remove $(aptitude search postgres|awk > '/^i/{gsub(/^i.../,"");print}'|awk '{print $1}') > > but results in segmentation fault when it comes to call initdb. > > I downloaded PostgreSQL 8.3.6 single click installer which had also > problems with initialization. > > So I downloaded the source of PostgreSQL 8.3.6 and compiled and installed > it. But again when I have to run > > /usr/local/pgsql/bin/initdb -D /usr/local/pgsql/data > > it ends with Segmentation fault. > > output of strace: > > 12050 --- SIGCHLD (Child exited) @ 0 (0) --- > 12050 munmap(0x7f062d3d7000, 4096) = 0 > 12050 geteuid() = 1000 > 12050 open("/etc/passwd", O_RDONLY|0x80000 /* O_??? */) = -1 EACCES > (Permission denied) 12050 geteuid() = 1000 > 12050 --- SIGSEGV (Segmentation fault) @ 0 (0) --- > 12050 +++ killed by SIGSEGV +++ Are you using selinux or some another security framework? Also, check /etc/passwd permissions, it should be something like -rw-r--r-- -- Vladimir Rusinov http://greenmice.info/