Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1UQ3by-0005bf-EX for pgsql-general@arkaria.postgresql.org; Wed, 10 Apr 2013 22:35:26 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.72) (envelope-from ) id 1UQ3bx-0007B9-VS for pgsql-general@arkaria.postgresql.org; Wed, 10 Apr 2013 22:35:26 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1UQ3bx-0007B4-3V for pgsql-general@postgresql.org; Wed, 10 Apr 2013 22:35:25 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by magus.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1UQ3bt-0007p7-Nb for pgsql-general@postgresql.org; Wed, 10 Apr 2013 22:35:24 +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 r3AMZIN0012386; Wed, 10 Apr 2013 18:35:18 -0400 (EDT) From: Tom Lane To: Andres Freund cc: Joshua Berry , PostgreSQL - General Subject: Re: Segmentation fault with core dump In-reply-to: <20130410222233.GB7547@awork2.anarazel.de> References: <20130410214929.GA7547@awork2.anarazel.de> <20130410222233.GB7547@awork2.anarazel.de> Comments: In-reply-to Andres Freund message dated "Thu, 11 Apr 2013 00:22:33 +0200" Date: Wed, 10 Apr 2013 18:35:18 -0400 Message-ID: <12385.1365633318@sss.pgh.pa.us> X-Pg-Spam-Score: -4.3 (----) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-general Precedence: bulk Sender: pgsql-general-owner@postgresql.org Andres Freund writes: > Ok, so while we have a valid resource owner up to here, portal->resonwer > is NULL. Yeah, that's what I'm guessing. Given the exposed reference to a cursor WITH HOLD, it seems likely that the reason the portal has no resowner is that PreCommit_Portals() got rid of it when the cursor was held. However, if that were the explanation, it's not clear how come this isn't falling over all the time for everybody who uses holdable cursors. Any cache flush happening just before fetching from a holdable cursor ought to do it ... (Wanders away wondering just how much the regression tests exercise holdable cursors.) regards, tom lane -- Sent via pgsql-general mailing list (pgsql-general@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-general