From: Andres Freund <andres@2ndquadrant.com>
To: Tom Lane <tgl@sss.pgh.pa.us>
Cc: Mark Kirkwood <mark.kirkwood@catalyst.net.nz>
Cc: pgsql-bugs@postgresql.org
Cc: Joe Conway <mail@joeconway.com>
Subject: Re: PL/R Median Busts Commit (Postgres 9.1.6 + plr 8.3.0.13 on Ubuntu 12.10 64 bit)
Date: Fri, 25 Jan 2013 01:10:57 +0100
Message-ID: <20130125001057.GB18817@awork2.anarazel.de> (raw)
In-Reply-To: <28888.1359072381@sss.pgh.pa.us>
References: <5100B6B2.8030408@catalyst.net.nz>
<51014FCB.30601@joeconway.com>
<5101A3DA.5080507@catalyst.net.nz>
<5101A47D.6050508@catalyst.net.nz>
<25545.1359062304@sss.pgh.pa.us>
<5101A7D1.6040703@catalyst.net.nz>
<25945.1359063403@sss.pgh.pa.us>
<5101B8AF.3090307@catalyst.net.nz>
<28888.1359072381@sss.pgh.pa.us>
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-bugs>
On 2013-01-24 19:06:21 -0500, Tom Lane wrote:
> Mark Kirkwood <mark.kirkwood@catalyst.net.nz> writes:
> > If I have done this right, then this is the trace for the 1st message...
> > from my wandering through the calls here it looks like a normal commit,
> > and something goes a bit weird as SI messages are being processed...
>
> Seems like the critical bit is here:
>
> > #11 0x00007f4e2a53d985 in exit () from /lib/x86_64-linux-gnu/libc.so.6
> > #12 0x00007f4e272b951a in ?? () from /usr/lib/libR.so
> > #13 <signal handler called>
> > #14 0x00007f4e2a538707 in kill () from /lib/x86_64-linux-gnu/libc.so.6
> > #15 0x00000000006152e5 in SICleanupQueue (
> > callerHasWriteLock=callerHasWriteLock@entry=1 '\001',
> > minFree=minFree@entry=4) at sinvaladt.c:672
>
> Frame 15 is definitely SICleanupQueue trying to send a catchup SIGUSR1
> interrupt to the furthest-behind backend. The fact that we go directly
> into a signal handler from the kill() suggests that the furthest-behind
> backend is actually *this* backend, which perhaps is a bit surprising,
> but it's supposed to work. What it looks like, though, is that libR has
> commandeered the SIGUSR1 signal handler, and just to be extra special
> unfriendly to the surrounding program, it does an exit() when it traps a
> SIGUSR1.
>
> Unless libR can be coerced into not screwing up our signal handlers,
> I'd say that PL/R is broken beyond repair. That would be unfortunate.
I wonder whether we could place some Assert's somewhere that verify our
signal handlers are still setup, this isn't the first bug caused by pl's
or libraries overriding them...
Greetings,
Andres Freund
--
Andres Freund http://www.2ndQuadrant.com/
PostgreSQL Development, 24x7 Support, Training & Services
--
Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-bugs
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: andres@2ndquadrant.com, tgl@sss.pgh.pa.us, mark.kirkwood@catalyst.net.nz, mail@joeconway.com
Subject: Re: PL/R Median Busts Commit (Postgres 9.1.6 + plr 8.3.0.13 on Ubuntu 12.10 64 bit)
In-Reply-To: <20130125001057.GB18817@awork2.anarazel.de>
References: <5100B6B2.8030408@catalyst.net.nz> <51014FCB.30601@joeconway.com> <5101A3DA.5080507@catalyst.net.nz> <5101A47D.6050508@catalyst.net.nz> <25545.1359062304@sss.pgh.pa.us> <5101A7D1.6040703@catalyst.net.nz> <25945.1359063403@sss.pgh.pa.us> <5101B8AF.3090307@catalyst.net.nz> <28888.1359072381@sss.pgh.pa.us> <20130125001057.GB18817@awork2.anarazel.de>
* 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