Address Sanitizer support in the build system
Bug #1479333 reported by
Ambroz Bizjak
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
EPICS Base |
Fix Released
|
Wishlist
|
Andrew Johnson |
Bug Description
Attached is a patch (for 3.14) which adds support for Address Sanitizer for Linux x86/x86_64 hosts. ASan can be enabled by setting ASAN=YES in the CONFIG_SITE files. Provided that bug 1479330 is fixed, it seems to work fine.
Note, I've also tried to enable Thread Sanitizer but haven't succeeded. Apparently you need to compile all code with -fPIC or -fpie depending on whether it will be an executable or a library (something like that), and I couldn't figure out how to do that. Could be the current build system doesn't have enough information to pick the right flags.
Changed in epics-base: | |
importance: | Low → Wishlist |
status: | New → Triaged |
Changed in epics-base: | |
milestone: | none → 7.0.2 |
status: | Triaged → Fix Committed |
Changed in epics-base: | |
status: | Fix Committed → Fix Released |
To post a comment you must log in.
This seems like a reasonable addition.