Skip to content

bpo-44363: Get test_capi passing with address sanitizer - #26639

Merged
pablogsal merged 2 commits into
python:mainfrom
faster-cpython:testable-with-address-sanitizer
Jun 10, 2021
Merged

bpo-44363: Get test_capi passing with address sanitizer#26639
pablogsal merged 2 commits into
python:mainfrom
faster-cpython:testable-with-address-sanitizer

Conversation

@markshannon

@markshannon markshannon commented Jun 10, 2021

Copy link
Copy Markdown
Member

I think this should work with clang, but I've only tested with gcc.

https://bugs.python.org/issue44363

@erlend-aasland erlend-aasland left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Works with --with-address-sanitizer with Clang on my MacBook Pro

$ clang --version
Apple clang version 12.0.5 (clang-1205.0.22.9)
Target: x86_64-apple-darwin20.5.0
Thread model: posix
InstalledDir: /Library/Developer/CommandLineTools/usr/bin
$ uname -a
Darwin mbpro.local 20.5.0 Darwin Kernel Version 20.5.0: Sat May  8 05:10:33 PDT 2021; root:xnu-7195.121.3~9/RELEASE_X86_64 x86_64
$ ./python.exe -m test test_capi
0:00:00 load avg: 2.16 Run tests sequentially
0:00:00 load avg: 2.16 [1/1] test_capi

== Tests result: SUCCESS ==

1 test OK.

Total duration: 14.5 sec
Tests result: SUCCESS

@pablogsal

Copy link
Copy Markdown
Member

Thanks @markshannon, this looks great. Can you also open a PR here:

https://github.com/python/buildmaster-config/blob/a1e1bd89d034338993b42a24bef92e815b005f91/master/custom/factories.py#L233

To add again test_capi ?

@miss-islington

Copy link
Copy Markdown
Contributor

Thanks @markshannon for the PR, and @pablogsal for merging it 🌮🎉.. I'm working now to backport this PR to: 3.9.
🐍🍒⛏🤖

@miss-islington

Copy link
Copy Markdown
Contributor

Thanks @markshannon for the PR, and @pablogsal for merging it 🌮🎉.. I'm working now to backport this PR to: 3.10.
🐍🍒⛏🤖

miss-islington pushed a commit to miss-islington/cpython that referenced this pull request Jun 10, 2021
(cherry picked from commit 31aa0db)

Co-authored-by: Mark Shannon <mark@hotpy.org>
@bedevere-bot

Copy link
Copy Markdown

GH-26641 is a backport of this pull request to the 3.9 branch.

miss-islington pushed a commit to miss-islington/cpython that referenced this pull request Jun 10, 2021
(cherry picked from commit 31aa0db)

Co-authored-by: Mark Shannon <mark@hotpy.org>
@bedevere-bot

Copy link
Copy Markdown

GH-26642 is a backport of this pull request to the 3.10 branch.

@bedevere-bot bedevere-bot removed the needs backport to 3.10 only security fixes label Jun 10, 2021
miss-islington added a commit that referenced this pull request Jun 10, 2021
(cherry picked from commit 31aa0db)

Co-authored-by: Mark Shannon <mark@hotpy.org>
miss-islington added a commit that referenced this pull request Jun 10, 2021
(cherry picked from commit 31aa0db)

Co-authored-by: Mark Shannon <mark@hotpy.org>
@markshannon
markshannon deleted the testable-with-address-sanitizer branch January 6, 2022 15:27
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.

6 participants