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

            Bug ID: 65431
           Summary: [5 Regression] Invalid read of size 8 at 0x105DBBF8:
                    delete_omp_context(unsigned long) (omp-low.c:1586)
           Product: gcc
           Version: 5.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: middle-end
          Assignee: unassigned at gcc dot gnu.org
          Reporter: trippels at gcc dot gnu.org

Running the testsuite on ppc64le with an --enable-checking=valgrind
compiler shows many instances of:

==32629== Invalid read of size 8
==32629==    at 0x105DBBF8: delete_omp_context(unsigned long) (omp-low.c:1586)
==32629==    by 0x10D6D50F: splay_tree_delete_helper (splay-tree.c:96)
==32629==    by 0x10D6D50F: splay_tree_delete (splay-tree.c:353)
==32629==    by 0x105E265B: execute_lower_omp (omp-low.c:11906)
==32629==    by 0x105E265B: (anonymous
namespace)::pass_lower_omp::execute(function*) (omp-low.c:11936)
==32629==    by 0x10619A07: execute_one_pass(opt_pass*) (passes.c:2328)
==32629==    by 0x10619F03: execute_pass_list_1(opt_pass*) (passes.c:2380)
==32629==    by 0x10619FA3: execute_pass_list(function*, opt_pass*)
(passes.c:2391)
==32629==    by 0x10317FFB: cgraph_node::analyze() (cgraphunit.c:645)
==32629==    by 0x1031B207: analyze_functions() (cgraphunit.c:1023)
==32629==    by 0x1031B6B7: symbol_table::finalize_compilation_unit()
(cgraphunit.c:2435)
==32629==    by 0x105657C7: write_global_declarations() (langhooks.c:344)
==32629==    by 0x10206083: gfc_write_global_declarations() (f95-lang.c:309)
==32629==    by 0x106F278F: compile_file() (toplev.c:608)
==32629==  Address 0x4951198 is 264 bytes inside a block of size 304 free'd
==32629==    at 0x4095394: free (in
/usr/lib64/valgrind/vgpreload_memcheck-ppc64le-linux.so)
==32629==    by 0x105DBC87: delete_omp_context(unsigned long) (omp-low.c:1607)
==32629==    by 0x10D6D4AB: splay_tree_delete_helper (splay-tree.c:89)
==32629==    by 0x10D6D4AB: splay_tree_delete (splay-tree.c:353)
==32629==    by 0x105E265B: execute_lower_omp (omp-low.c:11906)
==32629==    by 0x105E265B: (anonymous
namespace)::pass_lower_omp::execute(function*) (omp-low.c:11936)
==32629==    by 0x10619A07: execute_one_pass(opt_pass*) (passes.c:2328)
==32629==    by 0x10619F03: execute_pass_list_1(opt_pass*) (passes.c:2380)
==32629==    by 0x10619FA3: execute_pass_list(function*, opt_pass*)
(passes.c:2391)
==32629==    by 0x10317FFB: cgraph_node::analyze() (cgraphunit.c:645)
==32629==    by 0x1031B207: analyze_functions() (cgraphunit.c:1023)
==32629==    by 0x1031B6B7: symbol_table::finalize_compilation_unit()
(cgraphunit.c:2435)
==32629==    by 0x105657C7: write_global_declarations() (langhooks.c:344)
==32629==    by 0x10206083: gfc_write_global_declarations() (f95-lang.c:309)

or:

==66627== Invalid read of size 8
==66627==    at 0x10650F58: delete_omp_context(unsigned long) (omp-low.c:1586)
==66627==    by 0x10DD258B: splay_tree_delete_helper (splay-tree.c:89)
==66627==    by 0x10DD258B: splay_tree_delete (splay-tree.c:353)
==66627==    by 0x106579BB: execute_lower_omp (omp-low.c:11906)
==66627==    by 0x106579BB: (anonymous
namespace)::pass_lower_omp::execute(function*) (omp-low.c:11936)
==66627==    by 0x1068FBC7: execute_one_pass(opt_pass*) (passes.c:2328)
==66627==    by 0x106900C3: execute_pass_list_1(opt_pass*) (passes.c:2380)
==66627==    by 0x10690163: execute_pass_list(function*, opt_pass*)
(passes.c:2391)
==66627==    by 0x1038B67B: cgraph_node::analyze() (cgraphunit.c:645)
==66627==    by 0x1038E887: analyze_functions() (cgraphunit.c:1023)
==66627==    by 0x1038ED37: symbol_table::finalize_compilation_unit()
(cgraphunit.c:2435)
==66627==    by 0x101A31CB: cp_write_global_declarations() (decl2.c:4754)
==66627==    by 0x1076894F: compile_file() (toplev.c:608)
==66627==    by 0x10111D33: do_compile (toplev.c:2076)
==66627==    by 0x10111D33: toplev::main(int, char**) (toplev.c:2174)
==66627==  Address 0x4a0b928 is 264 bytes inside a block of size 304 free'd
==66627==    at 0x4095394: free (in
/usr/lib64/valgrind/vgpreload_memcheck-ppc64le-linux.so)
==66627==    by 0x10650FE7: delete_omp_context(unsigned long) (omp-low.c:1607)
==66627==    by 0x10DD25EF: splay_tree_delete_helper (splay-tree.c:96)
==66627==    by 0x10DD25EF: splay_tree_delete (splay-tree.c:353)
==66627==    by 0x106579BB: execute_lower_omp (omp-low.c:11906)
==66627==    by 0x106579BB: (anonymous
namespace)::pass_lower_omp::execute(function*) (omp-low.c:11936)
==66627==    by 0x1068FBC7: execute_one_pass(opt_pass*) (passes.c:2328)
==66627==    by 0x106900C3: execute_pass_list_1(opt_pass*) (passes.c:2380)
==66627==    by 0x10690163: execute_pass_list(function*, opt_pass*)
(passes.c:2391)
==66627==    by 0x1038B67B: cgraph_node::analyze() (cgraphunit.c:645)
==66627==    by 0x1038E887: analyze_functions() (cgraphunit.c:1023)
==66627==    by 0x1038ED37: symbol_table::finalize_compilation_unit()
(cgraphunit.c:2435)
==66627==    by 0x101A31CB: cp_write_global_declarations() (decl2.c:4754)
==66627==    by 0x1076894F: compile_file() (toplev.c:608)

Reply via email to