Re: [NOVICE] Applicationl Crash - Connection reset by peer !!!

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: "Pradeepkumar, Pyatalo (IE10)" <Pradeepkumar(dot)Pyatalo(at)honeywell(dot)com>
Cc: pgsql-novice(at)postgresql(dot)org, pgsql-admin(at)postgresql(dot)org
Subject: Re: [NOVICE] Applicationl Crash - Connection reset by peer !!!
Date: 2004-09-01 14:27:05
Message-ID: 6303.1094048825@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-admin pgsql-novice

"Pradeepkumar, Pyatalo (IE10)" <Pradeepkumar(dot)Pyatalo(at)honeywell(dot)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

In response to

Browse pgsql-admin by date

  From Date Subject
Next Message Michael Paesold 2004-09-01 14:28:15 Re: slower every day
Previous Message Seamus Ryan 2004-09-01 13:27:00 initdb - (InitPostgres) - FATAL: database "postgres" does not exist

Browse pgsql-novice by date

  From Date Subject
Next Message jason 2004-09-01 20:59:07 Copy of DB behaves different from original
Previous Message Pradeepkumar, Pyatalo (IE10) 2004-09-01 11:43:08 Applicationl Crash - Connection reset by peer !!!