Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1X4AAT-0004J7-0P for pgsql-bugs@arkaria.postgresql.org; Mon, 07 Jul 2014 14:45:21 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.80) (envelope-from ) id 1X4AAS-0002Ug-Bo for pgsql-bugs@arkaria.postgresql.org; Mon, 07 Jul 2014 14:45:20 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.2:DHE_RSA_AES_256_CBC_SHA256:256) (Exim 4.80) (envelope-from ) id 1X41lc-0000pR-Oi for pgsql-bugs@postgresql.org; Mon, 07 Jul 2014 05:47:08 +0000 Received: from wrigleys.postgresql.org ([204.145.124.246]) by magus.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1X41lY-0003Zr-68 for pgsql-bugs@postgresql.org; Mon, 07 Jul 2014 05:47:07 +0000 MIME-Version: 1.0 Subject: BUG #10888: application is getting hanged in the poll() function of libpq.so. To: pgsql-bugs@postgresql.org From: mitu.verma@ericsson.com Date: Mon, 07 Jul 2014 05:46:45 +0000 Message-ID: <20140707054645.2775.15941@wrigleys.postgresql.org> X-Pg-Spam-Score: -1.2 (-) Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-bugs Precedence: bulk Sender: pgsql-bugs-owner@postgresql.org 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