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 middle-end/39827] New: [4.5 Regression] ICE (segfault) when compiling gcc/varasm.c (in notice_global_symbol)


When bootstrapping (rev. 146452), I get the ICE in stage2:

/home/tob/projects/gcc/gcc/varasm.c: In Function "notice_global_symbol":
/home/tob/projects/gcc/gcc/varasm.c:1595: internal compiler error: segmentation
fault

That's on x86-64-linux with the MALLOC_CHECK_=2 MALLOC_PERTURB_=D environment
variables set.

Valgrind shows:

==19870== Invalid read of size 8
==19870==    at 0x1648E68: propagate_with_phi (tree-ssa-phiprop.c:242)
==19870==    by 0x164954C: tree_ssa_phiprop (tree-ssa-phiprop.c:349)
==19870==    by 0xD27E20: execute_one_pass (passes.c:1290)
==19870==    by 0xD27FB7: execute_pass_list (passes.c:1339)
==19870==    by 0xD27FD5: execute_pass_list (passes.c:1340)
==19870==    by 0x12174DF: tree_rest_of_compilation (tree-optimize.c:437)
==19870==    by 0x1ABC634: cgraph_expand_function (cgraphunit.c:1051)
==19870==    by 0x1ABC7E4: cgraph_expand_all_functions (cgraphunit.c:1110)
==19870==    by 0x1ABCDA3: cgraph_optimize (cgraphunit.c:1324)
==19870==    by 0x4E5076: c_write_global_declarations (c-decl.c:8184)
==19870==    by 0xFBE33F: compile_file (toplev.c:988)
==19870==    by 0xFC02D6: do_compile (toplev.c:2248)
==19870==  Address 0x8292c30 is 0 bytes after a block of size 1,472 alloc'd
==19870==    at 0x4C23784: calloc (in
/usr/lib64/valgrind/amd64-linux/vgpreload_memcheck.so)
==19870==    by 0x22808F0: xcalloc (xmalloc.c:162)
==19870==    by 0x1649483: tree_ssa_phiprop (tree-ssa-phiprop.c:342)
==19870==    by 0xD27E20: execute_one_pass (passes.c:1290)
==19870==    by 0xD27FB7: execute_pass_list (passes.c:1339)
==19870==    by 0xD27FD5: execute_pass_list (passes.c:1340)
==19870==    by 0x12174DF: tree_rest_of_compilation (tree-optimize.c:437)
==19870==    by 0x1ABC634: cgraph_expand_function (cgraphunit.c:1051)
==19870==    by 0x1ABC7E4: cgraph_expand_all_functions (cgraphunit.c:1110)
==19870==    by 0x1ABCDA3: cgraph_optimize (cgraphunit.c:1324)
==19870==    by 0x4E5076: c_write_global_declarations (c-decl.c:8184)
==19870==    by 0xFBE33F: compile_file (toplev.c:988)
==19870==                                                                       
==19870== Invalid read of size 8
==19870==    at 0x1648FAB: propagate_with_phi (tree-ssa-phiprop.c:252)
==19870==    by 0x164954C: tree_ssa_phiprop (tree-ssa-phiprop.c:349)
==19870==    by 0xD27E20: execute_one_pass (passes.c:1290)
==19870==    by 0xD27FB7: execute_pass_list (passes.c:1339)
==19870==    by 0xD27FD5: execute_pass_list (passes.c:1340)
==19870==    by 0x12174DF: tree_rest_of_compilation (tree-optimize.c:437)
==19870==    by 0x1ABC634: cgraph_expand_function (cgraphunit.c:1051)
[...]
==19870== Invalid read of size 8
==19870==    at 0x1648562: phivn_valid_p (tree-ssa-phiprop.c:107)
==19870==    by 0x1648FCC: propagate_with_phi (tree-ssa-phiprop.c:252)
==19870==    by 0x164954C: tree_ssa_phiprop (tree-ssa-phiprop.c:349)
==19870==  Address 0x8292c38 is 8 bytes after a block of size 1,472 alloc'd     
==19870==    at 0x4C23784: calloc (in
/usr/lib64/valgrind/amd64-linux/vgpreload_memcheck.so)
==19870==    by 0x22808F0: xcalloc (xmalloc.c:162)
==19870==    by 0x1649483: tree_ssa_phiprop (tree-ssa-phiprop.c:342)
==19870==    by 0xD27E20: execute_one_pass (passes.c:1290)
==19870==    by 0xD27FB7: execute_pass_list (passes.c:1339)
[...]
==19870== Invalid read of size 1
==19870==    at 0x163B786: gimple_code (gimple.h:1030)
==19870==    by 0x163BAA5: gimple_has_mem_ops (gimple.h:1240)
==19870==    by 0x163BC99: gimple_vuse (gimple.h:1322)
==19870==    by 0x1648572: phivn_valid_p (tree-ssa-phiprop.c:112)
... and then the ICE.


-- 
           Summary: [4.5 Regression] ICE (segfault) when compiling
                    gcc/varasm.c (in notice_global_symbol)
           Product: gcc
           Version: 4.5.0
            Status: UNCONFIRMED
          Keywords: ice-on-valid-code, build
          Severity: critical
          Priority: P3
         Component: middle-end
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: burnus at gcc dot gnu dot org


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


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