-
-
Notifications
You must be signed in to change notification settings - Fork 30.9k
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
bpo-44363: Get test_capi passing with address sanitizer #26639
Conversation
There was a problem hiding this comment.
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
Thanks @markshannon, this looks great. Can you also open a PR here: To add again |
Thanks @markshannon for the PR, and @pablogsal for merging it 🌮🎉.. I'm working now to backport this PR to: 3.9. |
Thanks @markshannon for the PR, and @pablogsal for merging it 🌮🎉.. I'm working now to backport this PR to: 3.10. |
(cherry picked from commit 31aa0db) Co-authored-by: Mark Shannon <mark@hotpy.org>
GH-26641 is a backport of this pull request to the 3.9 branch. |
(cherry picked from commit 31aa0db) Co-authored-by: Mark Shannon <mark@hotpy.org>
GH-26642 is a backport of this pull request to the 3.10 branch. |
I think this should work with clang, but I've only tested with gcc.
https://bugs.python.org/issue44363