pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
Postmaster crashes with "ServerLoop: select failed message"
4+ messages / 3 participants
[nested] [flat]

* Postmaster crashes with "ServerLoop: select failed message"
@ 2001-01-03 11:04  Paul Breen <pbreen@computerpark.co.uk>
  0 siblings, 0 replies; 4+ messages in thread

From: Paul Breen @ 2001-01-03 11:04 UTC (permalink / raw)
  To: pgsql-interfaces@postgresql.org; +Cc: pgsql-admin

Hello all,

We've recently completed a Postgres based project.  The application uses 2
Linux server's, both running Postgres, to allow database replication.
From our application we write to both databases within a transaction and
if either update fails we rollback.  We use the C API (libpq), the PHP API
and also some Tcl/Tk stuff (pgtksh).

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

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? This is what we are 
using:

System: Linux FGD 2.2.13 #1 Thu Dec 16 13:55:58 GMT 1999 i586 unknown
Database Server: PostgreSQL 6.5.3 on i586-pc-linux-gnu,
compiled by gcc egcs-2.91.66
Web Server: Apache/1.3.9 (Unix) (SuSE/Linux) PHP/3.0.12
PHP: 3.0.12
Tcl/Tk: 8.2

Any help with this problem would be greatly appreciated.  Originally the
application was well received but these crashes have dented user's belief
in it!  More information can be supplied if necessary.

Thanks in advance.

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

Tel:   (01536) 417155
Email: pbreen@computerpark.co.uk




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

* Postmaster crashes with "Serverloop: select failed" message
@ 2001-01-05 11:09  Paul Breen <paulb@computerpark.co.uk>
  0 siblings, 1 reply; 4+ messages in thread

From: Paul Breen @ 2001-01-05 11:09 UTC (permalink / raw)
  To: pgsql-interface@postgresql.org; +Cc: pgsql-admin


Hello all,

We've recently completed a Postgres based project.  The application uses 2
Linux server's, both running Postgres, to allow database replication.
From our application we write to both databases within a transaction and
if either update fails we rollback.  We use the C API (libpq), the PHP API
and also some Tcl/Tk stuff (pgtksh).

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

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? This is what we are 
using:

System: Linux FGD 2.2.13 #1 Thu Dec 16 13:55:58 GMT 1999 i586 unknown
Database Server: PostgreSQL 6.5.3 on i586-pc-linux-gnu,
compiled by gcc egcs-2.91.66
Web Server: Apache/1.3.9 (Unix) (SuSE/Linux) PHP/3.0.12
PHP: 3.0.12
Tcl/Tk: 8.2

Any help with this problem would be greatly appreciated.  Originally the
application was well received but these crashes have dented user's belief
in it!  More information can be supplied if necessary.

Thanks in advance.

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

Tel:   (01536) 417155
Email: pbreen@computerpark.co.uk






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

* Re: Postmaster crashes with "Serverloop: select failed" message
@ 2001-01-05 17:10  Tom Lane <tgl@sss.pgh.pa.us>
  parent: Paul Breen <paulb@computerpark.co.uk>
  0 siblings, 1 reply; 4+ messages in thread

From: Tom Lane @ 2001-01-05 17:10 UTC (permalink / raw)
  To: Paul Breen <paulb@computerpark.co.uk>; +Cc: pgsql-interface@postgresql.org; pgsql-admin

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



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

* Re: Postmaster crashes with "Serverloop: select failed" message
@ 2001-01-08 12:35  Paul Breen <pbreen@computerpark.co.uk>
  parent: Tom Lane <tgl@sss.pgh.pa.us>
  0 siblings, 0 replies; 4+ messages in thread

From: Paul Breen @ 2001-01-08 12:35 UTC (permalink / raw)
  To: Tom Lane <tgl@sss.pgh.pa.us>; +Cc: Paul Breen <paulb@computerpark.co.uk>; pgsql-interface@postgresql.org; 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@computerpark.co.uk

On Fri, 5 Jan 2001, Tom Lane wrote:

> 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
> 




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


end of thread, other threads:[~2001-01-08 12:35 UTC | newest]

Thread overview: 4+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2001-01-03 11:04 Postmaster crashes with "ServerLoop: select failed message" Paul Breen <pbreen@computerpark.co.uk>
2001-01-05 11:09 Postmaster crashes with "Serverloop: select failed" message Paul Breen <paulb@computerpark.co.uk>
2001-01-05 17:10 ` Re: Postmaster crashes with "Serverloop: select failed" message Tom Lane <tgl@sss.pgh.pa.us>
2001-01-08 12:35   ` Re: Postmaster crashes with "Serverloop: select failed" message Paul Breen <pbreen@computerpark.co.uk>

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