From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 7C4B43858408; Tue, 19 Oct 2021 07:35:17 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 7C4B43858408 From: "marxin at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug fortran/102817] [12 Regression] ICE in gfc_clear_shape, at fortran/expr.c:422 since r12-4278-g74ccca380cde5e79 Date: Tue, 19 Oct 2021 07:35:17 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: fortran X-Bugzilla-Version: 12.0 X-Bugzilla-Keywords: ice-on-valid-code X-Bugzilla-Severity: normal X-Bugzilla-Who: marxin at gcc dot gnu.org X-Bugzilla-Status: NEW X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: short_desc cf_reconfirmed_on bug_status everconfirmed cc Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-BeenThere: gcc-bugs@gcc.gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Gcc-bugs mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 19 Oct 2021 07:35:17 -0000 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D102817 Martin Li=C5=A1ka changed: What |Removed |Added ---------------------------------------------------------------------------- Summary|[12 Regression] ICE in |[12 Regression] ICE in |gfc_clear_shape, at |gfc_clear_shape, at |fortran/expr.c:422 |fortran/expr.c:422 since | |r12-4278-g74ccca380cde5e79 Last reconfirmed| |2021-10-19 Status|UNCONFIRMED |NEW Ever confirmed|0 |1 CC| |anlauf at gcc dot gnu.org, | |marxin at gcc dot gnu.org --- Comment #2 from Martin Li=C5=A1ka --- Started with r12-4278-g74ccca380cde5e79 with: $ valgrind --trace-children=3Dyes gfortran pr102817.f90 -c =3D=3D19067=3D=3D Memcheck, a memory error detector =3D=3D19067=3D=3D Copyright (C) 2002-2017, and GNU GPL'd, by Julian Seward = et al. =3D=3D19067=3D=3D Using Valgrind-3.17.0.GIT and LibVEX; rerun with -h for c= opyright info =3D=3D19067=3D=3D Command: gfortran pr102817.f90 -c =3D=3D19067=3D=3D=20 =3D=3D19074=3D=3D Memcheck, a memory error detector =3D=3D19074=3D=3D Copyright (C) 2002-2017, and GNU GPL'd, by Julian Seward = et al. =3D=3D19074=3D=3D Using Valgrind-3.17.0.GIT and LibVEX; rerun with -h for c= opyright info =3D=3D19074=3D=3D Command: /home/marxin/bin/gcc/libexec/gcc/x86_64-pc-linux-gnu/12.0.0/f951 pr102817.f= 90 -quiet -dumpbase pr102817.f90 -dumpbase-ext .f90 -mtune=3Dgeneric -march=3D= x86-64 -fintrinsic-modules-path /home/marxin/bin/gcc/lib64/gcc/x86_64-pc-linux-gnu/12.0.0/finclude -fpre-include=3D/usr/include/finclude/math-vector-fortran.h -o /tmp/ccfJ3EK= Q.s =3D=3D19074=3D=3D=20 =3D=3D19074=3D=3D Invalid read of size 4 =3D=3D19074=3D=3D at 0x4B52590: __gmpz_clear (clear.c:38) =3D=3D19074=3D=3D by 0x8F92DB: gfc_clear_shape(__mpz_struct (*) [1], int) (expr.c:422) =3D=3D19074=3D=3D by 0x8F9314: gfc_free_shape(__mpz_struct (**) [1], int) (expr.c:432) =3D=3D19074=3D=3D by 0x8F9417: free_expr0(gfc_expr*) (expr.c:513) =3D=3D19074=3D=3D by 0x8F95E4: gfc_replace_expr(gfc_expr*, gfc_expr*) (e= xpr.c:626) =3D=3D19074=3D=3D by 0x8FE3F2: remove_subobject_ref (expr.c:1483) =3D=3D19074=3D=3D by 0x8FE3F2: simplify_const_ref(gfc_expr*) (expr.c:200= 1) =3D=3D19074=3D=3D by 0x8FEE71: gfc_simplify_expr(gfc_expr*, int) (expr.c= :2314) =3D=3D19074=3D=3D by 0x8FF267: simplify_parameter_variable(gfc_expr*, in= t) [clone .part.0] (expr.c:2143) =3D=3D19074=3D=3D by 0x8FF0D0: simplify_parameter_variable (expr.c:2086) =3D=3D19074=3D=3D by 0x8FF0D0: gfc_simplify_expr(gfc_expr*, int) (expr.c= :2281) =3D=3D19074=3D=3D by 0x8FEBE6: simplify_intrinsic_op (expr.c:1190) =3D=3D19074=3D=3D by 0x8FEBE6: gfc_simplify_expr(gfc_expr*, int) (expr.c= :2270) =3D=3D19074=3D=3D by 0x97EFD1: resolve_operator(gfc_expr*) (resolve.c:44= 70) =3D=3D19074=3D=3D by 0x97B777: gfc_resolve_expr (resolve.c:7136) =3D=3D19074=3D=3D by 0x97B777: gfc_resolve_expr(gfc_expr*) (resolve.c:71= 05) =3D=3D19074=3D=3D Address 0x51a4450 is 0 bytes after a block of size 16 al= loc'd =3D=3D19074=3D=3D at 0x484315C: calloc (vg_replace_malloc.c:1117) =3D=3D19074=3D=3D by 0x1EA2BD4: xcalloc (xmalloc.c:164) =3D=3D19074=3D=3D by 0x8F9A35: gfc_copy_shape(__mpz_struct (*) [1], int) (expr.c:814) =3D=3D19074=3D=3D by 0x8F9BC3: gfc_copy_expr(gfc_expr*) (expr.c:405) =3D=3D19074=3D=3D by 0x8FF2C8: simplify_parameter_variable(gfc_expr*, in= t) [clone .part.0] (expr.c:2127) =3D=3D19074=3D=3D by 0x8FF0D0: simplify_parameter_variable (expr.c:2086) =3D=3D19074=3D=3D by 0x8FF0D0: gfc_simplify_expr(gfc_expr*, int) (expr.c= :2281) =3D=3D19074=3D=3D by 0x8FEBE6: simplify_intrinsic_op (expr.c:1190) =3D=3D19074=3D=3D by 0x8FEBE6: gfc_simplify_expr(gfc_expr*, int) (expr.c= :2270) =3D=3D19074=3D=3D by 0x97EFD1: resolve_operator(gfc_expr*) (resolve.c:44= 70) =3D=3D19074=3D=3D by 0x97B777: gfc_resolve_expr (resolve.c:7136) =3D=3D19074=3D=3D by 0x97B777: gfc_resolve_expr(gfc_expr*) (resolve.c:71= 05) =3D=3D19074=3D=3D by 0x986732: gfc_resolve_code(gfc_code*, gfc_namespace= *) (resolve.c:11908) =3D=3D19074=3D=3D by 0x98ADA1: resolve_codes(gfc_namespace*) (resolve.c:= 17512) =3D=3D19074=3D=3D by 0x975E38: gfc_resolve (resolve.c:17547) =3D=3D19074=3D=3D by 0x975E38: gfc_resolve(gfc_namespace*) (resolve.c:17= 526)=