pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: Paul Breen <paulb@computerpark.co.uk>
Cc: pgsql-interface@postgresql.org
Cc: pgsql-admin@postgresql.org
Subject: Re: Postmaster crashes with "Serverloop: select failed" message
Date: Fri, 05 Jan 2001 12:10:04 -0500
Message-ID: <10365.978714604@sss.pgh.pa.us> (raw)
In-Reply-To: <Pine.LNX.3.96.1010105110118.14071A-100000@cpark37.computerpark.co.uk>
References: <Pine.LNX.3.96.1010105110118.14071A-100000@cpark37.computerpark.co.uk>

Paul Breen <paulb@computerpark.co.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&...

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



view thread (4+ messages)  latest in thread

Message-ID: <10365.978714604@sss.pgh.pa.us>
Permalink:  ../10365.978714604@sss.pgh.pa.us/
Also on:    postgresql.org/message-id/10365.978714604@sss.pgh.pa.us

 · 

reply

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-admin@postgresql.org
  Cc: tgl@sss.pgh.pa.us, paulb@computerpark.co.uk, pgsql-interface@postgresql.org
  Subject: Re: Postmaster crashes with "Serverloop: select failed" message
  In-Reply-To: <10365.978714604@sss.pgh.pa.us>
  References: <Pine.LNX.3.96.1010105110118.14071A-100000@cpark37.computerpark.co.uk> <10365.978714604@sss.pgh.pa.us>

* 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