https://gcc.gnu.org/bugzilla/show_bug.cgi?id=94328
Bug ID: 94328 Summary: Logging of defects to file does not work with Asan and Ubsan combined Product: gcc Version: 6.2.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: sanitizer Assignee: unassigned at gcc dot gnu.org Reporter: gmc at synopsys dot com CC: dodji at gcc dot gnu.org, dvyukov at gcc dot gnu.org, jakub at gcc dot gnu.org, kcc at gcc dot gnu.org, marxin at gcc dot gnu.org Target Milestone: --- Created attachment 48114 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=48114&action=edit Source code for testcase Compile only with the Address Sanitizer, and the resulting exe can log its defects to file via the log_path setting in ASAN_OPTIONS Ditto for only the Undefined Sanitizer, and using the log_path in UBSAN_OPTIONS Combine the 2 though (the only 2 sanitizers that do seem to be allowed to coexist) and the logging does not seem to work correctly : ASAN_OPTIONS seems to be ignored altogether - and when I set UBSAN_OPTIONS the designated log_path is used ONLY for the Address Sanitizer (incl LeakSanitizer) defects - the Undefined Behavior defects go only to stderr, not to the log file. See attached files : "test.cx" is the source, "make all" builds 3 exes, "run" runs each, with log_path being set via the *_OPTIONS settings Thanks for any help in addressing this. Gordon