From: Tom Lane <tgl@sss.pgh.pa.us>
To: Pradeepkumar, Pyatalo (IE10) <Pradeepkumar.Pyatalo@honeywell.com>
Cc: pgsql-novice@postgresql.org
Cc: pgsql-admin@postgresql.org
Subject: Re: [NOVICE] Applicationl Crash - Connection reset by peer !!!
Date: Wed, 01 Sep 2004 10:27:05 -0400
Message-ID: <6303.1094048825@sss.pgh.pa.us> (raw)
In-Reply-To: <77ED2BF75D59D1439F90412CC5B109741104F137@ie10-sahara.hiso.honeywell.com>
References: <77ED2BF75D59D1439F90412CC5B109741104F137@ie10-sahara.hiso.honeywell.com>
"Pradeepkumar, Pyatalo (IE10)" <Pradeepkumar.Pyatalo@honeywell.com> writes:
> I am using Postgresql 7.4.3 running on RedHat Linux 2.4.7. My Application is
> coded in C. I am using libpq functions inorder to connect to the database.
> I am using PQsetdbLogin() to connect and PQfinish() to release the database
> connection. In my application I have around 15-20 C functions. In each
> function i connect to the database, perform some query and then release the
> connection. Today the application is crashing. It says SEGMENTATION FAULT in
> PQsetdbLogin().
The odds are *extremely* high that this is a bug in your own code, not
in libpq. PQsetdbLogin() is probably just the victim of a memory stomp
occurring elsewhere.
regards, tom lane
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-admin@postgresql.org
Cc: tgl@sss.pgh.pa.us, Pradeepkumar.Pyatalo@honeywell.com, pgsql-novice@postgresql.org
Subject: Re: [NOVICE] Applicationl Crash - Connection reset by peer !!!
In-Reply-To: <6303.1094048825@sss.pgh.pa.us>
References: <77ED2BF75D59D1439F90412CC5B109741104F137@ie10-sahara.hiso.honeywell.com> <6303.1094048825@sss.pgh.pa.us>
* 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