Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1TyWsp-0004Gm-KK for pgsql-bugs@arkaria.postgresql.org; Fri, 25 Jan 2013 00:11:03 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.72) (envelope-from ) id 1TyWso-0004dJ-V5 for pgsql-bugs@arkaria.postgresql.org; Fri, 25 Jan 2013 00:11:03 +0000 Received: from makus.postgresql.org ([98.129.198.125]) by malur.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1TyWso-0004dE-9M for pgsql-bugs@postgresql.org; Fri, 25 Jan 2013 00:11:02 +0000 Received: from moutng.kundenserver.de ([212.227.17.9]) by makus.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1TyWsm-0006Ok-IB for pgsql-bugs@postgresql.org; Fri, 25 Jan 2013 00:11:01 +0000 Received: from anarazel.de (p5DDC49C5.dip.t-dialin.net [93.220.73.197]) by mrelayeu.kundenserver.de (node=mrbap1) with ESMTP (Nemesis) id 0LnDqv-1Uf16V2wqj-00h0RM; Fri, 25 Jan 2013 01:10:58 +0100 Received: by anarazel.de (Postfix, from userid 1000) id DD79C1C0177; Fri, 25 Jan 2013 01:10:57 +0100 (CET) Date: Fri, 25 Jan 2013 01:10:57 +0100 From: Andres Freund To: Tom Lane Cc: Mark Kirkwood , pgsql-bugs@postgresql.org, Joe Conway Subject: Re: PL/R Median Busts Commit (Postgres 9.1.6 + plr 8.3.0.13 on Ubuntu 12.10 64 bit) Message-ID: <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> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <28888.1359072381@sss.pgh.pa.us> X-Provags-ID: V02:K0:0mQECrLLuRtVO9tDw4hrEpTt6SlhlzpI4CJifY/AGMu Qprh+AwWCjEDuf4FhqbvrZm+/pXHQqzD36OR02Y5i1HY4Sssyf su5kFuzYep/t6h9ZauZvj87Xpfg5vEmBarYdqUncBvvuoUDafb 4CNrMED2Vm5bGUNRjXhGolyiCXEDvAcVmm1j8mSFcAvqtXPFfH 7r9rnWWh7ve/9UwCHoSQ99fRYEDzfKB2QrvIuCa0hhjPAD90wl WJR8+Cv+d4/h72NzPhVWf495/CrApvwAul03gY/U1qqHeEugdH 4ZxtKg9u7nryTL9NY29lnkC/3GGToqfK3i3CQWct5YgRTaxX4S qljYXlwkv4zoVwQCRpVfgKOZYe+rhFZL1Sbea7DAf X-Pg-Spam-Score: -1.9 (-) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-bugs Precedence: bulk Sender: pgsql-bugs-owner@postgresql.org On 2013-01-24 19:06:21 -0500, Tom Lane wrote: > Mark Kirkwood 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 > > #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