Skip to content

[ci] Add clang23 aarch64 valgrind suppressions - #181

Open
aaronj0 wants to merge 2 commits into
compiler-research:mainfrom
aaronj0:ci-clang23-arm-valgrind
Open

aaronj0 wants to merge 2 commits into
compiler-research:mainfrom
aaronj0:ci-clang23-arm-valgrind

Conversation

@aaronj0

@aaronj0 aaronj0 commented Nov 22, 2026

Copy link
Copy Markdown
Collaborator

No description provided.

@aaronj0 aaronj0 added test-nightly build-wheels Trigger build and test of all Wheels workflows. labels Nov 22, 2026
guitargeek
guitargeek previously approved these changes Dec 1, 2026

@guitargeek guitargeek left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

@vgvassilev

vgvassilev commented Dec 3, 2026 •

Copy link
Copy Markdown
Contributor

The last release of valgrind should have these things fixed (https://bugs.kde.org/show_bug.cgi?id=523434). Do we still see failures?

ref: llvm/llvm-project#194147

@ronctl
ronctl force-pushed the ci-clang23-arm-valgrind branch from c01d25c to fbb4258 Compare December 3, 2026 14:10
@aaronj0

aaronj0 commented Dec 3, 2026

Copy link
Copy Markdown
Collaborator Author

The last release of valgrind should have these things fixed (https://bugs.kde.org/show_bug.cgi?id=523434). Do we still see failures?

ref: llvm/llvm-project#194147

Here is the current summary (contains AI exerpts from my agent but not entirely) :

Two distinct false-positive classes, neither due to codepaths in cppjit (can standalone reproduce with vg + python on arm):

  • Class A — #194147 clang bitfield idiom (4 contexts). This is valgrind bug 523434, which 3.28.0 fixes — but only under --expensive-definedness-checks=auto's architecture-dependent instrumentation, which is on for x86/amd64 and off for aarch64. That's why the x86 vg cells went green and arm didn't. The cell already runs 3.28.0, so no version bump helps.

  • Class B — glibc wcsncpy/strncmp/strnlen (7 contexts, the unsuppressed ones). I empirically tested --expensive-definedness-checks=yes on real aarch64 hardware and both report all contexts. These are glibc's arm64 word-at-a-time string loads reading past the string end, a different mechanism than the unsigned-compare idiom the flag governs. They reproduce with cppjit absent and don't appear under apt valgrind 3.22.

The new valgrind genuinely fixes it on x86 but not arm, and I confirmed no valgrind setting clears the arm contexts. Suppression is the resolution, which matches using CPython's valgrind-python.supp: I built the class-B blocks in that file's style and cited its sibling wcscmp_false_positive precedent (CPython's file itself doesn't contain our exact frames, since upstream only runs valgrind on x86). Note we only run valgrind on arm in the nightlies and not in regular workflows.

@vgvassilev

Copy link
Copy Markdown
Contributor

Ok, I will take care of it.

This branch has not been deployed

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

Labels

build-wheels Trigger build and test of all Wheels workflows. test-nightly

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants