[Bug sanitizer/63939] [5 Regression] Massive asan failures (356) on darwin
dominiq at lps dot ens.fr
gcc-bugzilla@gcc.gnu.org
Wed Nov 19 17:46:00 GMT 2014
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=63939
--- Comment #14 from Dominique d'Humieres <dominiq at lps dot ens.fr> ---
> (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 <string.h>
More information about the Gcc-bugs
mailing list