pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
Applicationl Crash - Connection reset by peer !!!
2+ messages / 2 participants
[nested] [flat]

* Applicationl Crash - Connection reset by peer !!!
@ 2004-09-01 11:43  Pradeepkumar, Pyatalo (IE10) <Pradeepkumar.Pyatalo@honeywell.com>
  0 siblings, 1 reply; 2+ messages in thread

From: Pradeepkumar, Pyatalo (IE10) @ 2004-09-01 11:43 UTC (permalink / raw)
  To: pgsql-novice@postgresql.org; +Cc: pgsql-admin


Hi,

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().
In the LOG, I see -
LOG: could not receive data from client: broken pipe
LOG: connection reset by peer
LOG: unexpected EOF on client connection.

any inputs on this most welcome.
Thanks in advance.
> With Best Regards 
> Pradeep Kumar P J 
> 



^ permalink  raw  reply  [nested|flat] 2+ messages in thread

* Re: [NOVICE] Applicationl Crash - Connection reset by peer !!!
@ 2004-09-01 14:27  Tom Lane <tgl@sss.pgh.pa.us>
  parent: Pradeepkumar, Pyatalo (IE10) <Pradeepkumar.Pyatalo@honeywell.com>
  0 siblings, 0 replies; 2+ messages in thread

From: Tom Lane @ 2004-09-01 14:27 UTC (permalink / raw)
  To: Pradeepkumar, Pyatalo (IE10) <Pradeepkumar.Pyatalo@honeywell.com>; +Cc: pgsql-novice@postgresql.org; pgsql-admin

"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



^ permalink  raw  reply  [nested|flat] 2+ messages in thread


end of thread, other threads:[~2004-09-01 14:27 UTC | newest]

Thread overview: 2+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2004-09-01 11:43 Applicationl Crash - Connection reset by peer !!! Pradeepkumar, Pyatalo (IE10) <Pradeepkumar.Pyatalo@honeywell.com>
2004-09-01 14:27 ` Tom Lane <tgl@sss.pgh.pa.us>

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