This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug c/79505] New: Memory leaks in oacc_loop_discover_walk


https://gcc.gnu.org/bugzilla/show_bug.cgi?id=79505

            Bug ID: 79505
           Summary: Memory leaks in oacc_loop_discover_walk
           Product: gcc
           Version: unknown
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c
          Assignee: unassigned at gcc dot gnu.org
          Reporter: marxin at gcc dot gnu.org
                CC: cesar at codesourcery dot com, cltang at gcc dot gnu.org,
                    jsm28 at gcc dot gnu.org, nathan at gcc dot gnu.org
  Target Milestone: ---

Hello.

Starting from r245300, I can see following leaks:

$ valgrind --leak-check=yes --trace-children=yes gcc
/home/marxin/Programming/gcc/gcc/testsuite/c-c++-common/goacc-gomp/nesting-1.c
-fopenmp -c -fopenacc

==18313== 40 bytes in 1 blocks are definitely lost in loss record 17 of 806
==18313==    at 0x4C2B0AF: malloc (in
/usr/lib64/valgrind/vgpreload_memcheck-amd64-linux.so)
==18313==    by 0x145C9BF: xrealloc (xmalloc.c:177)
==18313==    by 0xAB9643: reserve<gcall*> (vec.h:288)
==18313==    by 0xAB9643: reserve (vec.h:1445)
==18313==    by 0xAB9643: safe_push (vec.h:1554)
==18313==    by 0xAB9643: oacc_loop_discover_walk(oacc_loop*, basic_block_def*)
(omp-offload.c:900)
==18313==    by 0xAB98CB: oacc_loop_discover_walk(oacc_loop*, basic_block_def*)
(omp-offload.c:955)
==18313==    by 0xAB98CB: oacc_loop_discover_walk(oacc_loop*, basic_block_def*)
(omp-offload.c:955)
==18313==    by 0xAB9DD3: oacc_loop_discovery (omp-offload.c:991)
==18313==    by 0xAB9DD3: execute_oacc_device_lower (omp-offload.c:1450)
==18313==    by 0xAB9DD3: (anonymous
namespace)::pass_oacc_device_lower::execute(function*) (omp-offload.c:1658)
==18313==    by 0xB222CD: execute_one_pass(opt_pass*) (passes.c:2465)
==18313==    by 0xB22B97: execute_pass_list_1(opt_pass*) (passes.c:2554)
==18313==    by 0xB22BF4: execute_pass_list(function*, opt_pass*)
(passes.c:2565)
==18313==    by 0x7F918D: cgraph_node::expand() (cgraphunit.c:2038)
==18313==    by 0x7FA172: output_in_order(bool) (cgraphunit.c:2281)
==18313==    by 0x7FA51D: symbol_table::compile() [clone .part.52]
(cgraphunit.c:2525)

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]