From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 17448 invoked by alias); 5 Mar 2006 23:53:21 -0000 Received: (qmail 17434 invoked by uid 48); 5 Mar 2006 23:53:18 -0000 Date: Sun, 05 Mar 2006 23:53:00 -0000 Message-ID: <20060305235318.17433.qmail@sourceware.org> X-Bugzilla-Reason: CC References: Subject: [Bug gcov/profile/26570] -fprofile-generate -fprofile-use cause memory corruption immediately In-Reply-To: Reply-To: gcc-bugzilla@gcc.gnu.org To: gcc-bugs@gcc.gnu.org From: "pinskia at gcc dot gnu dot org" Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org X-SW-Source: 2006-03/txt/msg00557.txt.bz2 List-Id: ------- Comment #4 from pinskia at gcc dot gnu dot org 2006-03-05 23:53 ------- Ok, compiling comment #1 with -O2 -fprofile-generate -fprofile-use, I do get the failures. Here is the valgrid report: ==5355== Invalid free() / delete / delete[] ==5355== at 0x11B1DA33: free (vg_replace_malloc.c:235) ==5355== by 0x6E915D: value_profile_transformations (value-prof.h:65) ==5355== by 0x74E3CB: tree_profiling (tree-profile.c:250) ==5355== by 0x74CD55: execute_one_pass (passes.c:827) ==5355== by 0x74CE4B: execute_pass_list (passes.c:859) ==5355== by 0x74CED5: execute_ipa_pass_list (passes.c:881) ==5355== by 0x787409: cgraph_optimize (cgraphunit.c:1223) ==5355== by 0x43F3AE: cp_finish_file (decl2.c:3115) ==5355== by 0x4AD1B9: c_common_parse_file (c-opts.c:1144) ==5355== by 0x7303C7: toplev_main (toplev.c:991) ==5355== by 0x11C4F47A: __libc_start_main (in /lib/libc-2.3.5.so) ==5355== by 0x402659: ??? (start.S:113) ==5355== Address 0x11FFA378 is 0 bytes inside a block of size 40 free'd ==5355== at 0x11B1DA33: free (vg_replace_malloc.c:235) ==5355== by 0x6E8D2A: branch_prob (value-prof.h:65) ==5355== by 0x74E3A8: tree_profiling (tree-profile.c:246) ==5355== by 0x74CD55: execute_one_pass (passes.c:827) ==5355== by 0x74CE4B: execute_pass_list (passes.c:859) ==5355== by 0x74CED5: execute_ipa_pass_list (passes.c:881) ==5355== by 0x787409: cgraph_optimize (cgraphunit.c:1223) ==5355== by 0x43F3AE: cp_finish_file (decl2.c:3115) ==5355== by 0x4AD1B9: c_common_parse_file (c-opts.c:1144) ==5355== by 0x7303C7: toplev_main (toplev.c:991) ==5355== by 0x11C4F47A: __libc_start_main (in /lib/libc-2.3.5.so) ==5355== by 0x402659: ??? (start.S:113) -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=26570