From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 17517 invoked by alias); 19 Nov 2014 17:46:28 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Received: (qmail 16957 invoked by uid 48); 19 Nov 2014 17:46:22 -0000 From: "dominiq at lps dot ens.fr" To: gcc-bugs@gcc.gnu.org Subject: [Bug sanitizer/63939] [5 Regression] Massive asan failures (356) on darwin Date: Wed, 19 Nov 2014 17:46:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: sanitizer X-Bugzilla-Version: 5.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: dominiq at lps dot ens.fr X-Bugzilla-Status: NEW X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: 5.0 X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 7bit X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2014-11/txt/msg02024.txt.bz2 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=63939 --- Comment #14 from Dominique d'Humieres --- > (1) I don't understand what has changed to explain the failures. I still don't know what change between r217514 and r217602 caused it but the reason is that there is now two spaces instead of one in the outputs of the kind: #0 0x66d09 ( ... Thus the failures are gone if the original pattern '\[(\])' is replaced with ' \[(\])'. In order to keep some backward compatibility I have replaced '\[(\])' with ' ?\[(\])' and the failures are gone (I'll attach a new patch ASAP). > I got the latest LLVM here: http://llvm.org/releases/download.html#3.5 > (Clang for Darwin 10.9) and put llvm-symbolizer in my PATH. Thanks for the pointer. > With that, and with my patch under review > (https://gcc.gnu.org/ml/gcc-patches/2014-11/msg02465.html), > I am down to one failure: strncpy-overflow-1.c Try --- ../_clean/gcc/testsuite/c-c++-common/asan/strncpy-overflow-1.c 2014-05-10 23:12:04.000000000 +0200 +++ gcc/testsuite/c-c++-common/asan/strncpy-overflow-1.c 2014-11-19 16:38:31.000000000 +0100 @@ -1,5 +1,6 @@ /* { dg-do run } */ /* { dg-options "-fno-builtin-malloc -fno-builtin-strncpy" } */ +/* { dg-additional-options "-D_FORTIFY_SOURCE=0" { target *-*-darwin* } } */ /* { dg-shouldfail "asan" } */ #include