public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug other/55358] New: Valgrind errors
@ 2012-11-16 18:57 hjl.tools at gmail dot com
  2012-11-21 15:31 ` [Bug other/55358] " markus at trippelsdorf dot de
                   ` (10 more replies)
  0 siblings, 11 replies; 12+ messages in thread
From: hjl.tools at gmail dot com @ 2012-11-16 18:57 UTC (permalink / raw)
  To: gcc-bugs


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: unassigned@gcc.gnu.org
        ReportedBy: hjl.tools@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)


^ permalink raw reply	[flat|nested] 12+ messages in thread

end of thread, other threads:[~2013-10-14  9:24 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-11-16 18:57 [Bug other/55358] New: Valgrind errors hjl.tools at gmail dot com
2012-11-21 15:31 ` [Bug other/55358] " markus at trippelsdorf dot de
2012-11-21 16:53 ` markus at trippelsdorf dot de
2012-11-21 17:17 ` markus at trippelsdorf dot de
2012-11-21 17:20 ` jakub at gcc dot gnu.org
2012-11-23 13:10 ` markus at trippelsdorf dot de
2012-11-28  8:51 ` markus at trippelsdorf dot de
2012-11-28 13:21 ` markus at trippelsdorf dot de
2012-11-28 14:48 ` jakub at gcc dot gnu.org
2012-11-28 16:50 ` jakub at gcc dot gnu.org
2012-11-28 19:59 ` markus at trippelsdorf dot de
2013-10-14  9:24 ` rguenth at gcc dot gnu.org

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).