Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

"Address Sanitizer in Visual C++" by Shao Voon Wong

41 views
Skip to first unread message

Lynn McGuire

unread,
Aug 10, 2020, 5:32:44 PM8/10/20
to
"Address Sanitizer in Visual C++" by Shao Voon Wong

https://www.codeproject.com/Articles/5269130/Address-Sanitizer-in-Visual-Cplusplus

"Use Address Sanitizer in Visual C++ to detect memory address problems."

"In this blog, I'll demonstrate how to utilize Address Sanitizer (ASan)
in Visual C++ to check for memory problems. MSVC team ported the Clang
ASan to the Windows platform in 2019 and since it is still at an
experimental stage, be sure to expect kinks to be ironed out."

I wonder how much it slows down your software.

Lynn

rick.c...@gmail.com

unread,
Aug 10, 2020, 7:04:48 PM8/10/20
to
Thank you, Lynn, for posting this.

+1

There are several videos from 2012-2017 by Kostya Serebryany:

https://www.youtube.com/watch?v=Q2C2lP8_tNE

He discusses the hit, but it's been a while. I don't remember what
it was. He does mention it's tolerable compared toother tools like
valgrind.

--
Rick C. Hodgin

Chris M. Thomasson

unread,
Aug 11, 2020, 1:09:40 AM8/11/20
to
Have you every used Relacy?

Lynn McGuire

unread,
Aug 11, 2020, 1:44:22 PM8/11/20
to
No. The only memory checking tool that I have used in C / C++ was
Purify on Sun Workstations back in the 1990s. It dragged our software
down horribly and made our software unusable with it on. But it helped
immensely.

Thanks,
Lynn

Bonita Montero

unread,
Aug 11, 2020, 1:49:03 PM8/11/20
to
>> https://www.codeproject.com/Articles/5269130/Address-Sanitizer-in-Visual-Cplusplus
>> "Use Address Sanitizer in Visual C++ to detect memory address problems."
>> "In this blog, I'll demonstrate how to utilize Address Sanitizer
>> (ASan) in Visual C++ to check for memory problems. MSVC team ported
>> the Clang ASan to the Windows platform in 2019 and since it is still
>> at an experimental stage, be sure to expect kinks to be ironed out."
>> I wonder how much it slows down your software.

> Have you every used Relacy?

Relacy isn't the same as the above Address Sanitizer.

Chris M. Thomasson

unread,
Aug 11, 2020, 4:07:40 PM8/11/20
to
I know. Also, fwiw, I am friends with the guy who created both of them.
Relacy and Address Sanitizer. We had the best conversations way back on
comp.programming.threads. Back when it was not a spam infested
nightmare. Thanks to animer... ramine the plague!

Chris M. Thomasson

unread,
Aug 11, 2020, 7:28:12 PM8/11/20
to
I know he is on the development team over at Google.

Richard

unread,
Aug 12, 2020, 11:50:33 AM8/12/20
to
[Please do not mail me a copy of your followup]

Lynn McGuire <lynnmc...@gmail.com> spake the secret code
<rguldb$k38$1...@dont-email.me> thusly:

>No. The only memory checking tool that I have used in C / C++ was
>Purify on Sun Workstations back in the 1990s. It dragged our software
>down horribly and made our software unusable with it on. But it helped
>immensely.

Purify worked by instrumenting every load and store instruction
from/to memory. I believe modern approaches use data flow analysis to
minimize the amount of instrumentation applied in order to ameliorate
the affect on performance.
--
"The Direct3D Graphics Pipeline" free book <http://tinyurl.com/d3d-pipeline>
The Terminals Wiki <http://terminals-wiki.org>
The Computer Graphics Museum <http://computergraphicsmuseum.org>
Legalize Adulthood! (my blog) <http://legalizeadulthood.wordpress.com>
0 new messages