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



             Bug #: 55358

           Summary: Valgrind errors

    Classification: Unclassified

           Product: gcc

           Version: 4.8.0

            Status: UNCONFIRMED

          Severity: normal

          Priority: P3

         Component: other

        AssignedTo: unassig...@gcc.gnu.org

        ReportedBy: hjl.to...@gmail.com





With revision 193546, valgrind reports:



==25552== Invalid read of size 8

==25552==    at 0x38F3A88D5F: __GI_mempcpy (in /usr/lib64/libc-2.15.so)

==25552==    by 0x38F3A785DD: _IO_default_xsputn (in /usr/lib64/libc-2.15.so)

==25552==    by 0x38F3A76940: _IO_file_xsputn@@GLIBC_2.2.5 (in

/usr/lib64/libc-2.15.so)

==25552==    by 0x38F3A6C4FC: fwrite (in /usr/lib64/libc-2.15.so)

==25552==    by 0x622AD7: ggc_pch_write_object(ggc_pch_data*, _IO_FILE*, void*,

void*, unsigned long, bool) (ggc-page.c:2322)

==25552==    by 0x74D8C1: gt_pch_save(_IO_FILE*) (ggc-common.c:593) 

==25552==    by 0x610027: c_common_write_pch() (c-pch.c:184)

==25552==    by 0x548D45: cp_write_global_declarations() (decl2.c:3948)

==25552==    by 0x8A252C: compile_file() (toplev.c:559)

==25552==    by 0x8A4087: toplev_main(int, char**) (toplev.c:1881)

==25552==    by 0x38F3A21674: (below main) (in /usr/lib64/libc-2.15.so)

==25552==  Address 0x1089a7d8 is not stack'd, malloc'd or (recently) free'd



==25552== Invalid read of size 8

==25552==    at 0x4A0A33A: memcpy@@GLIBC_2.14 (mc_replace_strmem.c:881)

==25552==    by 0x74D84B: gt_pch_save(_IO_FILE*) (ggc-common.c:583)

==25552==    by 0x610027: c_common_write_pch() (c-pch.c:184)

==25552==    by 0x548D45: cp_write_global_declarations() (decl2.c:3948)

==25552==    by 0x8A252C: compile_file() (toplev.c:559)

==25552==    by 0x8A4087: toplev_main(int, char**) (toplev.c:1881)

==25552==    by 0x38F3A21674: (below main) (in /usr/lib64/libc-2.15.so)

==25552==  Address 0xffffce8 is not stack'd, malloc'd or (recently) free'd



==25565== Invalid write of size 8

==25565==    at 0x4A0A23B: memcpy@@GLIBC_2.14 (mc_replace_strmem.c:881)

==25565==    by 0x74D8E3: gt_pch_save(_IO_FILE*) (ggc-common.c:595)

==25565==    by 0x610027: c_common_write_pch() (c-pch.c:184)

==25565==    by 0x548D45: cp_write_global_declarations() (decl2.c:3948)

==25565==    by 0x8A252C: compile_file() (toplev.c:559)

==25565==    by 0x8A4087: toplev_main(int, char**) (toplev.c:1881)

==25565==    by 0x38F3A21674: (below main) (in /usr/lib64/libc-2.15.so)

==25565==  Address 0xfb40778 is not stack'd, malloc'd or (recently) free'd



==26359== Invalid read of size 4

==26359==    at 0xB58AEE: rest_of_handle_ree() (ree.c:617)

==26359==    by 0x74ADA3: execute_one_pass(opt_pass*) (passes.c:2339)

==26359==    by 0x74B174: execute_pass_list(opt_pass*) (passes.c:2400)

==26359==    by 0x74B186: execute_pass_list(opt_pass*) (passes.c:2401)

==26359==    by 0x74B186: execute_pass_list(opt_pass*) (passes.c:2401)

==26359==    by 0x5AB16D: expand_function(cgraph_node*) (cgraphunit.c:1643)

==26359==    by 0x5AC786: compile() (cgraphunit.c:1747)

==26359==    by 0x5ACBA9: finalize_compilation_unit() (cgraphunit.c:2122)

==26359==    by 0x4E47DF: c_write_global_declarations() (c-decl.c:10128)

==26359==    by 0x7D7F4C: compile_file() (toplev.c:559)

==26359==    by 0x7D9AA7: toplev_main(int, char**) (toplev.c:1881)

==26359==    by 0x38F3A21674: (below main) (in /usr/lib64/libc-2.15.so)

==26359==  Address 0x4e10d51 is 2,785 bytes inside a block of size 2,788

alloc'd

==26359==    at 0x4A06B0F: calloc (vg_replace_malloc.c:593)

==26359==    by 0xC0F708: xcalloc (xmalloc.c:162)

==26359==    by 0xB59070: rest_of_handle_ree() (ree.c:886)

Reply via email to