Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1W1nBG-0005Cg-Jv for pgsql-bugs@arkaria.postgresql.org; Sat, 11 Jan 2014 01:16:06 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.80) (envelope-from ) id 1W1nBF-00073K-91 for pgsql-bugs@arkaria.postgresql.org; Sat, 11 Jan 2014 01:16:05 +0000 Received: from makus.postgresql.org ([2001:4800:7903:4::125]) by malur.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1W1jnM-0003Bl-3C for pgsql-bugs@postgresql.org; Fri, 10 Jan 2014 21:39:12 +0000 Received: from mahout.postgresql.org ([2001:4800:7903:4::123]) by makus.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1W1jnJ-0003G4-EC for pgsql-bugs@postgresql.org; Fri, 10 Jan 2014 21:39:11 +0000 Received: from wrigleys.postgresql.org ([204.145.124.246]) by mahout.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1W1jnI-0000VR-VU for pgsql-bugs@postgresql.org; Fri, 10 Jan 2014 21:39:09 +0000 Received: from www-data by wrigleys.postgresql.org with local (Exim 4.80) (envelope-from ) id 1W1jnD-0002VQ-Do for pgsql-bugs@postgresql.org; Fri, 10 Jan 2014 21:39:03 +0000 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: BUG #8782: Segmentation Fault during initialization To: pgsql-bugs@postgresql.org From: lcampbell@asascience.com Message-Id: Date: Fri, 10 Jan 2014 21:39:03 +0000 X-Pg-Spam-Score: -2.0 (--) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-bugs Precedence: bulk Sender: pgsql-bugs-owner@postgresql.org The following bug has been logged on the website: Bug reference: 8782 Logged by: Luke Campbell Email address: lcampbell@asascience.com PostgreSQL version: 9.3.1 Operating system: Centos 6.5 Description: While attempting to initialize the server as a "postgres" user with: sudo -u postgres /opt/postgresql-9.3.1/bin/initdb /var/postgres A segmentation fault occurred. Here's the stack trace from gdb: #0 0x000000000085b246 in palloc (size=1024) at mcxt.c:647 647 CurrentMemoryContext->isReset = false; (gdb) bt #0 0x000000000085b246 in palloc (size=1024) at mcxt.c:647 #1 0x0000000000625750 in initStringInfo (str=0x7fff1c878c10) at stringinfo.c:50 #2 0x0000000000837d5b in expand_fmt_string (fmt=0x9c51b0 "could not change directory to \"%s\": %s", edata=0xc9d680) at elog.c:2886 #3 0x0000000000834e00 in elog_finish (elevel=15, fmt=0x9c51b0 "could not change directory to \"%s\": %s") at elog.c:1288 #4 0x0000000000875796 in resolve_symlinks (path=0x7fff1c87a2e0 "/opt/postgresql-9.3.1/bin/postgres") at exec.c:293 #5 0x000000000087527f in find_my_exec (argv0=0x1989a60 "/opt/postgresql-9.3.1/bin/postgres", retpath=0x7fff1c87a2e0 "/opt/postgresql-9.3.1/bin/postgres") at exec.c:144 #6 0x0000000000875b1c in set_pglocale_pgservice (argv0=0x1989a60 "/opt/postgresql-9.3.1/bin/postgres", app=0x959448 "postgres-9.3") at exec.c:561 #7 0x0000000000636a56 in main (argc=3, argv=0x1989a30) at main.c: The server was compiled with: $ CFLAGS=-ggdb PYTHON=/usr/local/bin/python ./configure --enable-debug --prefix=/opt/postgresql-9.3.1 --enable-thread-safety --with-gssapi --with-openssl --with-libxml --with-libxslt --with-python No errors during make or make install Additional assessments, speculation and developer commentary can be found at: https://gist.github.com/lukecampbell/8363139 For more information or environment information please contact me at lcampbell@asascience.com Thanks! -- Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-bugs