From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 203463858D32; Mon, 27 Feb 2023 22:15:28 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 203463858D32 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1677536128; bh=GoIU1X6nPDU5XHV+/r83XzXSjMweIZb0nHdOiM9XF+E=; h=From:To:Subject:Date:From; b=J+ixqZTnaKDbIrAhJlJr0/vIWjLEMfac8xIixDGfMflQpCQFUw2YSjbyERLYttWmG zPPSiO6+MgUDc+u2xecQ27mpM4Y79CRbZOodCnyZIKcW11aN+cZTgeD/NOmujX7mhS PbMdfq1qI7+73gk2Id1s0w3IoMJudBEb1AX8ePGk= From: "anlauf at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug fortran/108957] New: Fortran FE memleak with interfaces Date: Mon, 27 Feb 2023 22:15:27 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: fortran X-Bugzilla-Version: 13.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: anlauf at gcc dot gnu.org X-Bugzilla-Status: UNCONFIRMED 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: bug_id short_desc product version bug_status bug_severity priority component assigned_to reporter target_milestone Message-ID: 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 List-Id: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D108957 Bug ID: 108957 Summary: Fortran FE memleak with interfaces Product: gcc Version: 13.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: fortran Assignee: unassigned at gcc dot gnu.org Reporter: anlauf at gcc dot gnu.org Target Milestone: --- The frontend leaks memory for the following sample: module m interface subroutine s () end end interface end =3D=3D7949=3D=3D 3,176 (2,792 direct, 384 indirect) bytes in 1 blocks are d= efinitely lost in loss record 160 of 174 =3D=3D7949=3D=3D at 0x4C39571: calloc (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so) =3D=3D7949=3D=3D by 0x2E5B904: xcalloc (xmalloc.c:164) =3D=3D7949=3D=3D by 0xC6C174: gfc_get_namespace(gfc_namespace*, int) (symbol.cc:2875) =3D=3D7949=3D=3D by 0xC12CB0: parse_interface (parse.cc:3789) =3D=3D7949=3D=3D by 0xC12CB0: parse_spec(gfc_statement) (parse.cc:4150) =3D=3D7949=3D=3D by 0xC173D8: parse_module() (parse.cc:6531) =3D=3D7949=3D=3D by 0xC17851: gfc_parse_file() (parse.cc:6842) =3D=3D7949=3D=3D by 0xC76E02: gfc_be_parse_file() (f95-lang.cc:229) =3D=3D7949=3D=3D by 0x14F78AB: compile_file() (toplev.cc:444) =3D=3D7949=3D=3D by 0x14FA80B: do_compile(bool) (toplev.cc:2125) =3D=3D7949=3D=3D by 0x14FABD4: toplev::main(int, char**) (toplev.cc:2277) =3D=3D7949=3D=3D by 0x2D9DE05: main (main.cc:39)=