pg.ddx.io  pgsql-bugs@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: dweber@htw-saarland.de
To: pgsql-bugs@postgresql.org
Subject: BUG #7955: argv=0x0 on program start
Date: Sat, 16 Mar 2013 12:12:49 +0000
Message-ID: <E1UGpyj-0005Wa-Uk@wrigleys.postgresql.org> (raw)
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-bugs>

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:        

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]
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=-1077949560, argv=0x0) at prog.pgc:87
87      {
[New Thread 44004300 (LWP 100115/prog)]




-- 
Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-bugs



view thread (3+ messages)  latest in thread

Message-ID: <E1UGpyj-0005Wa-Uk@wrigleys.postgresql.org>
Permalink:  ../E1UGpyj-0005Wa-Uk@wrigleys.postgresql.org/
Also on:    postgresql.org/message-id/E1UGpyj-0005Wa-Uk@wrigleys.postgresql.org

 · 

reply

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: dweber@htw-saarland.de
  Subject: Re: BUG #7955: argv=0x0 on program start
  In-Reply-To: <E1UGpyj-0005Wa-Uk@wrigleys.postgresql.org>
  References: <E1UGpyj-0005Wa-Uk@wrigleys.postgresql.org>

* 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