Re: Make memory checking / sanitizing infrastructure better - Mailing list pgsql-hackers

From Jacob Champion
Subject Re: Make memory checking / sanitizing infrastructure better
Date
Msg-id CAOYmi+nZ3kgQU81EanGZf79HUgOqFjjqhyEr=w9SrLhaNk184w@mail.gmail.com
Whole thread
In response to Make memory checking / sanitizing infrastructure better  (Andres Freund <andres@anarazel.de>)
List pgsql-hackers
On Thu, May 28, 2026 at 9:07 AM Andres Freund <andres@anarazel.de> wrote:
> 4) For this I prototyped making the valgrind annotations more generic and
>    using the address sanitizer interface to mark memory as poisoned /
>    unpoisoned.  That doesn't provide quite all the checking that valgrind can
>    do (it doesn't track uninitialized memory), but it's considerably better
>    than our memory context checking, and *much* *much* faster than valgrind.

Neat! I was recently hoping for this in [1].

> I have prototype patches for 1-4, but wanted to hear about whether such
> changes sound sane to others, before spending time to polish all of this up.

They all sound like nice improvements to me. I like the idea in (5), too.

--Jacob

[1] https://postgr.es/m/CAOYmi%2BnCg5upBVOo_UCSjMfO%3DYMkZXcSEsgaADKXqerr5wahZQ%40mail.gmail.com



pgsql-hackers by date:

Previous
From: Jacob Champion
Date:
Subject: Re: A few message wording/formatting cleanup patches
Next
From: Álvaro Herrera
Date:
Subject: Re: Heads Up: cirrus-ci is shutting down June 1st