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 tree-optimization/83320] New: Mismatched free() / delete / delete [] in gimple-loop-interchange.cc:948


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

            Bug ID: 83320
           Summary: Mismatched free() / delete / delete []  in
                    gimple-loop-interchange.cc:948
           Product: gcc
           Version: 8.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: tree-optimization
          Assignee: unassigned at gcc dot gnu.org
          Reporter: trippels at gcc dot gnu.org
                CC: amker at gcc dot gnu.org
  Target Milestone: ---

Building libgfortran with -O3 shows:

==20156== Mismatched free() / delete / delete []                               
                                                                               
                   ==20156==    at 0x402E246: free (vg_replace_malloc.c:530)   
                                                                               
                                      ==20156==    by 0x129DB9F:
free_data_refs_with_aux (gimple-loop-interchange.cc:948)                       
                                                                       
==20156==    by 0x129DB9F: (anonymous
namespace)::pass_linterchange::execute(function*)
(gimple-loop-interchange.cc:2023)                                              
           ==20156==    by 0xAE0761: execute_one_pass(opt_pass*)
(passes.c:2497)                                                                 
==20156==    by 0xAE13F4: execute_pass_list_1 (passes.c:2586)                   
==20156==    by 0xAE13F4: execute_pass_list_1 (passes.c:2587)                  
                                                                               
                   ==20156==    by 0xAE13F4: execute_pass_list_1
(passes.c:2587)                                                                
                                                     ==20156==    by 0xAE13F4:
execute_pass_list(function*, opt_pass*) (passes.c:2597)                        
                                                                        
==20156==    by 0x8179F4: cgraph_node::expand() (cgraphunit.c:2139)            
                                                                               
                   ==20156==    by 0x818AA2: expand_all_functions
(cgraphunit.c:2275)                                                            
                                                    ==20156==    by 0x818AA2:
symbol_table::compile() [clone .part.71] (cgraphunit.c:2623)                   
                                                                        
==20156==    by 0x81AEA1: compile (cgraphunit.c:2537)                          
                                                                               
                   ==20156==    by 0x81AEA1:
symbol_table::finalize_compilation_unit() (cgraphunit.c:2716)                   
==20156==    by 0xBC5D67: compile_file() (toplev.c:480)                        
                                                                               
                   ==20156==    by 0x6C4692: do_compile (toplev.c:2059)        
                                                                               
                                      ==20156==    by 0x6C4692:
toplev::main(int, char**) (toplev.c:2194)                                      
                                                                        
==20156==    by 0x6C61DA: main (main.c:39)                                     
                                                                               
                   ==20156==  Address 0x5d4a8a0 is 0 bytes inside a block of
size 8 alloc'd                                                                 
                                         ==20156==    at 0x402D6F8: operator
new(unsigned long) (vg_replace_malloc.c:334)                                   
                                                               ==20156==    by
0x129DD64: compute_access_stride (gimple-loop-interchange.cc:1283)              
==20156==    by 0x129DD64: compute_access_strides
(gimple-loop-interchange.cc:1341)                                              
                                                 ==20156==    by 0x129DD64:
prepare_perfect_loop_nest (gimple-loop-interchange.cc:1958)                    
                                                                       
==20156==    by 0x129DD64: (anonymous
namespace)::pass_linterchange::execute(function*)
(gimple-loop-interchange.cc:2017)                                              
           ==20156==    by 0xAE0761: execute_one_pass(opt_pass*)
(passes.c:2497)                                                                
                                             ==20156==    by 0xAE13F4:
execute_pass_list_1 (passes.c:2586)                                            
                                                                        
==20156==    by 0xAE13F4: execute_pass_list_1 (passes.c:2587)                  
                                                                               
                   ==20156==    by 0xAE13F4: execute_pass_list_1
(passes.c:2587)                                                                 
==20156==    by 0xAE13F4: execute_pass_list(function*, opt_pass*)
(passes.c:2597)                                                                 
==20156==    by 0x8179F4: cgraph_node::expand() (cgraphunit.c:2139)             
==20156==    by 0x818AA2: expand_all_functions (cgraphunit.c:2275)              
==20156==    by 0x818AA2: symbol_table::compile() [clone .part.71]
(cgraphunit.c:2623)                                                             
==20156==    by 0x81AEA1: compile (cgraphunit.c:2537)                           
==20156==    by 0x81AEA1: symbol_table::finalize_compilation_unit()
(cgraphunit.c:2716)                                                             
==20156==    by 0xBC5D67: compile_file() (toplev.c:480)                         
==20156==    by 0x6C4692: do_compile (toplev.c:2059)                            
==20156==    by 0x6C4692: toplev::main(int, char**) (toplev.c:2194)             
==20156==    by 0x6C61DA: main (main.c:39)                                      
==20156==

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