pg.ddx.io  pgsql-bugs@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: Merlin Moncure <mmoncure@gmail.com>
Cc: Albe Laurenz <all@adv.magwien.gv.at>
Cc: Frank van Vugt <ftm.van.vugt@foxi.nl>
Cc: pgsql-bugs <pgsql-bugs@postgresql.org>
Subject: Re: [BUGS] bug or simply not enough stack space?
Date: Fri, 04 Oct 2019 12:06:34 -0400
Message-ID: <14790.1570205194@sss.pgh.pa.us> (raw)
In-Reply-To: <CAHyXU0yofd1JJs-B3n7qW7AjfjDuHm4VPuHXXqUMQ02E0UOP4A@mail.gmail.com>
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>
	<CAHyXU0yofd1JJs-B3n7qW7AjfjDuHm4VPuHXXqUMQ02E0UOP4A@mail.gmail.com>

Merlin Moncure <mmoncure@gmail.com> 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





view thread (12+ messages)

Message-ID: <14790.1570205194@sss.pgh.pa.us>
Permalink:  ../14790.1570205194@sss.pgh.pa.us/
Also on:    postgresql.org/message-id/14790.1570205194@sss.pgh.pa.us

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-bugs@postgresql.org
  Cc: tgl@sss.pgh.pa.us, mmoncure@gmail.com, all@adv.magwien.gv.at, ftm.van.vugt@foxi.nl
  Subject: Re: [BUGS] bug or simply not enough stack space?
  In-Reply-To: <14790.1570205194@sss.pgh.pa.us>
  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> <CAHyXU0yofd1JJs-B3n7qW7AjfjDuHm4VPuHXXqUMQ02E0UOP4A@mail.gmail.com> <14790.1570205194@sss.pgh.pa.us>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox