Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1UHASE-00088I-V0 for pgsql-bugs@arkaria.postgresql.org; Sun, 17 Mar 2013 10:04:39 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.72) (envelope-from ) id 1UHASE-0007wC-Bd for pgsql-bugs@arkaria.postgresql.org; Sun, 17 Mar 2013 10:04:38 +0000 Received: from makus.postgresql.org ([2001:4800:7903:4::125]) by malur.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1UHASC-0007w4-F2 for pgsql-bugs@postgresql.org; Sun, 17 Mar 2013 10:04:36 +0000 Received: from gauss.credativ.com ([93.94.130.89]) by makus.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1UHAS6-0007m0-5p for pgsql-bugs@postgresql.org; Sun, 17 Mar 2013 10:04:35 +0000 Received: from feivel (p508A2FA0.dip.t-dialin.net [80.138.47.160]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) (Authenticated sender: mme@gauss.credativ.com) by gauss.credativ.com (Postfix) with ESMTPSA id 86C6C55017F; Sun, 17 Mar 2013 11:04:27 +0100 (CET) Received: by feivel (Postfix, from userid 1000) id D5C1C9F163; Sun, 17 Mar 2013 11:04:26 +0100 (CET) Date: Sun, 17 Mar 2013 11:04:26 +0100 From: Michael Meskes To: dweber@htw-saarland.de Cc: pgsql-bugs@postgresql.org Subject: Re: BUG #7955: argv=0x0 on program start Message-ID: <20130317100426.GA11180@feivel.credativ.lan> References: MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.21 (2010-09-15) Content-Transfer-Encoding: quoted-printable X-Pg-Spam-Score: -1.9 (-) 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 On Sat, Mar 16, 2013 at 12:12:49PM +0000, dweber@htw-saarland.de wrote: > My program compiled with system compiler gcc-4.2.1 and ecpg from PostgreS= QL > version 9.2.3 terminates by receiving SIGSEGV. The gdb debugger shows > argv=3D0x0 (see below). On PostgreSQL version 8.4.16 it runs without trou= ble. >=20 > Debugger output: > b$ gdb bin/prog prog.core=20 > GNU gdb 6.1.1 [FreeBSD] > ... > Program terminated with signal 11, Segmentation fault. > ... > #0 0x08048eec in main (argc=3D-1077949560, argv=3D0x0) at prog.pgc:87 > 87 { Hmm, this looks like the program didn't even start. Honestly I fail to see = how this could be a bug in PostgreSQL. Are the libraries and the program compil= ed with threading enabled? What happens if you use a very small test case inst= ead of your program? Michael --=20 Michael Meskes Michael at Fam-Meskes dot De, Michael at Meskes dot (De|Com|Net|Org) Michael at BorussiaFan dot De, Meskes at (Debian|Postgresql) dot Org Jabber: michael.meskes at gmail dot com VfL Borussia! For=C3=A7a Bar=C3=A7a! Go SF 49ers! Use Debian GNU/Linux, Pos= tgreSQL --=20 Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-bugs