<div dir="ltr">Hi Halfdan, <br><div class="gmail_extra"><br><div class="gmail_quote">On Mon, Apr 10, 2017 at 4:22 PM, Halfdan Ingvarsson via cfe-dev <span dir="ltr"><<a href="mailto:cfe-dev@lists.llvm.org" target="_blank">cfe-dev@lists.llvm.org</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Hello<div><br></div><div>What is the feasibility of getting -fsanitizer=memory to work on OSX? </div></div></blockquote><div><br></div><div>If you want to make it work on small self-contained tests, it should be a matter of enabling the msan flags for OSX and maybe tweaking the constants for the shadow memory location. </div><div>For anything real, it's almost impossible w/o assistance from Apple (CC-ed two Apple folks)</div><div>Unlike asan/tsan/ubsan, msan must see all memory accesses (at least, all writes) in the process, otherwise there will be tons of false positives. </div><div>This means that all libraries linked to the binary need to be instrumented with msan. </div><div>(On Linux the only exception is glibc, for which msan caries a ton of interceptors)</div><div><br></div><div>--kcc</div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div><br></div><div>I'd be more than happy to look into doing the work and providing a patch, provided that it's actually doable in the first place. Who would be the best person to speak to about this?</div><div><br></div><div>All the best,</div><div><div><div class="m_-1499085883485081020gmail_signature" data-smartmail="gmail_signature"><br> - ½<br></div></div><div class="m_-1499085883485081020gmail_signature" data-smartmail="gmail_signature"><br></div>
</div></div>
<br>______________________________<wbr>_________________<br>
cfe-dev mailing list<br>
<a href="mailto:cfe-dev@lists.llvm.org">cfe-dev@lists.llvm.org</a><br>
<a href="http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-dev" rel="noreferrer" target="_blank">http://lists.llvm.org/cgi-bin/<wbr>mailman/listinfo/cfe-dev</a><br>
<br></blockquote></div><br></div></div>