Skip to content

gh-148286: Fail on new UB in CI - #148168

Merged
StanFromIreland merged 11 commits into
python:mainfrom
StanFromIreland:san-ubsan
Apr 9, 2026
Merged

gh-148286: Fail on new UB in CI#148168
StanFromIreland merged 11 commits into
python:mainfrom
StanFromIreland:san-ubsan

Conversation

@StanFromIreland

@StanFromIrelandStanFromIreland commented Apr 6, 2026

Copy link
Copy Markdown
Member

Trying to debug a bit, it should be detecting #148166 (and also screaming about it), but it isn't. Mirroring what we do for the TSan job.

Just chucked everything in suppressions for now, they should be reviewed as it may have actual bugs.

@StanFromIrelandStanFromIreland changed the title Fail on new UBFail on new UB in CIApr 6, 2026
@StanFromIreland

Copy link
Copy Markdown
MemberAuthor

I've never been so happy to see the CI fail :-)

[3](https://github.com/python/cpython/actions/runs/24037637122/job/70101135069?pr=148168#step:11:144)
==> /home/runner/work/cpython/cpython/san_log.26255 <==
Modules/binascii.c:1243:42: runtime error: left shift of 129 by 24 places cannot be represented in type 'int'
SUMMARY: UndefinedBehaviorSanitizer: undefined-behavior Modules/binascii.c:1243:42

@thesamesam

Copy link
Copy Markdown
Contributor

We got there in the end: #111758 (comment) :)

I'd assumed that #135578 or #136820 included that but I didn't check.

Comment thread.github/workflows/reusable-san.yml
Comment thread.github/workflows/reusable-san.yml
@StanFromIreland
StanFromIreland marked this pull request as ready for review April 6, 2026 17:19
@encukou

Copy link
Copy Markdown
Member

LGTM, thank you!
Consider opening an issue, which we could use to track the fixes too.

@StanFromIrelandStanFromIreland changed the title Fail on new UB in CIgh-148286: Fail on new UB in CIApr 9, 2026
@StanFromIreland

Copy link
Copy Markdown
MemberAuthor

Created #148286.

@StanFromIreland
StanFromIreland merged commit ade914b into python:mainApr 9, 2026
48 checks passed
@StanFromIreland
StanFromIreland deleted the san-ubsan branch April 9, 2026 09:30
@StanFromIreland

Copy link
Copy Markdown
MemberAuthor

Thanks for the reviews!

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

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants

@StanFromIreland@thesamesam@encukou@vstinner