This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [PATCH 03/N] Just another set of memory leaks
- From: Richard Biener <richard dot guenther at gmail dot com>
- To: Martin LiÅka <mliska at suse dot cz>
- Cc: GCC Patches <gcc-patches at gcc dot gnu dot org>
- Date: Wed, 11 Nov 2015 11:24:01 +0100
- Subject: Re: [PATCH 03/N] Just another set of memory leaks
- Authentication-results: sourceware.org; auth=none
- References: <564081EF dot 7030003 at suse dot cz> <564304B4 dot 1090702 at suse dot cz>
On Wed, Nov 11, 2015 at 10:04 AM, Martin LiÅka <mliska@suse.cz> wrote:
> Hi.
>
> There are new fixed for memory leaks, where the following:
>
> ==19826== 21 bytes in 1 blocks are definitely lost in loss record 16 of 625
> ==19826== at 0x4C2A00F: malloc (in /usr/lib64/valgrind/vgpreload_memcheck-amd64-linux.so)
> ==19826== by 0x16868D7: xmalloc (xmalloc.c:148)
> ==19826== by 0x167FDFB: concat (concat.c:147)
> ==19826== by 0x932920: gcc::dump_manager::get_dump_file_name(dump_file_info*) const (dumpfile.c:292)
> ==19826== by 0x932821: gcc::dump_manager::get_dump_file_name(int) const (dumpfile.c:253)
> ==19826== by 0xC1BBEA: pass_init_dump_file(opt_pass*) (passes.c:2074)
> ==19826== by 0xC1C31B: execute_one_pass(opt_pass*) (passes.c:2302)
> ==19826== by 0xC1D25E: execute_ipa_pass_list(opt_pass*) (passes.c:2735)
> ==19826== by 0x8EED23: symbol_table::compile() (cgraphunit.c:2411)
> ==19826== by 0x8EEF93: symbol_table::finalize_compilation_unit() (cgraphunit.c:2540)
> ==19826== by 0xD205EE: compile_file() (toplev.c:491)
> ==19826== by 0xD229AF: do_compile() (toplev.c:1954)
>
> happens in context:
>
> (gdb) p dump_file_name
> $1 = 0x23e46d0 "ipa-pta-1.c.067i.pta"
> (gdb) c
> Continuing.
>
> Breakpoint 2, pass_init_dump_file (pass=0x238c7c0) at ../../gcc/passes.c:2074
> 2074 dump_file_name = dumps->get_dump_file_name (pass->static_pass_number);
> (gdb) bt
> #0 pass_init_dump_file (pass=0x238c7c0) at ../../gcc/passes.c:2074
> #1 0x0000000000c1bebe in execute_one_ipa_transform_pass (node=0x7ffff6a01450, ipa_pass=0x238c7c0) at ../../gcc/passes.c:2172
> #2 0x0000000000c1c07f in execute_all_ipa_transforms () at ../../gcc/passes.c:2223
> #3 0x00000000008e39e0 in cgraph_node::get_body (this=0x7ffff6a01450) at ../../gcc/cgraph.c:3299
> #4 0x0000000000f1469f in ipa_pta_execute () at ../../gcc/tree-ssa-structalias.c:7344
> #5 0x0000000000f15465 in (anonymous namespace)::pass_ipa_pta::execute (this=0x238cb50) at ../../gcc/tree-ssa-structalias.c:7664
> #6 0x0000000000c1c384 in execute_one_pass (pass=0x238cb50) at ../../gcc/passes.c:2316
> #7 0x0000000000c1d25f in execute_ipa_pass_list (pass=0x238cb50) at ../../gcc/passes.c:2735
> #8 0x00000000008eed24 in symbol_table::compile (this=0x7ffff68d30a8) at ../../gcc/cgraphunit.c:2411
> #9 0x00000000008eef94 in symbol_table::finalize_compilation_unit (this=0x7ffff68d30a8) at ../../gcc/cgraphunit.c:2540
> #10 0x0000000000d205ef in compile_file () at ../../gcc/toplev.c:491
> #11 0x0000000000d229b0 in do_compile () at ../../gcc/toplev.c:1954
> #12 0x0000000000d22c2f in toplev::main (this=0x7fffffffd910, argc=23, argv=0x7fffffffda18) at ../../gcc/toplev.c:2061
> #13 0x0000000001619ad4 in main (argc=23, argv=0x7fffffffda18) at ../../gcc/main.c:39
>
> Rest should be quite obvious.
>
> Bootstrap and regression tests have been running.
>
> Ready to install after it finishes?
Ok.
Richard.
> Martin