Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Merged
merged 2 commits into from Jun 10, 2021

Conversation

markshannon
Copy link
Member

@markshannon markshannon commented Jun 10, 2021

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

https://bugs.python.org/issue44363

Copy link
Contributor

@erlend-aasland erlend-aasland left a comment

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
Member

pablogsal commented Jun 10, 2021

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 ?

@pablogsal pablogsal merged commit 31aa0db into python:main Jun 10, 2021
12 checks passed
@miss-islington
Copy link
Contributor

miss-islington commented Jun 10, 2021

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
Contributor

miss-islington commented Jun 10, 2021

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

bedevere-bot commented Jun 10, 2021

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

bedevere-bot commented Jun 10, 2021

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

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 Jan 6, 2022
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.

None yet

6 participants