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++/80029] New: [6/7 Regression] valgrind error in new_omp_context(omp_region_type) (gimplify.c:400)


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

            Bug ID: 80029
           Summary: [6/7 Regression] valgrind error in
                    new_omp_context(omp_region_type) (gimplify.c:400)
           Product: gcc
           Version: 7.0
            Status: UNCONFIRMED
          Keywords: openacc
          Severity: normal
          Priority: P3
         Component: c++
          Assignee: unassigned at gcc dot gnu.org
          Reporter: marxin at gcc dot gnu.org
                CC: jnorris at gcc dot gnu.org, jsm28 at gcc dot gnu.org
  Target Milestone: ---

I see valgrind memory leak starting from r230275:

$ valgrind --leak-check=yes --trace-children=yes g++
/home/marxin/Programming/gcc/gcc/testsuite/c-c++-common/goacc/declare-1.c
-fno-diagnostics-show-caret -fdiagnostics-color=never -nostdinc++
-I/home/marxin/Programming/gcc/objdir/x86_64-pc-linux-gnu/libstdc++-v3/include/x86_64-pc-linux-gnu
-I/home/marxin/Programming/gcc/objdir/x86_64-pc-linux-gnu/libstdc++-v3/include
-I/home/marxin/Programming/gcc/libstdc++-v3/libsupc++
-I/home/marxin/Programming/gcc/libstdc++-v3/include/backward
-I/home/marxin/Programming/gcc/libstdc++-v3/testsuite/util -fmessage-length=0
-std=c++98 -fopenacc -S -o declare-1.s

...
==21322== 4,768 (56 direct, 4,712 indirect) bytes in 1 blocks are definitely
lost in loss record 672 of 706
==21322==    at 0x4C2D0C5: calloc (in
/usr/lib64/valgrind/vgpreload_memcheck-amd64-linux.so)
==21322==    by 0x1C96570: xcalloc (xmalloc.c:162)
==21322==    by 0xE24A72: new_omp_context(omp_region_type) (gimplify.c:400)
==21322==    by 0xE3C4A0: gimplify_scan_omp_clauses(tree_node**, gimple**,
omp_region_type, tree_code) (gimplify.c:7334)
==21322==    by 0xE47532: gimplify_oacc_declare(tree_node**, gimple**)
(gimplify.c:9238)
==21322==    by 0xE52AC7: gimplify_expr(tree_node**, gimple**, gimple**, bool
(*)(tree_node*), int) (gimplify.c:11683)
==21322==    by 0xE39C71: gimplify_stmt(tree_node**, gimple**)
(gimplify.c:6478)
==21322==    by 0xE28AE5: gimplify_statement_list(tree_node**, gimple**)
(gimplify.c:1716)
==21322==    by 0xE528F3: gimplify_expr(tree_node**, gimple**, gimple**, bool
(*)(tree_node*), int) (gimplify.c:11626)
==21322==    by 0xE39C71: gimplify_stmt(tree_node**, gimple**)
(gimplify.c:6478)
==21322==    by 0xE2724F: gimplify_bind_expr(tree_node**, gimple**)
(gimplify.c:1290)
==21322==    by 0xE5196B: gimplify_expr(tree_node**, gimple**, gimple**, bool
(*)(tree_node*), int) (gimplify.c:11398)

...

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