From: Michael Meskes <meskes@postgresql.org>
To: dweber@htw-saarland.de
Cc: pgsql-bugs@postgresql.org
Subject: Re: BUG #7955: argv=0x0 on program start
Date: Sun, 17 Mar 2013 11:04:26 +0100
Message-ID: <20130317100426.GA11180@feivel.credativ.lan> (raw)
In-Reply-To: <E1UGpyj-0005Wa-Uk@wrigleys.postgresql.org>
References: <E1UGpyj-0005Wa-Uk@wrigleys.postgresql.org>
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-bugs>
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 PostgreSQL
> version 9.2.3 terminates by receiving SIGSEGV. The gdb debugger shows
> argv=0x0 (see below). On PostgreSQL version 8.4.16 it runs without trouble.
>
> Debugger output:
> b$ gdb bin/prog prog.core
> GNU gdb 6.1.1 [FreeBSD]
> ...
> Program terminated with signal 11, Segmentation fault.
> ...
> #0 0x08048eec in main (argc=-1077949560, argv=0x0) 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 compiled
with threading enabled? What happens if you use a very small test case instead
of your program?
Michael
--
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ça Barça! Go SF 49ers! Use Debian GNU/Linux, PostgreSQL
--
Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-bugs
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-bugs@postgresql.org
Cc: meskes@postgresql.org, dweber@htw-saarland.de
Subject: Re: BUG #7955: argv=0x0 on program start
In-Reply-To: <20130317100426.GA11180@feivel.credativ.lan>
References: <E1UGpyj-0005Wa-Uk@wrigleys.postgresql.org> <20130317100426.GA11180@feivel.credativ.lan>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox