From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 26167 invoked by alias); 15 Nov 2014 14:25:42 -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 26153 invoked by uid 48); 15 Nov 2014 14:25:38 -0000 From: "hjl.tools at gmail dot com" To: gcc-bugs@gcc.gnu.org Subject: [Bug bootstrap/63888] New: [5 Regression] bootstrap failed when configured with -with-build-config=bootstrap-asan --disable-werror Date: Sat, 15 Nov 2014 14:25:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: bootstrap X-Bugzilla-Version: 5.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: hjl.tools at gmail dot com X-Bugzilla-Status: UNCONFIRMED 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 Message-ID: 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/msg01329.txt.bz2 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=63888 Bug ID: 63888 Summary: [5 Regression] bootstrap failed when configured with -with-build-config=bootstrap-asan --disable-werror Product: gcc Version: 5.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: bootstrap Assignee: unassigned at gcc dot gnu.org Reporter: hjl.tools at gmail dot com On Linux/x86-64, r217602 gave build/genmddeps /export/gnu/import/git/sources/gcc/gcc/common.md /export/gnu/import/git/sources/gcc/gcc/config/i386/i386.md > tmp-mddeps build/genmodes -h > tmp-modes.h ================================================================= ==31507==ERROR: LeakSanitizer: detected memory leaks Direct leak of 40 byte(s) in 1 object(s) allocated from: #0 0x47b5da in __interceptor_malloc /export/gnu/import/git/sources/gcc/libsanitizer/asan/asan_malloc_linux.cc:38 #1 0x4b42d7 in xmalloc /export/gnu/import/git/sources/gcc/libiberty/xmalloc.c:147 SUMMARY: AddressSanitizer: 40 byte(s) leaked in 1 allocation(s). make[5]: *** [s-mddeps] Error 23 There are some global string variables initialized with Breakpoint 5, xmalloc (size=size@entry=40) at /export/gnu/import/git/sources/gcc/libiberty/xmalloc.c:146 146 size = 1; (gdb) bt #0 xmalloc (size=size@entry=40) at /export/gnu/import/git/sources/gcc/libiberty/xmalloc.c:146 #1 0x00000000004b43d1 in xstrndup ( s=0x7fffffffe18a "/export/gnu/import/git/sources/gcc/gcc/common.md", n=) at /export/gnu/import/git/sources/gcc/libiberty/xstrndup.c:56 #2 0x00000000004aff9e in handle_toplevel_file ( handle_directive=handle_directive@entry=0x0) at /export/gnu/import/git/sources/gcc/gcc/read-md.c:1008 #3 0x00000000004b0672 in read_md_files (argc=, argv=, parse_opt=parse_opt@entry=0x0, handle_directive=handle_directive@entry=0x0) at /export/gnu/import/git/sources/gcc/gcc/read-md.c:1138 #4 0x00000000004059d1 in main (argc=, argv=) at /export/gnu/import/git/sources/gcc/gcc/genmddeps.c:50 (gdb) c They aren't freed before exit and are detected as memory leaks. How can they be suppressed?