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/34472] gcc.dg/struct/wo_prof_malloc_size_var.c doesn't work



------- Comment #3 from hjl at lucon dot org  2007-12-17 19:08 -------
Valgrind reports:

==20091== Invalid read of size 8
==20091==    at 0x964769: htab_traverse_noresize (hashtab.c:749)
==20091==    by 0x747B6B: reorg_structs_drive (ipa-struct-reorg.c:3547)
==20091==    by 0x584BF1: execute_one_pass (passes.c:1118)
==20091==    by 0x5850B3: execute_ipa_pass_list (passes.c:1187)
==20091==    by 0x73ADAD: cgraph_optimize (cgraphunit.c:1339)
==20091==    by 0x410AAA: c_write_global_declarations (c-decl.c:8077)
==20091==    by 0x5FA23B: toplev_main (toplev.c:1055)
==20091==    by 0x39A0A1DAB3: (below main) (in /lib64/libc-2.6.so)
==20091==  Address 0x8E70F68 is 24 bytes inside a block of size 104 free'd
==20091==    at 0x4A055AB: free (vg_replace_malloc.c:233)
==20091==    by 0x964F85: htab_expand (hashtab.c:550)
==20091==    by 0x965002: htab_traverse (hashtab.c:763)
==20091==    by 0x743D33: free_data_struct (ipa-struct-reorg.c:1674)
==20091==    by 0x743E0D: remove_structure (ipa-struct-reorg.c:2353)
==20091==    by 0x743F0A: safe_cond_expr_check (ipa-struct-reorg.c:3090)
==20091==    by 0x964777: htab_traverse_noresize (hashtab.c:750)
==20091==    by 0x747B6B: reorg_structs_drive (ipa-struct-reorg.c:3547)
==20091==    by 0x584BF1: execute_one_pass (passes.c:1118)
==20091==    by 0x5850B3: execute_ipa_pass_list (passes.c:1187)
==20091==    by 0x73ADAD: cgraph_optimize (cgraphunit.c:1339)
==20091==    by 0x410AAA: c_write_global_declarations (c-decl.c:8077)
==20091== 
==20091== Conditional jump or move depends on uninitialised value(s)
==20091==    at 0x9201D4: global_conflicts (sparseset.h:89)
==20091==    by 0x8F7259: rest_of_handle_global_alloc (global.c:533)
==20091==    by 0x584BF1: execute_one_pass (passes.c:1118)
==20091==    by 0x584D8F: execute_pass_list (passes.c:1171)
==20091==    by 0x584DA4: execute_pass_list (passes.c:1172)
==20091==    by 0x62D093: tree_rest_of_compilation (tree-optimize.c:404)
==20091==    by 0x739291: cgraph_expand_function (cgraphunit.c:1151)
==20091==    by 0x73ACC3: cgraph_optimize (cgraphunit.c:1214)
==20091==    by 0x410AAA: c_write_global_declarations (c-decl.c:8077)
==20091==    by 0x5FA23B: toplev_main (toplev.c:1055)
==20091==    by 0x39A0A1DAB3: (below main) (in /lib64/libc-2.6.so)
==20091== 
==20091== Conditional jump or move depends on uninitialised value(s)
==20091==    at 0x920F71: global_conflicts (sparseset.h:89)
==20091==    by 0x8F7259: rest_of_handle_global_alloc (global.c:533)
==20091==    by 0x584BF1: execute_one_pass (passes.c:1118)
==20091==    by 0x584D8F: execute_pass_list (passes.c:1171)
==20091==    by 0x584DA4: execute_pass_list (passes.c:1172)
==20091==    by 0x62D093: tree_rest_of_compilation (tree-optimize.c:404)
==20091==    by 0x739291: cgraph_expand_function (cgraphunit.c:1151)
==20091==    by 0x73ACC3: cgraph_optimize (cgraphunit.c:1214)
==20091==    by 0x410AAA: c_write_global_declarations (c-decl.c:8077)
==20091==    by 0x5FA23B: toplev_main (toplev.c:1055)
==20091==    by 0x39A0A1DAB3: (below main) (in /lib64/libc-2.6.so)
==20091== 
==20091== Conditional jump or move depends on uninitialised value(s)
==20091==    at 0x920ABB: global_conflicts (sparseset.h:89)
==20091==    by 0x8F7259: rest_of_handle_global_alloc (global.c:533)
==20091==    by 0x584BF1: execute_one_pass (passes.c:1118)
==20091==    by 0x584D8F: execute_pass_list (passes.c:1171)
==20091==    by 0x584DA4: execute_pass_list (passes.c:1172)
==20091==    by 0x62D093: tree_rest_of_compilation (tree-optimize.c:404)
==20091==    by 0x739291: cgraph_expand_function (cgraphunit.c:1151)
==20091==    by 0x73ACC3: cgraph_optimize (cgraphunit.c:1214)
==20091==    by 0x410AAA: c_write_global_declarations (c-decl.c:8077)
==20091==    by 0x5FA23B: toplev_main (toplev.c:1055)
==20091==    by 0x39A0A1DAB3: (below main) (in /lib64/libc-2.6.so)
==20091== 
==20091== Use of uninitialised value of size 8
==20091==    at 0x921C4D: global_conflicts (sparseset.h:89)
==20091==    by 0x8F7259: rest_of_handle_global_alloc (global.c:533)
==20091==    by 0x584BF1: execute_one_pass (passes.c:1118)
==20091==    by 0x584D8F: execute_pass_list (passes.c:1171)
==20091==    by 0x584DA4: execute_pass_list (passes.c:1172)
==20091==    by 0x62D093: tree_rest_of_compilation (tree-optimize.c:404)
==20091==    by 0x739291: cgraph_expand_function (cgraphunit.c:1151)
==20091==    by 0x73ACC3: cgraph_optimize (cgraphunit.c:1214)
==20091==    by 0x410AAA: c_write_global_declarations (c-decl.c:8077)
==20091==    by 0x5FA23B: toplev_main (toplev.c:1055)
==20091==    by 0x39A0A1DAB3: (below main) (in /lib64/libc-2.6.so)
==20091== 
==20091== Use of uninitialised value of size 8
==20091==    at 0x920F7C: global_conflicts (sparseset.h:89)
==20091==    by 0x8F7259: rest_of_handle_global_alloc (global.c:533)
==20091==    by 0x584BF1: execute_one_pass (passes.c:1118)
==20091==    by 0x584D8F: execute_pass_list (passes.c:1171)
==20091==    by 0x584DA4: execute_pass_list (passes.c:1172)
==20091==    by 0x62D093: tree_rest_of_compilation (tree-optimize.c:404)
==20091==    by 0x739291: cgraph_expand_function (cgraphunit.c:1151)
==20091==    by 0x73ACC3: cgraph_optimize (cgraphunit.c:1214)
==20091==    by 0x410AAA: c_write_global_declarations (c-decl.c:8077)
==20091==    by 0x5FA23B: toplev_main (toplev.c:1055)
==20091==    by 0x39A0A1DAB3: (below main) (in /lib64/libc-2.6.so)
==20091== 
==20091== Use of uninitialised value of size 8
==20091==    at 0x92108C: global_conflicts (sparseset.h:89)
==20091==    by 0x8F7259: rest_of_handle_global_alloc (global.c:533)
==20091==    by 0x584BF1: execute_one_pass (passes.c:1118)
==20091==    by 0x584D8F: execute_pass_list (passes.c:1171)
==20091==    by 0x584DA4: execute_pass_list (passes.c:1172)
==20091==    by 0x62D093: tree_rest_of_compilation (tree-optimize.c:404)
==20091==    by 0x739291: cgraph_expand_function (cgraphunit.c:1151)
==20091==    by 0x73ACC3: cgraph_optimize (cgraphunit.c:1214)
==20091==    by 0x410AAA: c_write_global_declarations (c-decl.c:8077)
==20091==    by 0x5FA23B: toplev_main (toplev.c:1055)
==20091==    by 0x39A0A1DAB3: (below main) (in /lib64/libc-2.6.so)


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=34472


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