[Bug lto/58733] New: [4.9 Regression] ICE in operator[], at vec.h:827

markus at trippelsdorf dot de gcc-bugzilla@gcc.gnu.org
Tue Oct 15 06:55:00 GMT 2013


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

            Bug ID: 58733
           Summary: [4.9 Regression] ICE in operator[], at vec.h:827
           Product: gcc
           Version: 4.9.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: lto
          Assignee: unassigned at gcc dot gnu.org
          Reporter: markus at trippelsdorf dot de

testsuite/g++.dg/lto/20090302 ICE's on my machine:

markus@x4 lto % g++ -fPIC -flto -flto-partition=1to1 -r -nostdlib 20090302_0.C
20090302_1.C
lto1: internal compiler error: in operator[], at vec.h:827
0x524457 vec<inline_summary, va_gc, vl_embed>::operator[](unsigned int)
        ../../gcc/gcc/vec.h:827
0x524d5c vec<inline_summary, va_gc, vl_embed>::operator[](unsigned int)
        ../../gcc/gcc/lto/lto-partition.c:234
0x524d5c inline_summary
        ../../gcc/gcc/ipa-inline.h:242
0x524d5c add_symbol_to_partition_1
        ../../gcc/gcc/lto/lto-partition.c:206
0x524c0a add_symbol_to_partition_1
        ../../gcc/gcc/lto/lto-partition.c:226
0x524f7b lto_1_to_1_map()
        ../../gcc/gcc/lto/lto-partition.c:357
0x521670 do_whole_program_analysis
        ../../gcc/gcc/lto/lto.c:3078
0x521670 lto_main()
        ../../gcc/gcc/lto/lto.c:3222

Valgrind shows:
==13659== Invalid read of size 4
==13659==    at 0x509679: add_symbol_to_partition_1(ltrans_partition_def*,
symtab_node_def*) (lto-partition.c:206)
==13659==    by 0x5095EA: add_symbol_to_partition_1(ltrans_partition_def*,
symtab_node_def*) (lto-partition.c:226)
==13659==    by 0x5098CF: lto_1_to_1_map() (lto-partition.c:357)
==13659==    by 0x506C41: lto_main() (lto.c:3078)
==13659==    by 0x7B2545: compile_file() (toplev.c:546)
==13659==    by 0x7B40C9: toplev_main(int, char**) (toplev.c:1893)
==13659==    by 0x4ED5A6D: (below main) (in /lib64/libc-2.18.90.so)
==13659==  Address 0x57a0ff0 is not stack'd, malloc'd or (recently) free'd
==13659==



More information about the Gcc-bugs mailing list