From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 3761 invoked by alias); 16 Nov 2012 18:57:53 -0000 Received: (qmail 3643 invoked by uid 48); 16 Nov 2012 18:57:32 -0000 From: "hjl.tools at gmail dot com" To: gcc-bugs@gcc.gnu.org Subject: [Bug other/55358] New: Valgrind errors Date: Fri, 16 Nov 2012 18:57:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: other X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: hjl.tools at gmail dot com X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Changed-Fields: Message-ID: X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated Content-Type: text/plain; charset="UTF-8" MIME-Version: 1.0 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org X-SW-Source: 2012-11/txt/msg01547.txt.bz2 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)