From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 23554 invoked by alias); 3 Jul 2010 02:47:59 -0000 Received: (qmail 23513 invoked by uid 48); 3 Jul 2010 02:47:48 -0000 Date: Sat, 03 Jul 2010 02:47:00 -0000 Message-ID: <20100703024748.23512.qmail@sourceware.org> X-Bugzilla-Reason: CC References: Subject: [Bug middle-end/44785] [4.6 Regression] Invalid memory access in gfortran.dg/extends_3.f03 In-Reply-To: Reply-To: gcc-bugzilla@gcc.gnu.org To: gcc-bugs@gcc.gnu.org From: "hjl dot tools at gmail dot com" 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: 2010-07/txt/msg00272.txt.bz2 ------- Comment #1 from hjl dot tools at gmail dot com 2010-07-03 02:47 ------- At -O1, valgrind reports: valgrind --tool=memcheck /export/build/gnu/gcc/build-x86_64-linux/gcc/testsuite/gfortran/../../f951 /export/gnu/import/git/gcc/gcc/testsuite/gfortran.dg/extends_3.f03 -quiet -dumpbase extends_3.f03 -mtune=generic -march=x86-64 -auxbase extends_3 -g -O1 -pedantic-errors -version -o extends_3.s -fintrinsic-modules-path finclude ==2856== Memcheck, a memory error detector ==2856== Copyright (C) 2002-2009, and GNU GPL'd, by Julian Seward et al. ==2856== Using Valgrind-3.5.0 and LibVEX; rerun with -h for copyright info ==2856== Command: /export/build/gnu/gcc/build-x86_64-linux/gcc/testsuite/gfortran/../../f951 /export/gnu/import/git/gcc/gcc/testsuite/gfortran.dg/extends_3.f03 -quiet -dumpbase extends_3.f03 -mtune=generic -march=x86-64 -auxbase extends_3 -g -O3 -pedantic-errors -version -o extends_3.s -fintrinsic-modules-path finclude -O1 ==2856== GNU Fortran (GCC) version 4.6.0 20100703 (experimental) (x86_64-unknown-linux-gnu) compiled by GNU C version 4.4.4 20100503 (Red Hat 4.4.4-2), GMP version 4.3.2, MPFR version 2.4.2-p3, MPC version 0.8.1 GGC heuristics: --param ggc-min-expand=30 --param ggc-min-heapsize=4096 GNU Fortran (GCC) version 4.6.0 20100703 (experimental) (x86_64-unknown-linux-gnu) compiled by GNU C version 4.4.4 20100503 (Red Hat 4.4.4-2), GMP version 4.3.2, MPFR version 2.4.2-p3, MPC version 0.8.1 GGC heuristics: --param ggc-min-expand=30 --param ggc-min-heapsize=4096 ==2856== Invalid read of size 8 ==2856== at 0xDDAE8D: initialize_inlined_parameters (tree-inline.c:2704) ==2856== by 0xDDE4FD: expand_call_inline (tree-inline.c:3927) ==2856== by 0xDDEF8A: gimple_expand_calls_inline (tree-inline.c:4114) ==2856== by 0xDDF662: optimize_inline_calls (tree-inline.c:4264) ==2856== by 0xD907D8: inline_transform (ipa-inline.c:2100) ==2856== by 0x955FEF: execute_one_ipa_transform_pass (passes.c:1465) ==2856== by 0x9560D0: execute_all_ipa_transforms (passes.c:1496) ==2856== by 0xAE2FCC: tree_rest_of_compilation (tree-optimize.c:413) ==2856== by 0xD7C770: cgraph_expand_function (cgraphunit.c:1629) ==2856== by 0xD7CA34: cgraph_expand_all_functions (cgraphunit.c:1708) ==2856== by 0xD7D05C: cgraph_optimize (cgraphunit.c:1964) ==2856== by 0xD7AA85: cgraph_finalize_compilation_unit (cgraphunit.c:1171) ==2856== Address 0x554a748 is 1,160 bytes inside a block of size 2,048 free'd ==2856== at 0x4A04D72: free (vg_replace_malloc.c:325) ==2856== by 0x9591A2: pointer_map_insert (pointer-set.c:275) ==2856== by 0xDCE116: insert_decl_map (tree-inline.c:142) ==2856== by 0xDCF985: remap_type_1 (tree-inline.c:367) ==2856== by 0xDD0713: remap_type (tree-inline.c:469) ==2856== by 0xDCF521: remap_type_1 (tree-inline.c:354) ==2856== by 0xDD0713: remap_type (tree-inline.c:469) ==2856== by 0xDDADA4: initialize_inlined_parameters (tree-inline.c:2695) ==2856== by 0xDDE4FD: expand_call_inline (tree-inline.c:3927) ==2856== by 0xDDEF8A: gimple_expand_calls_inline (tree-inline.c:4114) ==2856== by 0xDDF662: optimize_inline_calls (tree-inline.c:4264) ==2856== by 0xD907D8: inline_transform (ipa-inline.c:2100) ==2856== ==2856== Invalid read of size 8 ==2856== at 0xDDAEB9: initialize_inlined_parameters (tree-inline.c:2705) ==2856== by 0xDDE4FD: expand_call_inline (tree-inline.c:3927) ==2856== by 0xDDEF8A: gimple_expand_calls_inline (tree-inline.c:4114) ==2856== by 0xDDF662: optimize_inline_calls (tree-inline.c:4264) ==2856== by 0xD907D8: inline_transform (ipa-inline.c:2100) ==2856== by 0x955FEF: execute_one_ipa_transform_pass (passes.c:1465) ==2856== by 0x9560D0: execute_all_ipa_transforms (passes.c:1496) ==2856== by 0xAE2FCC: tree_rest_of_compilation (tree-optimize.c:413) ==2856== by 0xD7C770: cgraph_expand_function (cgraphunit.c:1629) ==2856== by 0xD7CA34: cgraph_expand_all_functions (cgraphunit.c:1708) ==2856== by 0xD7D05C: cgraph_optimize (cgraphunit.c:1964) ==2856== by 0xD7AA85: cgraph_finalize_compilation_unit (cgraphunit.c:1171) ==2856== Address 0x554a748 is 1,160 bytes inside a block of size 2,048 free'd ==2856== at 0x4A04D72: free (vg_replace_malloc.c:325) ==2856== by 0x9591A2: pointer_map_insert (pointer-set.c:275) ==2856== by 0xDCE116: insert_decl_map (tree-inline.c:142) ==2856== by 0xDCF985: remap_type_1 (tree-inline.c:367) ==2856== by 0xDD0713: remap_type (tree-inline.c:469) ==2856== by 0xDCF521: remap_type_1 (tree-inline.c:354) ==2856== by 0xDD0713: remap_type (tree-inline.c:469) ==2856== by 0xDDADA4: initialize_inlined_parameters (tree-inline.c:2695) ==2856== by 0xDDE4FD: expand_call_inline (tree-inline.c:3927) ==2856== by 0xDDEF8A: gimple_expand_calls_inline (tree-inline.c:4114) ==2856== by 0xDDF662: optimize_inline_calls (tree-inline.c:4264) ==2856== by 0xD907D8: inline_transform (ipa-inline.c:2100) ==2856== -- hjl dot tools at gmail dot com changed: What |Removed |Added ---------------------------------------------------------------------------- Summary|[4.6 Regression] FAIL: |[4.6 Regression] Invalid |gfortran.dg/extends_3.f03 |memory access in | |gfortran.dg/extends_3.f03 Target Milestone|--- |4.6.0 http://gcc.gnu.org/bugzilla/show_bug.cgi?id=44785