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

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
Member

@pablogsal pablogsal merged commit 31aa0db into python:main Jun 10, 2021
@pablogsal pablogsal added needs backport to 3.9 only security fixes needs backport to 3.10 only security fixes labels Jun 10, 2021
@miss-islington
Copy link
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
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

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

@bedevere-bot bedevere-bot removed the needs backport to 3.9 only security fixes label Jun 10, 2021
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

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