From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 335CB385E00F; Wed, 25 Mar 2020 13:46:23 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 335CB385E00F DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1585143983; bh=xuqNRyjj2tB0uPZo6xAY1gO+1U+gfjeRb3BxIMqUXUI=; h=From:To:Subject:Date:From; b=yxEJbd+Mjzyh2KO0xWSv7atVGdb7x46iw+lZ5mfjKsWecfEUSJqqhi8gb3idZ2xXi a8MMNB4hW+qsexzbk5DAShOV4x17A6hXV+qZcQXv7IhRnSlxUjRqnLVyvTT3N2Y5/A KejVCg5HKVL+Wse49sSy5SoaD+2O27t6Z/bTeDk4= From: "gmc at synopsys dot com" To: gcc-bugs@gcc.gnu.org Subject: [Bug sanitizer/94328] New: Logging of defects to file does not work with Asan and Ubsan combined Date: Wed, 25 Mar 2020 13:46:22 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: sanitizer X-Bugzilla-Version: 6.2.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: gmc at synopsys dot com X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_id short_desc product version bug_status bug_severity priority component assigned_to reporter cc target_milestone attachments.created Message-ID: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-BeenThere: gcc-bugs@gcc.gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Gcc-bugs mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 25 Mar 2020 13:46:23 -0000 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D94328 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, marxi= n at gcc dot gnu.org Target Milestone: --- Created attachment 48114 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=3D48114&action=3Dedit 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_OPT= IONS 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 see= ms 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, "ru= n" runs each, with log_path being set via the *_OPTIONS settings Thanks for any help in addressing this. Gordon=