pg.ddx.io  pgsql-committers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Peter Geoghegan <pg@bowt.ie>
To: pgsql-committers@lists.postgresql.org
Subject: pgsql: Avoid harmless Valgrind no-buffer-pin errors.
Date: Sun, 19 Jul 2020 23:13:19 +0000
Message-ID: <E1jxIUh-0000cO-5F@gemulon.postgresql.org> (raw)

Avoid harmless Valgrind no-buffer-pin errors.

Valgrind builds with assertions enabled sometimes perform a
theoretically unsafe page access inside an assertion in
heapam_tuple_lock().  This happened when the eval-plan-qual isolation
test ran one of the permutations added by commit a2418f9e238.

Avoid complaints from Valgrind by moving the assertion ever so slightly.
This is minor cleanup for commit 1e0dfd16, which added Valgrind buffer
access instrumentation.

No backpatch, since this only happens within an assertion, and seems
very unlikely to cause any real problems even with assert-enabled
builds.

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/a766d6ca22ac7c233e69c896ae0c5f19de916db4

Modified Files
--------------
src/backend/access/heap/heapam_handler.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)



Message-ID: <E1jxIUh-0000cO-5F@gemulon.postgresql.org>
Permalink:  ../E1jxIUh-0000cO-5F@gemulon.postgresql.org/
Also on:    postgresql.org/message-id/E1jxIUh-0000cO-5F@gemulon.postgresql.org

 · 

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-committers@postgresql.org
  Cc: pg@bowt.ie
  Subject: Re: pgsql: Avoid harmless Valgrind no-buffer-pin errors.
  In-Reply-To: <E1jxIUh-0000cO-5F@gemulon.postgresql.org>
  References: <E1jxIUh-0000cO-5F@gemulon.postgresql.org>

* 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