Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

MinGW-w64's gcc and Address Sanitizer

Installing MinGW-w64 5.1 I find -fsanitize=address is available. It compiles fine, and when it starts linking I get thousands of:

undefined reference to '__asan_report_load1'
undefined reference to '__asan_report_load4'

I googled and found libasan referenced various places, but also comments that when you include -fsanitize=address it automatically includes that library for linking. I searched the MinGW-w64 5.1 install dirctory for "asan" and it was not found anywhere.

What do I need to add on to use address sanitizing features in MinGW-w64? Thank you.

like image 410
Rick C. Hodgin Avatar asked Jun 30 '15 16:06

Rick C. Hodgin


1 Answers

I've looked quickly into release notes for 4.8, 4.9 and 5.1 - ASAN is not available for Windows

like image 75
Severin Pappadeux Avatar answered Oct 08 '22 14:10

Severin Pappadeux