[PATCH] Optional support for dynamic Asan runtime
tetra2005 at gmail.com
Thu Mar 13 09:35:28 PDT 2014
Added support for
* detection of static/dynamic rt conflicts
* detection of dlopen
* make sure that libasan is preloaded
(all features have unit tests).
One huge problem is that currently Asan always starts in active mode because dlsym's in AsanCheckIncompatibleRT call dlerror, this calls malloc and malloc activates Asan. I'm not sure how to address the issue (I tried the calloc-style hack but this would cause errors when dlerror-allocated regions are freed).
As before, I haven't really checked anything besides Linux x64.
I decided to leave dynamic runtimes for UBSan, etc. for future. IMHO this would be a trivial piece of work anyway.
Hi kcc, eugenis, samsonov,
CHANGE SINCE LAST DIFF
-------------- next part --------------
A non-text attachment was scrubbed...
Size: 23464 bytes
Desc: not available
More information about the llvm-commits