public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug bootstrap/63888] New: [5 Regression] bootstrap failed when configured with -with-build-config=bootstrap-asan --disable-werror
@ 2014-11-15 14:25 hjl.tools at gmail dot com
  2014-11-17  9:33 ` [Bug bootstrap/63888] " rguenth at gcc dot gnu.org
                   ` (36 more replies)
  0 siblings, 37 replies; 38+ messages in thread
From: hjl.tools at gmail dot com @ 2014-11-15 14:25 UTC (permalink / raw)
  To: gcc-bugs

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=<optimized out>)
    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=<optimized out>, 
    argv=<optimized out>, 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=<optimized out>, argv=<optimized out>)
    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?


^ permalink raw reply	[flat|nested] 38+ messages in thread

end of thread, other threads:[~2015-10-21  7:48 UTC | newest]

Thread overview: 38+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-11-15 14:25 [Bug bootstrap/63888] New: [5 Regression] bootstrap failed when configured with -with-build-config=bootstrap-asan --disable-werror hjl.tools at gmail dot com
2014-11-17  9:33 ` [Bug bootstrap/63888] " rguenth at gcc dot gnu.org
2014-11-17 22:13 ` hjl at gcc dot gnu.org
2014-11-17 22:14 ` hjl.tools at gmail dot com
2014-11-18 13:56 ` jakub at gcc dot gnu.org
2014-11-19 14:53 ` y.gribov at samsung dot com
2014-11-19 19:21 ` kcc at gcc dot gnu.org
2014-11-20 10:22 ` jakub at gcc dot gnu.org
2014-12-05  8:10 ` jakub at gcc dot gnu.org
2014-12-05 10:08 ` y.gribov at samsung dot com
2014-12-06  1:37 ` kcc at gcc dot gnu.org
2014-12-08  9:02 ` y.gribov at samsung dot com
2014-12-12 22:10 ` kcc at gcc dot gnu.org
2014-12-12 22:25 ` jakub at gcc dot gnu.org
2014-12-12 22:34 ` kcc at gcc dot gnu.org
2014-12-12 22:50 ` jakub at gcc dot gnu.org
2014-12-12 23:00 ` kcc at gcc dot gnu.org
2014-12-12 23:26 ` jakub at gcc dot gnu.org
2014-12-12 23:41 ` kcc at gcc dot gnu.org
2014-12-13  0:10 ` jakub at gcc dot gnu.org
2014-12-13  1:25 ` kcc at gcc dot gnu.org
2015-02-03 21:40 ` echristo at gmail dot com
2015-02-03 21:50 ` echristo at gmail dot com
2015-02-03 22:00 ` pinskia at gcc dot gnu.org
2015-02-03 22:03 ` echristo at gmail dot com
2015-02-03 22:22 ` jakub at gcc dot gnu.org
2015-02-03 22:30 ` echristo at gmail dot com
2015-02-04 13:06 ` jakub at gcc dot gnu.org
2015-02-04 18:09 ` echristo at gmail dot com
2015-02-20 10:44 ` jakub at gcc dot gnu.org
2015-02-20 11:04 ` y.gribov at samsung dot com
2015-02-20 11:09 ` jakub at gcc dot gnu.org
2015-02-20 16:41 ` kcc at gcc dot gnu.org
2015-02-20 17:40 ` y.gribov at samsung dot com
2015-02-23 22:15 ` jakub at gcc dot gnu.org
2015-02-23 22:46 ` jakub at gcc dot gnu.org
2015-02-24 11:28 ` y.gribov at samsung dot com
2015-10-21  7:48 ` chefmax at gcc dot gnu.org

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).