This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug gcov/profile/26570] -fprofile-generate -fprofile-use cause memory corruption immediately
- From: "pinskia at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 5 Mar 2006 23:56:13 -0000
- Subject: [Bug gcov/profile/26570] -fprofile-generate -fprofile-use cause memory corruption immediately
- References: <bug-26570-7094@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #5 from pinskia at gcc dot gnu dot org 2006-03-05 23:56 -------
It does not ICE on the mainline but valgrind is still unhappy:
==5383== Invalid free() / delete / delete[]
==5383== at 0x11B1DA33: free (vg_replace_malloc.c:235)
==5383== by 0x80680D: value_profile_transformations (value-prof.h:65)
==5383== by 0x888F5B: tree_profiling (tree-profile.c:244)
==5383== by 0x88764A: execute_one_pass (passes.c:862)
==5383== by 0x8877BB: execute_pass_list (passes.c:909)
==5383== by 0x887840: execute_ipa_pass_list (passes.c:931)
==5383== by 0x8D8023: cgraph_optimize (cgraphunit.c:1372)
==5383== by 0x47DFE9: cp_finish_file (decl2.c:3110)
==5383== by 0x52A9B9: c_common_parse_file (c-opts.c:1165)
==5383== by 0x858E4D: toplev_main (toplev.c:999)
==5383== by 0x11C4F47A: __libc_start_main (in /lib/libc-2.3.5.so)
==5383== by 0x402769: ??? (start.S:113)
==5383== Address 0x12050238 is 0 bytes inside a block of size 40 free'd
==5383== at 0x11B1DA33: free (vg_replace_malloc.c:235)
==5383== by 0x80669A: branch_prob (value-prof.h:65)
==5383== by 0x888F38: tree_profiling (tree-profile.c:240)
==5383== by 0x88764A: execute_one_pass (passes.c:862)
==5383== by 0x8877BB: execute_pass_list (passes.c:909)
==5383== by 0x887840: execute_ipa_pass_list (passes.c:931)
==5383== by 0x8D8023: cgraph_optimize (cgraphunit.c:1372)
==5383== by 0x47DFE9: cp_finish_file (decl2.c:3110)
==5383== by 0x52A9B9: c_common_parse_file (c-opts.c:1165)
==5383== by 0x858E4D: toplev_main (toplev.c:999)
==5383== by 0x11C4F47A: __libc_start_main (in /lib/libc-2.3.5.so)
==5383== by 0x402769: ??? (start.S:113)
--
pinskia at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |pinskia at gcc dot gnu dot
| |org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=26570