pg.ddx.io  pgsql-bugs@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Rene Grün <rene.gruen@cslab.de>
To: Tom Lane <tgl@sss.pgh.pa.us>
To: Alvaro Herrera <alvherre@2ndquadrant.com>
Cc: pgsql-bugs@postgresql.org
Subject: Re: BUG #8579: CoreDump of background writer process
Date: Wed, 6 Nov 2013 17:25:53 +0100
Message-ID: <5AD33821D1C0AD479A69349F17DA5F555003B5@exchange.mbs.internal> (raw)
References: <E1Vdyst-000374-Fd@wrigleys.postgresql.org>
	<20131106154431.GN5809@eldon.alvh.no-ip.org>
	<29013.1383753437@sss.pgh.pa.us>
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-bugs>

Thank you very much for your help.

I will try to give more information.

We are using gcc 4.4.2 provided by QNX. It is the default-compiler for this system.
I have compiled the port in a pkgsrc-environment, so I can't tell you which optimizations are used.


There are no other matches for "background" in the logfiles.


We are using a normal qnx4-filesystem directly on the harddisc (ahci).

The SIGHUP only appears in the first example.


From the QNX-documentation for the function lseek:

Classification:

lseek() is POSIX 1003.1; 

Safety:	
Cancellation point	No
Interrupt handler	No
Signal handler		Yes
Thread			Yes




Mit freundlichen Grüßen aus Krefeld,
With best regards from Krefeld,

CS-Lab GmbH
i. A. René Grün

E-Mail: rgr@cslab.de
Fon:    +49 2151 72949-0
Fax:    +49 2151 72949-9
---
CS-Lab GmbH (Creativ Software Labor GmbH)
Römerstr. 15
D-47809 Krefeld
Geschäftsführer: Dieter Schmitz
Registergericht Krefeld, HRB 12257, USt.-ID: DE 263 834 180



-----Ursprüngliche Nachricht-----
Von: Tom Lane [mailto:tgl@sss.pgh.pa.us] 
Gesendet: Mittwoch, 6. November 2013 16:57
An: Alvaro Herrera
Cc: rgr@cslab.de; pgsql-bugs@postgresql.org
Betreff: Re: [BUGS] BUG #8579: CoreDump of background writer process

Alvaro Herrera <alvherre@2ndquadrant.com> writes:
> I wonder if the problem is mishandling of signals -- i.e. perhaps the 
> port is at fault, or maybe it was right in 8.3 but we changed 
> something that would affect the port, and it wasn't properly updated to match.

The postmaster log looked like the problem was triggered by SIGHUP arriving while the bgwriter was doing an lseek().  It's not usual for seeks to be interruptable, though, unless maybe you're running the database over NFS?  I tend to not trust that kind of arrangement much, mainly because NFS exposes you to all sorts of poorly-tested error recovery paths.  Like this one.

Anyway, in theory the bgwriter ought to be able to recover from such an error.  Somehow the local state of BackgroundWriterMain is getting messed up, though.

>> #0  0x00000000 in ?? ()
>> #1  0x08205ef4 in BackgroundWriterMain ()
>> #2  0x080e2759 in AuxiliaryProcessMain ()

> Not very useful, is it :-(

The OP did provide a stack trace with debug symbols, further down.

			regards, tom lane


-- 
Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-bugs



view thread (7+ messages)  latest in thread

Message-ID: <5AD33821D1C0AD479A69349F17DA5F555003B5@exchange.mbs.internal>
Permalink:  ../5AD33821D1C0AD479A69349F17DA5F555003B5@exchange.mbs.internal/
Also on:    postgresql.org/message-id/5AD33821D1C0AD479A69349F17DA5F555003B5@exchange.mbs.internal

 · 

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-bugs@postgresql.org
  Cc: rene.gruen@cslab.de, tgl@sss.pgh.pa.us, alvherre@2ndquadrant.com
  Subject: Re: BUG #8579: CoreDump of background writer process
  In-Reply-To: <5AD33821D1C0AD479A69349F17DA5F555003B5@exchange.mbs.internal>
  References: <E1Vdyst-000374-Fd@wrigleys.postgresql.org> <20131106154431.GN5809@eldon.alvh.no-ip.org> <29013.1383753437@sss.pgh.pa.us> <5AD33821D1C0AD479A69349F17DA5F555003B5@exchange.mbs.internal>

* 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