Currently if we want to run sanitized shared library in unsanitized executable we have to run executable with LD_PRELOAD=libasan.so which may be inconvenient for users (have to modify startup scripts, etc.). The patch implements reexecuting of the program with modified LD_PRELOAD environment variable on Linux. The same functionality is already supported for Mac Asan.
The corresponding issue link: https://code.google.com/p/address-sanitizer/issues/detail?id=330
Details
Details
Diff Detail
Diff Detail
Event Timeline
Comment Actions
OMG, this is very complex and fragile. Can we find another solution?
I'd like to see more discussion at https://code.google.com/p/address-sanitizer/issues/detail?id=330& before looking at the patch in more detail.
Comment Actions
OMG, this is very complex and fragile.
The main complexity comes from save-restore the environment which is in turn necessary so that the reexecuted program does not notice that we've changed LD_PRELOAD/ASAN_OPTIONS.
Comment Actions
Kostya, what kind of discussion do you expect in the issue tracker in particular? Do you want us to describe feature design or something?