From: Tom Lane <tgl@sss.pgh.pa.us>
To: Michael Paquier <michael@paquier.xyz>
Cc: Alexander Lakhin <exclusion@gmail.com>
Cc: pgsql-bugs@lists.postgresql.org
Subject: Re: BUG #16801: Invalid memory access on WITH RECURSIVE with nested WITHs
Date: Wed, 24 Feb 2021 21:48:03 -0500
Message-ID: <60272.1614221283@sss.pgh.pa.us> (raw)
In-Reply-To: <YDcLzKuQJmKOZYq+@paquier.xyz>
References: <16801-393c7922143eaa4d@postgresql.org>
<X/FTDocQD3D7+aIJ@paquier.xyz>
<eb358b3f-8272-d0a9-6645-983e7ad2bec4@gmail.com>
<YDXeLBqjDeQQPGoO@paquier.xyz>
<4057243.1614179963@sss.pgh.pa.us>
<31724.1614213386@sss.pgh.pa.us>
<YDb9wdB1GUkr+NAD@paquier.xyz>
<51877.1614219226@sss.pgh.pa.us>
<YDcLzKuQJmKOZYq+@paquier.xyz>
Michael Paquier <michael@paquier.xyz> writes:
> On Wed, Feb 24, 2021 at 09:13:46PM -0500, Tom Lane wrote:
>> Hmm, I don't see any failure from that...
> Perhaps because you are not compiling with -DUSE_VALGRIND which is why
> this fails with only two nested levels?
Ah, right, because that enables DEBUG_LIST_MEMORY_USAGE. I did run
it under valgrind but I hadn't bothered to recompile.
Anyway, I think we're better off with a test that doesn't require
DEBUG_LIST_MEMORY_USAGE, or preferably not even CLOBBER_FREED_MEMORY,
to show the problem. The test I showed misbehaves even in non-debug
builds, because it actually depends on what's in the innerwiths lists.
regards, tom lane
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 using the --to and --cc options:
reply via email
To: pgsql-bugs@postgresql.org
Cc: tgl@sss.pgh.pa.us, michael@paquier.xyz, exclusion@gmail.com, pgsql-bugs@lists.postgresql.org
Subject: Re: BUG #16801: Invalid memory access on WITH RECURSIVE with nested WITHs
In-Reply-To: <60272.1614221283@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