Author FrancescElies
Recipients FrancescElies, paul.moore, steve.dower, tim.golden, zach.ware
Date 2021-11-30.07:12:30
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1638256350.41.0.274792089856.issue45842@roundup.psfhosted.org>
In-reply-to
Content
I am closing this one, bad-free is in this case a false positive.

Starting python and loading a dll which was linked with asan is incorrect.

One should asan-rt as earyly as possible, in order to do that in linux one should use LD_PRELOAD but in windows it's a bit more convoluted.

We made an executable which loads asan and instructed the dll DLLs to use the runtime linked into the main executable to avoid shadow memory collisions.

In the official docs https://clang.llvm.org/docs/AddressSanitizer.html I could not find much about asan with clang under windows. 

Despite the library file names where not the same as in llvm master and that the blogpost has msvc in mind instead of clang this blog https://devblogs.microsoft.com/cppblog/addresssanitizer-asan-for-windows-with-msvc/#contributions-to-asan-runtime pointed us in the right direction.
History
Date User Action Args
2021-11-30 07:12:30FrancescEliessetrecipients: + FrancescElies, paul.moore, tim.golden, zach.ware, steve.dower
2021-11-30 07:12:30FrancescEliessetmessageid: <1638256350.41.0.274792089856.issue45842@roundup.psfhosted.org>
2021-11-30 07:12:30FrancescElieslinkissue45842 messages
2021-11-30 07:12:30FrancescEliescreate