Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1Tb2IU-0006vy-23 for pgsql-bugs@postgresql.org; Wed, 21 Nov 2012 04:52:26 +0000 Received: from szxga02-in.huawei.com ([119.145.14.65]) by magus.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1Tb2IQ-00050V-Ot for pgsql-bugs@postgresql.org; Wed, 21 Nov 2012 04:52:25 +0000 Received: from 172.24.2.119 (EHLO szxeml205-edg.china.huawei.com) ([172.24.2.119]) by szxrg02-dlp.huawei.com (MOS 4.3.4-GA FastPath queued) with ESMTP id ASX10251; Wed, 21 Nov 2012 12:52:16 +0800 (CST) Received: from SZXEML410-HUB.china.huawei.com (10.82.67.137) by szxeml205-edg.china.huawei.com (172.24.2.58) with Microsoft SMTP Server (TLS) id 14.1.323.3; Wed, 21 Nov 2012 12:51:30 +0800 Received: from blrprnc09ns (10.18.96.98) by szxeml410-hub.china.huawei.com (10.82.67.137) with Microsoft SMTP Server id 14.1.323.3; Wed, 21 Nov 2012 12:51:26 +0800 From: Amit Kapila To: , References: In-Reply-To: Subject: Re: BUG #7676: pgSocketCheck dosen`t return Date: Wed, 21 Nov 2012 10:21:23 +0530 Message-ID: <005d01cdc7a3$dbf251a0$93d6f4e0$@kapila@huawei.com> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable X-Mailer: Microsoft Office Outlook 12.0 Thread-Index: Ac3G6UWKT95BB5bvQTGoODjWAc/wzwAuhkOQ Content-Language: en-us X-Originating-IP: [10.18.96.98] X-CFilter-Loop: Reflected X-Pg-Spam-Score: -1.3 (-) X-Archive-Number: 201211/169 X-Sequence-Number: 34727 On Monday, November 19, 2012 11:31 AM yongchao.xu@newtouch.cn wrote: > The following bug has been logged on the website: >=20 > Bug reference: 7676 > Logged by: yonchao > Email address: yongchao.xu@newtouch.cn > PostgreSQL version: 8.4.6 > Operating system: CentOS 5.5=EF=BC=8864bit=EF=BC=89 > Description: >=20 > I have this problem today: one thread of our application hung, and > we found the thread waiting for the result of poll() function. poll() > was called by pgSocketCheck(). So is it a bug of pg? I found the bug > report from > = website(http://archives.postgresql.org/pgsql-bugs/2008-02/msg00260.php), > and want to know: >=20 > 1. Has this problem been solved in the newest version? > 2. If not, what shall I do to avoid this problem? >=20 > Thanks a lot! >=20 > PS: > gdb info: > (gdb) bt > #0 0x00d31402 in __kernel_vsyscall () > #1 0x003d3dc3 in poll () from /lib/i686/nosegneg/libc.so.6 > #2 0x0013de5d in pqSocketCheck () from /usr/local/pgsql/lib/libpq.so.5 > #3 0x0013df8d in pqWaitTimed () from /usr/local/pgsql/lib/libpq.so.5 > #4 0x0013e003 in pqWait () from /usr/local/pgsql/lib/libpq.so.5 > #5 0x0013d792 in PQgetResult () from /usr/local/pgsql/lib/libpq.so.5 I have also observed similar problem in some of tests, but it appears to = be hung due to network break and it came out after 15-20 minutes. With Regards, Amit Kapila.=20