Re: Postmaster crashes with "Serverloop: select failed" message

From: Paul Breen <pbreen(at)computerpark(dot)co(dot)uk>
To: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
Cc: Paul Breen <paulb(at)computerpark(dot)co(dot)uk>, pgsql-interface(at)postgresql(dot)org, pgsql-admin(at)postgresql(dot)org
Subject: Re: Postmaster crashes with "Serverloop: select failed" message
Date: 2001-01-08 12:35:49
Message-ID: Pine.LNX.3.96.1010108122749.16071A-100000@cpark37.computerpark.co.uk
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-admin

Thanks Tom,

We applied a modified version of the patch by hand. Looking through the
code it does seem that the patch should fix the problem we were having.
However because we've never been able to forcibly reproduce the problem
ourselves for testing it's just a case of keeping an eye on things to
ensure the problem is fixed!

Once again, thanks very much!

Paul M. Breen, Software Engineer - Computer Park Ltd.

Tel: (01536) 417155
Email: pbreen(at)computerpark(dot)co(dot)uk

On Fri, 5 Jan 2001, Tom Lane wrote:

> Paul Breen <paulb(at)computerpark(dot)co(dot)uk> writes:
> > The problem is that the Postmaster has crashed twice now and both times
> > the last message in the Postmaster's log was:
> > /usr/local/pgsql/bin/postmaster: ServerLoop: select failed: No child
> > processes
>
> This sounds like the bug we recently recognized that the SIGCHLD signal
> processor has to save and restore errno. There is a fix in current
> sources. I do not have a patch for 7.0.* handy, but you could probably
> adapt the change that was applied:
>
> http://www.postgresql.org/cgi/cvsweb.cgi/pgsql/src/backend/postmaster/postmaster.c.diff?r1=1.198&r2=1.199&f=c
>
> The additions to reaper() are the only critical part, I think.
>
> > We also seem to get a large number of the following message in our
> > Postmaster's log:
> > pq_recvbuf: unexpected EOF on client connection
> > Are these connected? What do the messages mean?
>
> No, those just mean that some client is disconnecting without bothering
> to send the "I'm done" message. It's pretty harmless from the DB's
> point of view. Do you have a client that crashes a lot?
>
> regards, tom lane
>

In response to

Browse pgsql-admin by date

  From Date Subject
Next Message Gavin M. Roy 2001-01-08 20:09:12 GRANT & DROP
Previous Message R D 2001-01-08 09:31:55 Re: Granting Permissions to User To Access Database