Closed ramosian-glider closed 9 years ago
Related discussion at Chromium (which uses both): http://code.google.com/p/chromium/issues/detail?id=99879
Pros and cons.
mach_override:
+ already works
+ same approach will allow to handle syscalls
- may need to extend manually for new functions
- makes code pages unshareable
__interpose:
+ easy to add new functions
- this is LD_PRELOAD essentially (need to check if we can do it in the binary)
- could be problematic to factor the wrappers into a separate .dylib (otherwise the
whole runtime will be preloaded)
Reported by ramosian.glider
on 2012-04-13 15:37:40
Status update: currently (LLVM r166922) we build and install the dynamic version of
ASan runtime on OS X, although the -faddress-sanitizer flag still links the program
with the static one. The dynamic runtime allows us to run Chrome tests and Chrome itself
on OS X 10.6--10.8. It's also possible to run some Chrome tests on the iOS simulator,
but it's unclear yet whether this approach works with real iOS devices.
Reported by ramosian.glider
on 2012-10-29 11:41:00
Reported by ramosian.glider
on 2012-10-29 11:50:20
Reported by glider@chromium.org
on 2013-01-17 12:42:40
http://llvm-reviews.chandlerc.com/D216 and http://llvm-reviews.chandlerc.com/D223 are
the two changelists to enable the new dynamic runtime.
Reported by ramosian.glider
on 2013-01-18 16:57:49
The dynamic runtime is now the default one. ASan doesn't use mach_override anymore.
Reported by ramosian.glider
on 2013-02-07 16:00:52
Fixed
Adding Project:AddressSanitizer as part of GitHub migration.
Reported by ramosian.glider
on 2015-07-30 09:12:59
Originally reported on Google Code with ID 64
Reported by
ramosian.glider
on 2012-04-13 15:16:56