pg.ddx.io pgsql-bugs@postgresql.org mailing list archive
help / color / mirror / Atom feedR: BUG #6342: libpq blocks forever in "poll" function
2+ messages / 2 participants
[nested] [flat]
* R: BUG #6342: libpq blocks forever in "poll" function
@ 2011-12-16 14:10 Andrea Grassi <andreagrassi@sogeasoft.com>
2011-12-17 06:19 ` Re: R: BUG #6342: libpq blocks forever in "poll" function Craig Ringer <ringerc@ringerc.id.au>
0 siblings, 1 reply; 2+ messages in thread
From: Andrea Grassi @ 2011-12-16 14:10 UTC (permalink / raw)
To: 'Craig Ringer' <ringerc@ringerc.id.au>; +Cc: pgsql-bugs
The client program and the postgres server are on the same host, client connects to 127.0.0.1.
In the meantime, my original program blocks (not my example but very probably the reasons are the same).
I typed "ps -C testprogramname -o wchan:80=" and the output was only a single dash ( "-" ).
I searched for the complete stack in /proc/$pid/stack (where $pid) was the pid of my process but this file doesn't exists !! Why ?
I'm waiting for my example to block in order to send you what you request me about the test program (even if the output almost surely will be the same).
Regards,
Andrea Grassi
-----Messaggio originale-----
Da: Craig Ringer [mailto:ringerc@ringerc.id.au]
Inviato: venerdì 16 dicembre 2011 9.24
A: andreagrassi@sogeasoft.com
Cc: pgsql-bugs@postgresql.org
Oggetto: Re: [BUGS] BUG #6342: libpq blocks forever in "poll" function
On 12/16/2011 03:45 PM, andreagrassi@sogeasoft.com wrote:
> The following bug has been logged on the website:
>
> Bug reference: 6342
> Logged by: Andrea Grassi
> Email address: andreagrassi@sogeasoft.com
> PostgreSQL version: 8.4.8
> Operating system: SUSE SLES 10 SP4 64 BIT
> Description:
>
> Hi,
> I have a big and strange problem. Sometimes, libpq remains blocked in “poll”
> function even if the server has already answered to the query. If I attach
> to the process using kdbg I found this stack:
>
> __kernel_vsyscall()
> poll() from /lib/libc.so.6
Given all you described (thanks for all the detail!) then if client and
server are on different hosts this could easily be a NIC driver or HW
issue. It'd be interesting to see the output of:
ps -C testprogramname -o wchan:80=
--
Craig Ringer
^ permalink raw reply [nested|flat] 2+ messages in thread
* Re: R: BUG #6342: libpq blocks forever in "poll" function
2011-12-16 14:10 R: BUG #6342: libpq blocks forever in "poll" function Andrea Grassi <andreagrassi@sogeasoft.com>
@ 2011-12-17 06:19 ` Craig Ringer <ringerc@ringerc.id.au>
0 siblings, 0 replies; 2+ messages in thread
From: Craig Ringer @ 2011-12-17 06:19 UTC (permalink / raw)
To: Andrea Grassi <andreagrassi@sogeasoft.com>; +Cc: pgsql-bugs
On 16/12/2011 10:10 PM, Andrea Grassi wrote:
> The client program and the postgres server are on the same host, client connects to 127.0.0.1.
> In the meantime, my original program blocks (not my example but very probably the reasons are the same).
>
> I typed "ps -C testprogramname -o wchan:80=" and the output was only a single dash ( "-" ).
That means it's not waiting in a kernel call right now. Was the program
in the hung state you've observed at the time you ran the command? Its
output would only be interesting when it's hung.
> I searched for the complete stack in /proc/$pid/stack (where $pid) was the pid of my process but this file doesn't exists !! Why ?
Old kernel, maybe? You're running on some kind of enterprise-y distro,
so who knows how ancient half the stuff in there is.
--
Craig Ringer
^ permalink raw reply [nested|flat] 2+ messages in thread
end of thread, other threads:[~2011-12-17 06:19 UTC | newest]
Thread overview: 2+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2011-12-16 14:10 R: BUG #6342: libpq blocks forever in "poll" function Andrea Grassi <andreagrassi@sogeasoft.com>
2011-12-17 06:19 ` Craig Ringer <ringerc@ringerc.id.au>
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