Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1TyXU1-00072g-C2 for pgsql-bugs@arkaria.postgresql.org; Fri, 25 Jan 2013 00:49:29 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.72) (envelope-from ) id 1TyXU0-0000Rz-DF for pgsql-bugs@arkaria.postgresql.org; Fri, 25 Jan 2013 00:49:28 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1TyXTz-0000Rr-Hp for pgsql-bugs@postgresql.org; Fri, 25 Jan 2013 00:49:27 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by magus.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1TyXTx-0004T5-H2 for pgsql-bugs@postgresql.org; Fri, 25 Jan 2013 00:49:27 +0000 Received: from sss2.sss.pgh.pa.us (tgl@localhost [127.0.0.1]) by sss.pgh.pa.us (8.14.5/8.14.5) with ESMTP id r0P0nKPx029636; Thu, 24 Jan 2013 19:49:21 -0500 (EST) From: Tom Lane To: Mark Kirkwood cc: 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) In-reply-to: <5101D43F.90102@catalyst.net.nz> 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> <5101D43F.90102@catalyst.net.nz> Comments: In-reply-to Mark Kirkwood message dated "Fri, 25 Jan 2013 13:39:27 +1300" Date: Thu, 24 Jan 2013 19:49:20 -0500 Message-ID: <29635.1359074960@sss.pgh.pa.us> 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 Mark Kirkwood writes: > On 25/01/13 13:06, Tom Lane wrote: >> 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. > It looks like Joe has run into something similar with libR stealing > SIGINT, he reinstalls it. A simple patch along the same lines for > SIGUSR1 (attached) seems to fix the issue. This certainly is not good enough, for either signal. What happens if the signal arrives while libR still has control? These things being asynchronous with respect to the receiving backend, we certainly can't assume that that won't happen. Why does libR think it should be messing with these handlers in the first place? 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