Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1iGQ6R-0005Tl-DY for pgsql-bugs@arkaria.postgresql.org; Fri, 04 Oct 2019 16:06:47 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1iGQ6Q-0006uw-2s for pgsql-bugs@arkaria.postgresql.org; Fri, 04 Oct 2019 16:06:46 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1iGQ6P-0006uo-R2 for pgsql-bugs@lists.postgresql.org; Fri, 04 Oct 2019 16:06:45 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1iGQ6N-0000im-LE for pgsql-bugs@postgresql.org; Fri, 04 Oct 2019 16:06:45 +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 x94G6YsX014791; Fri, 4 Oct 2019 12:06:34 -0400 From: Tom Lane To: Merlin Moncure cc: Albe Laurenz , Frank van Vugt , pgsql-bugs Subject: Re: [BUGS] bug or simply not enough stack space? In-reply-to: References: <200907161545.20338.ftm.van.vugt@foxi.nl> <200907171110.58371.ftm.van.vugt@foxi.nl> <2759.1247847476@sss.pgh.pa.us> <200907172006.53760.ftm.van.vugt@foxi.nl> <12939.1247944666@sss.pgh.pa.us> Comments: In-reply-to Merlin Moncure message dated "Fri, 04 Oct 2019 09:12:38 -0500" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <14789.1570205194.1@sss.pgh.pa.us> Date: Fri, 04 Oct 2019 12:06:34 -0400 Message-ID: <14790.1570205194@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk Merlin Moncure writes: > Reviving this ancient thread. I saw "did not find subXID" errors, in > 9.6.12. Here is what happened. > 2019-10-03 19:58:37 CDT [10.22.236.83: rms@cds2] > [10.22.236.83(54943)]: WARNING: did not find subXID 384134 in MyProc > 2019-10-03 19:58:37 CDT [10.22.236.83: rms@cds2] > [10.22.236.83(54943)]: CONTEXT: PL/pgSQL function > loadhistorydatafromysm_testing2() line 99 during exception cleanup > 2019-10-03 19:58:37 CDT [10.22.236.83: rms@cds2] > [10.22.236.83(54943)]: LOG: could not send data to client: Broken > pipe > 2019-10-03 19:58:37 CDT [10.22.236.83: rms@cds2] > [10.22.236.83(54943)]: CONTEXT: PL/pgSQL function > loadhistorydatafromysm_testing2() line 99 during exception cleanup > 2019-10-03 19:58:37 CDT [10.22.236.83: rms@cds2] > [10.22.236.83(54943)]: STATEMENT: select > LoadHistoryDataFromYSM_testing2(); > 2019-10-03 19:58:37 CDT [10.22.236.83: rms@cds2] > [10.22.236.83(54943)]: ERROR: failed to re-find shared lock object > 2019-10-03 19:58:37 CDT [10.22.236.83: rms@cds2] > [10.22.236.83(54943)]: CONTEXT: PL/pgSQL function > loadhistorydatafromysm_testing2() line 99 during exception cleanup > 2019-10-03 19:58:37 CDT [10.22.236.83: rms@cds2] > [10.22.236.83(54943)]: STATEMENT: select > LoadHistoryDataFromYSM_testing2(); [ and then we get into recursive error-during-error-cleanup failures ] Yeah, something has left stuff in a bad state here. > *) "loadhistorydatafromysm_testing2()" is using pl/sh, which is a > known source of weird (but rare) instability issues (I'm assuming this > is underlying cause of issue) Hm. Yeah, I'd be way more interested if this could be reproduced without pl/sh. > I can't help but wonder if we have some kind of obscure issue that is > related to C extension problems; just throwing a data point on the > table. Well, there's nothing too obscure about the rule that error cleanup needs to avoid doing anything that might cause another error, for fear of causing infinite recursion. I suspect that the underlying issue is that pl/sh is violating that rule somewhere. The other thread you point to suggests that maybe oracle_fdw also used to do that, and fixed it. regards, tom lane