Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1VqVvt-0005df-Fz for pgsql-bugs@arkaria.postgresql.org; Tue, 10 Dec 2013 22:37:37 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.80) (envelope-from ) id 1VqVvt-0004dO-0P for pgsql-bugs@arkaria.postgresql.org; Tue, 10 Dec 2013 22:37:37 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1VqVvs-0004dH-28 for pgsql-bugs@postgresql.org; Tue, 10 Dec 2013 22:37:36 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by magus.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1VqVvp-00044h-TW for pgsql-bugs@postgresql.org; Tue, 10 Dec 2013 22:37:35 +0000 Received: from sss1.sss.pgh.pa.us (localhost [127.0.0.1]) by sss.pgh.pa.us (8.14.4/8.14.4) with ESMTP id rBAMalr4011348; Tue, 10 Dec 2013 17:36:48 -0500 From: Tom Lane To: Sergey Konoplev cc: Alvaro Herrera , pgsql-bugs , Maxim Boguk , =?KOI8-U?B?7cHL08nNIPDBzt7FzsvP?= , =?KOI8-R?B?88/Cz8zF1yD3ydTBzMnKIOHOwdTPzNjF18ne?= , =?KOI8-R?B?88naz9cg88XSx8XKIPDB18zP18ne?= , =?KOI8-U?B?7cXM2MvP19PLycog98zBxMnNydIg8dLP08zB18/XyQ==?= =?KOI8-U?B?3g==?= Subject: Re: [BUG] Segmentation fault in pfree in PLy_output_tuple_funcs In-reply-to: References: <20131210211732.GS6777@eldon.alvh.no-ip.org> Comments: In-reply-to Sergey Konoplev message dated "Tue, 10 Dec 2013 13:19:35 -0800" Date: Tue, 10 Dec 2013 17:36:47 -0500 Message-ID: <11347.1386715007@sss.pgh.pa.us> X-Pg-Spam-Score: -2.1 (--) 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 Sergey Konoplev writes: > On Tue, Dec 10, 2013 at 1:17 PM, Alvaro Herrera > wrote: >> What's the likelihood that table "cars" was being modified concurrently? > It is rather high. Probably even very high. This doesn't smell like that's an issue though ... Just eyeballing the code, I don't see how set-returning plpython functions work at all. Ever. It looks like they allocate a bunch of stuff in the SPI procedure context and expect it to still be there on the next call. Why isn't this code falling over in any assert-enabled build? 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