From: Amit Kapila <amit.kapila@huawei.com>
To: yongchao.xu@newtouch.cn
To: pgsql-bugs@postgresql.org
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> (raw)
In-Reply-To: <E1TaKPb-00008c-6O@wrigleys.postgresql.org>
References: <E1TaKPb-00008c-6O@wrigleys.postgresql.org>
On Monday, November 19, 2012 11:31 AM yongchao.xu@newtouch.cn wrote:
> The following bug has been logged on the website:
>
> Bug reference: 7676
> Logged by: yonchao
> Email address: yongchao.xu@newtouch.cn
> PostgreSQL version: 8.4.6
> Operating system: CentOS 5.5(64bit)
> Description:
>
> 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:
>
> 1. Has this problem been solved in the newest version?
> 2. If not, what shall I do to avoid this problem?
>
> Thanks a lot!
>
> 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.
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: amit.kapila@huawei.com, yongchao.xu@newtouch.cn
Subject: Re: BUG #7676: pgSocketCheck dosen`t return
In-Reply-To: <005d01cdc7a3$dbf251a0$93d6f4e0$@kapila@huawei.com>
References: <E1TaKPb-00008c-6O@wrigleys.postgresql.org> <005d01cdc7a3$dbf251a0$93d6f4e0$@kapila@huawei.com>
* 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