www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.learn - Using Address Sanitizer in LDC

reply =?UTF-8?B?Tm9yZGzDtnc=?= <per.nordlow gmail.com> writes:
Can I use address sanitizer (ASan) in LDC 1.8 to find use of 
uninitialized memory in, in my case, a set of containers, 
currently

https://github.com/nordlow/phobos-next/blob/master/src/open_hashmap_or_hashset.d

If so, what arguments should I feed to ldc2's

   -fsanitize=<checks>
   -fsanitize-blacklist=<file>
   -fsanitize-coverage=<type>

on the command-line and in my dub.sdl

?
Mar 13 2018
parent =?UTF-8?B?Tm9yZGzDtnc=?= <per.nordlow gmail.com> writes:
On Tuesday, 13 March 2018 at 15:12:02 UTC, Nordlöw wrote:
 Can I use address sanitizer (ASan) in LDC 1.8 to find use of 
 uninitialized memory in, in my case, a set of containers, 
 currently

 https://github.com/nordlow/phobos-next/blob/master/src/open_hashmap_or_hashset.d

 If so, what arguments should I feed to ldc2's

   -fsanitize=<checks>
   -fsanitize-blacklist=<file>
   -fsanitize-coverage=<type>

 on the command-line and in my dub.sdl

 ?
Ahh, found it at http://johanengelen.github.io/ldc/2017/12/25/LDC-and-AddressSanitizer.html
Mar 13 2018