Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1UH4NN-0000Yt-2p for pgsql-bugs@arkaria.postgresql.org; Sun, 17 Mar 2013 03:35:13 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.72) (envelope-from ) id 1UH4NM-0008IB-DY for pgsql-bugs@arkaria.postgresql.org; Sun, 17 Mar 2013 03:35:12 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1UGpyt-0000tO-RQ for pgsql-bugs@postgresql.org; Sat, 16 Mar 2013 12:12:59 +0000 Received: from mahout.postgresql.org ([2001:4800:7903:4::123]) by magus.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1UGpym-0001QO-EU for pgsql-bugs@postgresql.org; Sat, 16 Mar 2013 12:12:59 +0000 Received: from [204.145.124.246] (helo=wrigleys.postgresql.org) by mahout.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1UGpyk-0003w4-7K for pgsql-bugs@postgresql.org; Sat, 16 Mar 2013 12:12:51 +0000 Received: from www-data by wrigleys.postgresql.org with local (Exim 4.72) (envelope-from ) id 1UGpyj-0005Wa-Uk for pgsql-bugs@postgresql.org; Sat, 16 Mar 2013 12:12:49 +0000 Date: Sat, 16 Mar 2013 12:12:49 +0000 Message-Id: Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Subject: BUG #7955: argv=0x0 on program start To: pgsql-bugs@postgresql.org From: dweber@htw-saarland.de X-Pg-Spam-Score: -4.3 (----) 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: 7955 Logged by: Damian Weber Email address: dweber@htw-saarland.de PostgreSQL version: 9.2.3 Operating system: FreeBSD 9.1-STABLE, arch i386 Description:=20=20=20=20=20=20=20=20 My program compiled with system compiler gcc-4.2.1 and ecpg from PostgreSQL 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 troubl= e. Debugger output: b$ gdb bin/prog prog.core=20 GNU gdb 6.1.1 [FreeBSD] Copyright 2004 Free Software Foundation, Inc. GDB is free software, covered by the GNU General Public License, and you are welcome to change it and/or distribute copies of it under certain conditions. Type "show copying" to see the conditions. There is absolutely no warranty for GDB. Type "show warranty" for details. This GDB was configured as "i386-marcel-freebsd"... Core was generated by `prog'. Program terminated with signal 11, Segmentation fault. Reading symbols from /usr/local/pgsql/lib/libecpg.so.6...done. Loaded symbols for /usr/local/pgsql/lib/libecpg.so.6 Reading symbols from /lib/libc.so.7...done. Loaded symbols for /lib/libc.so.7 Reading symbols from /usr/local/pgsql/lib/libpgtypes.so.3...done. Loaded symbols for /usr/local/pgsql/lib/libpgtypes.so.3 Reading symbols from /usr/local/pgsql/lib/libpq.so.5...done. Loaded symbols for /usr/local/pgsql/lib/libpq.so.5 Reading symbols from /lib/libm.so.5...done. Loaded symbols for /lib/libm.so.5 Reading symbols from /lib/libthr.so.3...done. Loaded symbols for /lib/libthr.so.3 Reading symbols from /libexec/ld-elf.so.1...done. Loaded symbols for /libexec/ld-elf.so.1 #0 0x08048eec in main (argc=3D-1077949560, argv=3D0x0) at prog.pgc:87 87 { [New Thread 44004300 (LWP 100115/prog)] --=20 Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-bugs