[Bug lto/43658] New: ICE: SIGSEGV with -flto in aggregate_value_p (function.c:1859)

zsojka at seznam dot cz gcc-bugzilla@gcc.gnu.org
Mon Apr 5 23:50:00 GMT 2010


Command line:
g++ -flto testcase.C

Tested revisions:
r157965 - crash
r157805 - crash


Valgrind output:
$ valgrind -q --trace-children=yes /mnt/svn/gcc-trunk/binary-157965-lto/bin/g++
-flto testcase.C
==6163== Conditional jump or move depends on uninitialised value(s)
==6163==    at 0xDF5175: longest_match (deflate.c:1143)
==6163==    by 0xDF573A: deflate_slow (deflate.c:1595)
==6163==    by 0xDF66CC: deflate (deflate.c:790)
==6163==    by 0xD71E3C: lto_end_compression (lto-compress.c:196)
==6163==    by 0xD6EEE4: lto_end_section (lto-section-out.c:192)
==6163==    by 0xD6F3DD: lto_destroy_simple_output_block
(lto-section-out.c:556)
==6163==    by 0xD6DBC3: lto_output (lto-streamer-out.c:2125)
==6163==    by 0x854370: ipa_write_summaries_2 (passes.c:1652)
==6163==    by 0x85446E: ipa_write_summaries_1 (passes.c:1678)
==6163==    by 0x856EFA: ipa_write_summaries (passes.c:1727)
==6163==    by 0xAD4284: cgraph_optimize (cgraphunit.c:1793)
==6163==    by 0xAD46E4: cgraph_finalize_compilation_unit (cgraphunit.c:1096)
==6163==

...

==6175== Invalid read of size 2
==6175==    at 0x5F87AE: aggregate_value_p (function.c:1859)
==6175==    by 0x5FD107: allocate_struct_function (function.c:4145)
==6175==    by 0x4A58A6: materialize_cgraph (lto.c:114)
==6175==    by 0x4A6460: lto_main (lto.c:2080)
==6175==    by 0x75C3CC: toplev_main (toplev.c:1053)
==6175==    by 0x6586A3C: (below main) (in /lib64/libc-2.10.1.so)
==6175==  Address 0x0 is not stack'd, malloc'd or (recently) free'd
==6175==
In function 'foo':
lto1: internal compiler error: Segmentation fault
Please submit a full bug report,
with preprocessed source if appropriate.
See <http://gcc.gnu.org/bugs.html> for instructions.
lto-wrapper: /mnt/svn/gcc-trunk/binary-157965-lto/bin/g++ returned 1 exit
status
collect2: lto-wrapper returned 1 exit status


-- 
           Summary: ICE: SIGSEGV with -flto in aggregate_value_p
                    (function.c:1859)
           Product: gcc
           Version: 4.5.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: lto
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: zsojka at seznam dot cz
  GCC host triplet: x86_64-pc-linux-gnu
GCC target triplet: x86_64-pc-linux-gnu


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



More information about the Gcc-bugs mailing list