Re: [BUG] FailedAssertion in SnapBuildPurgeOlderTxn
Amit Kapila <amit.kapila16@gmail.com>
From: Amit Kapila <amit.kapila16@gmail.com>
To: Andres Freund <andres@anarazel.de>
Cc: Maxim Orlov <orlovmg@gmail.com>, Postgres hackers <pgsql-hackers@lists.postgresql.org>
Date: 2022-11-22T03:04:23Z
Lists: pgsql-hackers
On Tue, Nov 22, 2022 at 2:22 AM Andres Freund <andres@anarazel.de> wrote: > > On 2022-11-21 15:47:12 +0300, Maxim Orlov wrote: > > After some investigation, I think, the problem is in the snapbuild.c > > (commit 272248a0c1b1, see [0]). We do allocate InitialRunningXacts > > array in the context of builder->context, but for the time when we call > > SnapBuildPurgeOlderTxn this context may be already free'd. Thus, > > InitialRunningXacts array become array of 2139062143 (i.e. 0x7F7F7F7F) > > values. This is not caused buildfarm to fail due to that code: > > Amit, that does indeed seem to be a problem... > I'll look into it. -- With Regards, Amit Kapila.
Commits
-
Fix uninitialized access to InitialRunningXacts during decoding.
- 898ef41bf6f4 15.2 landed
- 9f2cc1a73ccf 14.7 landed
- 4ec157c15067 13.10 landed
- aa9d916f671d 12.14 landed
- 9b788aafdc64 11.19 landed
-
Fix catalog lookup with the wrong snapshot during logical decoding.
- 272248a0c1b1 15.0 cited