From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id AE6D43870845; Mon, 27 Apr 2020 21:38:56 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org AE6D43870845 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1588023536; bh=L3Jht2kTuVKRiFIweb/PUbwV7p+Psw1nZdf5qljeiks=; h=From:To:Subject:Date:In-Reply-To:References:From; b=U4ruzelHqGimYeBthE0O0h6xqezrWv8QDUdubTv/HAd3dDNtaH4VcPkMEJYMHqnPw IuRh50DRhqLhvenbRQssuMqi+onFvQmeHS1L9L3zjB1rpMCynml6By4lbow8egdqnq USIK3082OvvPVzNNLEUtLeJckHcilR+tXPLHT6QA= From: "tkoenig at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug fortran/94788] [10 Regression] Severe regression leading to double free in tcache Date: Mon, 27 Apr 2020 21:38:56 +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: 10.0 X-Bugzilla-Keywords: wrong-code X-Bugzilla-Severity: normal X-Bugzilla-Who: tkoenig at gcc dot gnu.org X-Bugzilla-Status: NEW X-Bugzilla-Resolution: X-Bugzilla-Priority: P4 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: 10.0 X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_status cf_reconfirmed_on everconfirmed 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: Mon, 27 Apr 2020 21:38:56 -0000 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D94788 Thomas Koenig changed: What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |NEW Last reconfirmed| |2020-04-27 Ever confirmed|0 |1 --- Comment #17 from Thomas Koenig --- Thanks for the reproducer, this is definitely fishy. valgrind shows: =3D=3D21250=3D=3D Invalid free() / delete / delete[] / realloc() =3D=3D21250=3D=3D at 0x4C2F3B9: free (vg_replace_malloc.c:540) =3D=3D21250=3D=3D by 0x804071: __simulations_uti_MOD_simulations_10 (simulations_uti.f90:42) =3D=3D21250=3D=3D by 0x40A504: __unit_tests_MOD_test (unit_tests.f90:175) =3D=3D21250=3D=3D by 0x804EC5: __simulations_ut_MOD_simulations_test (simulations_ut.f90:45) =3D=3D21250=3D=3D by 0x806AC5: whizard_check.0 (in /home/ig25/Downloads/Whiz/whizard_test) =3D=3D21250=3D=3D by 0x80771A: MAIN__ (in /home/ig25/Downloads/Whiz/whiz= ard_test) =3D=3D21250=3D=3D by 0x808733: main (in /home/ig25/Downloads/Whiz/whizar= d_test) =3D=3D21250=3D=3D Address 0x959ae00 is 0 bytes inside a block of size 20 f= ree'd =3D=3D21250=3D=3D at 0x4C2F3B9: free (vg_replace_malloc.c:540) =3D=3D21250=3D=3D by 0x8009FE: __simulations_uti_MOD_simulations_10 (simulations_uti.f90:124) =3D=3D21250=3D=3D by 0x40A504: __unit_tests_MOD_test (unit_tests.f90:175) =3D=3D21250=3D=3D by 0x804EC5: __simulations_ut_MOD_simulations_test (simulations_ut.f90:45) =3D=3D21250=3D=3D by 0x806AC5: whizard_check.0 (in /home/ig25/Downloads/Whiz/whizard_test) =3D=3D21250=3D=3D by 0x80771A: MAIN__ (in /home/ig25/Downloads/Whiz/whiz= ard_test) =3D=3D21250=3D=3D by 0x808733: main (in /home/ig25/Downloads/Whiz/whizar= d_test) =3D=3D21250=3D=3D Block was alloc'd at =3D=3D21250=3D=3D at 0x4C2E221: malloc (vg_replace_malloc.c:309) =3D=3D21250=3D=3D by 0x73EDEA: __rt_data_MOD_rt_data_activate (rt_data.f= 90:509) =3D=3D21250=3D=3D by 0x7FFEF2: __simulations_uti_MOD_simulations_10 (simulations_uti.f90:104) =3D=3D21250=3D=3D by 0x40A504: __unit_tests_MOD_test (unit_tests.f90:175) =3D=3D21250=3D=3D by 0x804EC5: __simulations_ut_MOD_simulations_test (simulations_ut.f90:45) =3D=3D21250=3D=3D by 0x806AC5: whizard_check.0 (in /home/ig25/Downloads/Whiz/whizard_test) =3D=3D21250=3D=3D by 0x80771A: MAIN__ (in /home/ig25/Downloads/Whiz/whiz= ard_test) =3D=3D21250=3D=3D by 0x808733: main (in /home/ig25/Downloads/Whiz/whizar= d_test) =3D=3D21250=3D=3D=20 and lots more.=