pg.ddx.io  pgsql-bugs@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: mitu.verma@ericsson.com
To: pgsql-bugs@postgresql.org
Subject: BUG #10888: application is getting hanged in the poll() function of libpq.so.
Date: Mon, 07 Jul 2014 05:46:45 +0000
Message-ID: <20140707054645.2775.15941@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:      10888
Logged by:          Mitu
Email address:      mitu.verma@ericsson.com
PostgreSQL version: 9.1.3
Operating system:   linux
Description:        

Application gets hanged while making a query to the PostgreSql database.

I reproduced the issues on our testbed by making a simple C program which
makes a synchronous connection with the DB.

Pstack is showing the following error when the application is hang (see
below)

Now as it looks that it is getting hanged in the poll() function of
libpq.so.
There are other queries which are running successful on the same server. I
am clueless on how to get it resolved.
I have been advised to make asynchronous connection with the DB for this. 
It will be really helpful if you can provide me some inputs on how to solve
this.

>ps -eaf | grep emitver | grep a.out
emitver   7918 26252  0 12:39 pts/21   00:00:00 ./a.out
emitver   9348 22957  0 12:54 pts/20   00:00:00 grep a.out

%sekax144:/workarea/MM/gerrit_clones/emitver/HS64570                        
                                             
>pstack 7918
#0  0x00000031c82dd1a8 in poll () from /lib64/libc.so.6
#1  0x00007f7f520596ef in pqSocketCheck () from
/opt/PostgreSQL/9.1/lib/libpq.so.5
#2  0x00007f7f520597c0 in pqWaitTimed () from
/opt/PostgreSQL/9.1/lib/libpq.so.5
#3  0x00007f7f52058d8e in PQgetResult () from
/opt/PostgreSQL/9.1/lib/libpq.so.5
#4  0x00007f7f52058f5c in PQexecFinish () from
/opt/PostgreSQL/9.1/lib/libpq.so.5
#5  0x0000000000400f77 in main



-- 
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 (8+ messages)  latest in thread

Message-ID: <20140707054645.2775.15941@wrigleys.postgresql.org>
Permalink:  ../20140707054645.2775.15941@wrigleys.postgresql.org/
Also on:    postgresql.org/message-id/20140707054645.2775.15941@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: mitu.verma@ericsson.com
  Subject: Re: BUG #10888: application is getting hanged in the poll() function of libpq.so.
  In-Reply-To: <20140707054645.2775.15941@wrigleys.postgresql.org>
  References: <20140707054645.2775.15941@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