-
Notifications
You must be signed in to change notification settings - Fork 50
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add support for Sanitizer tools #726
Conversation
Thanks @dongahn! Minor suggestion for the leak fix commit 965fbd9. Instead of subject It is nicer if a commit can be mostly understood (what is fixed/changed and why) from just the commit summary. |
Thanks. Yes, it makes sense. I will change it and force a push. |
OK. Pushed. |
This looks good to me. Could we have it rebased on current master? Then it can go in I think. |
Add `--enable-sanitizer` as a configure option. Support ASan and TSan for now. Not LeakSanitizer (LSan) and MemorySanitizer (MSan). This is because ASan is a superset of LSan and the lower versions of the compilers available on LLNL systems do not yet support LSan and MSan. Integration is straightforward. It appeared that Sanitizers do not like the `--no-undefined` linker option. So, this commit drops this option for linking when `--enable-sanitizer` is given. Other follow-up issues have been created in GitHub: Issue #720, #721, #722, #724 and #725.
Changes Unknown when pulling 2f0a1dd on dongahn:new_san into * on flux-framework:master*. |
Ready @dongahn? |
Give me just one min. I am checking one thing. |
I was looking at a compilation error as clang 3.5 was complaining on the new cronodate.c. @garlick @grondo: Do you want me to add a fix to this as part of this PR?
|
Oh good catch. No objection if you want to tack a fix on to this PR, or defer till later - your call. |
Ooh, yeah @dongahn can you go ahead and fix that? Sloppy conversion on my part from the old approxidate functions I guess (or maybe it was that way all along, in any case that is a good fix) |
Changes Unknown when pulling 7f5331c on dongahn:new_san into * on flux-framework:master*. |
@garlick: Ok. I think this is ready. |
Thanks! |
Initial support for AddressSanitizer (ASan) and ThreadSanitizer (TSan).
This is tested with
clang-omp-3.5.0
installed at LLNL TOSS2 systems (e.g., Cab). For example,Also mildly tested with
gcc 4.9.3p.
For example,