Re: hung postmaster?

From: "Ed L(dot)" <pgsql(at)bluepolka(dot)net>
To: Martijn van Oosterhout <kleptog(at)svana(dot)org>
Cc: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>, pgsql-general(at)postgresql(dot)org
Subject: Re: hung postmaster?
Date: 2005-02-18 18:01:48
Message-ID: 200502181101.48587.pgsql@bluepolka.net
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

On Wednesday February 16 2005 3:38, Martijn van Oosterhout wrote:
> On Wed, Feb 16, 2005 at 11:41:35AM -0700, Ed L. wrote:
> > Question: Am I doing all I can to avoid corruption with the
> > following procedure to shutdown a 7.4.6 cluster with a hung
> > postmaster? Suggestions?
>
> What is the state of the processes in ps? D, S, R, ?? That
> should at least give a hint as to what it *is* doing...

The postmasters were sleeping. I was able to trace a local hung
psql client through lsof-->netstat to see the connection was in
tcp "ESTABLISHED" state.

Anyway, before we installed gdb (wdb) from hp dvd to get a
backtrace, I'd already guessed it could be a problem with the
build since the 7.4.6 build that was hanging was built with gcc
3.2.2, while the 7.4.6 builds on two other identical boxes were
built with gcc 3.4.2. So we shutdown all the 7.4.6 clusters,
rebuilt using gcc 3.4.2, identical build steps AFAICS, and this
nasty problem has apparently gone away (knock on wood).

I have saved a copy of the problematic gcc-3.2.2-built 7.4.6
installation executables, libraries, etc. in case anyone is
interested. Time permitting, I may fire them up with a new
cluster and see if I can recreate the problem to get a
backtrace.

Thanks.

Ed

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Tom Lane 2005-02-18 18:15:14 Re: Debugging a postgresql server crash.
Previous Message Carlos Henrique Reimer 2005-02-18 17:47:32 Error during restore