pg.ddx.io  pgsql-bugs@postgresql.org mailing list archive  
help / color / mirror / Atom feed
BUG #7676: pgSocketCheck dosen`t return
3+ messages / 3 participants
[nested] [flat]

* BUG #7676: pgSocketCheck dosen`t return
@ 2012-11-19 06:00 yongchao.xu@newtouch.cn
  2012-11-20 14:47 ` Re: BUG #7676: pgSocketCheck dosen`t return Tom Lane <tgl@sss.pgh.pa.us>
  2012-11-21 04:51 ` Re: BUG #7676: pgSocketCheck dosen`t return Amit Kapila <amit.kapila@huawei.com>
  0 siblings, 2 replies; 3+ messages in thread

From: yongchao.xu@newtouch.cn @ 2012-11-19 06:00 UTC (permalink / raw)
  To: pgsql-bugs

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


--






^ permalink  raw  reply  [nested|flat] 3+ messages in thread

* Re: BUG #7676: pgSocketCheck dosen`t return
  2012-11-19 06:00 BUG #7676: pgSocketCheck dosen`t return yongchao.xu@newtouch.cn
@ 2012-11-20 14:47 ` Tom Lane <tgl@sss.pgh.pa.us>
  1 sibling, 0 replies; 3+ messages in thread

From: Tom Lane @ 2012-11-20 14:47 UTC (permalink / raw)
  To: yongchao.xu@newtouch.cn; +Cc: pgsql-bugs

yongchao.xu@newtouch.cn writes:
> 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?

So far as anyone can tell, this trace just indicates that the
application is waiting for a response from the server.  If there's
a bug there, you'd need to provide more or different information to
prove it.  I think more likely you need to be consulting
http://wiki.postgresql.org/wiki/Slow_Query_Questions

			regards, tom lane




^ permalink  raw  reply  [nested|flat] 3+ messages in thread

* Re: BUG #7676: pgSocketCheck dosen`t return
  2012-11-19 06:00 BUG #7676: pgSocketCheck dosen`t return yongchao.xu@newtouch.cn
@ 2012-11-21 04:51 ` Amit Kapila <amit.kapila@huawei.com>
  1 sibling, 0 replies; 3+ messages in thread

From: Amit Kapila @ 2012-11-21 04:51 UTC (permalink / raw)
  To: yongchao.xu@newtouch.cn; pgsql-bugs

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. 





^ permalink  raw  reply  [nested|flat] 3+ messages in thread


end of thread, other threads:[~2012-11-21 04:51 UTC | newest]

Thread overview: 3+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2012-11-19 06:00 BUG #7676: pgSocketCheck dosen`t return yongchao.xu@newtouch.cn
2012-11-20 14:47 ` Tom Lane <tgl@sss.pgh.pa.us>
2012-11-21 04:51 ` Amit Kapila <amit.kapila@huawei.com>

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