Skip to content

Release cache entries in asan builds#9495

Open
akuzm wants to merge 1 commit intotimescale:mainfrom
akuzm:cache-release
Open

Release cache entries in asan builds#9495
akuzm wants to merge 1 commit intotimescale:mainfrom
akuzm:cache-release

Conversation

@akuzm
Copy link
Copy Markdown
Member

@akuzm akuzm commented Apr 2, 2026

This will help catch a potential use-after-free when a cache entry is used after unpinning it. In normal builds, it is not released eagerly, so the Address Sanitizer cannot detect it as a use after free.

Helpful for finding things like #9487 and #9486

This will help catch a potential use-after-free when a cache entry is
used after unpinning it. In normal builds, it is not released eagerly,
so the Address Sanitizer cannot detect it as a use after free.
@github-actions
Copy link
Copy Markdown

github-actions bot commented Apr 2, 2026

@kpan2034, @melihmutlu: please review this pull request.

Powered by pull-review

@codecov
Copy link
Copy Markdown

codecov bot commented Apr 2, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.

📢 Thoughts on this report? Let us know!

@svenklemm
Copy link
Copy Markdown
Member

There is also CLOBBER_FREED_MEMORY on postgres side to make finding use after free easier

@akuzm
Copy link
Copy Markdown
Member Author

akuzm commented Apr 2, 2026

There is also CLOBBER_FREED_MEMORY on postgres side to make finding use after free easier

That one is included when you enable the assertions.

With these new flags, the sanitizer build now takes more than two hours. Maybe I'll only enable it on a single scheduled run on one config.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants