This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

classification
Title: Support AddressSanitizer in Windows build
Type: enhancement Stage:
Components: Build, Windows Versions:
process
Status: open Resolution:
Dependencies: Superseder:
Assigned To: Nosy List: anthonypjshaw, paul.moore, steve.dower, tim.golden, zach.ware
Priority: normal Keywords:

Created on 2021-12-22 00:39 by anthonypjshaw, last changed 2022-04-11 14:59 by admin.

Messages (2)
msg409006 - (view) Author: anthony shaw (anthonypjshaw) * (Python triager) Date: 2021-12-22 00:39
I'd like to compile my C-extensions with ASAN for testing in Windows, but they cannot be loaded as the host python.exe process needs to be compiled with ASAN. 

https://docs.microsoft.com/en-us/cpp/sanitizers/asan?view=msvc-170#ide-msbuild

The EnableASAN flag would be a setting in vcxproj files within the PCBuild solution, and a flag in the build.bat to enable it.
msg409014 - (view) Author: anthony shaw (anthonypjshaw) * (Python triager) Date: 2021-12-22 06:24
After some experimentation, this can be done if you enable ASAN in all projects except python3dll.vcxproj

I think it would make sense (if this were supported) to have a flag in build.bat like there is for pgo

`build.bat --asan`
History
Date User Action Args
2022-04-11 14:59:53adminsetgithub: 90305
2021-12-22 06:24:08anthonypjshawsetmessages: + msg409014
2021-12-22 00:39:46anthonypjshawcreate