public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug fortran/94109] New: Memory leak introduced in 8.3.0->8.3.1
@ 2020-03-09 19:31 antony at cosmologist dot info
  2020-04-11 19:01 ` [Bug fortran/94109] " tkoenig at gcc dot gnu.org
                   ` (22 more replies)
  0 siblings, 23 replies; 24+ messages in thread
From: antony at cosmologist dot info @ 2020-03-09 19:31 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=94109

            Bug ID: 94109
           Summary: Memory leak introduced in 8.3.0->8.3.1
           Product: gcc
           Version: 8.3.1
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: fortran
          Assignee: unassigned at gcc dot gnu.org
          Reporter: antony at cosmologist dot info
  Target Milestone: ---

I see an apparent memory leak introduced in running code between

ubuntu-toolchain-r/test gfortran 8.3.0 OK

Source 20200106 build gfortran 8.3.1 bad (also current 8 and 10 git heads).

I have not tracked down where it is coming from, but there is a complete
example on git with travis reports:

8.3.1 issue
https://travis-ci.org/cmbant/CAMB/jobs/660297689

GCC 9 9.2.1 20191102 issue (with otherwise same config as 8.3.0 below)
https://travis-ci.org/cmbant/CAMB/jobs/660297688

8.3.0 OK
https://travis-ci.org/cmbant/CAMB/jobs/660297687

(see memory counts at bottom of trace as function of loop count, produced from
python).

To produce output locally do
git clone --branch test https://github.com/cmbant/CAMB.git

and run setup.py and then setup.py test (with py3.6+).

I'm hoping this narrowish version window will enable someone to guess at the
cause of the issue. I looked at this because someone reported a large memory
leak on gfortran 9.2 OS X that cannot be reproduced with ifort, or gfortran
versions 6-8.3.0 (on linux the leak seems much smaller).

The code uses multiple nested allocatable F2003 class types.

^ permalink raw reply	[flat|nested] 24+ messages in thread

end of thread, other threads:[~2020-06-15 18:54 UTC | newest]

Thread overview: 24+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-03-09 19:31 [Bug fortran/94109] New: Memory leak introduced in 8.3.0->8.3.1 antony at cosmologist dot info
2020-04-11 19:01 ` [Bug fortran/94109] " tkoenig at gcc dot gnu.org
2020-04-11 19:04 ` antony at cosmologist dot info
2020-05-04  9:27 ` antony at cosmologist dot info
2020-05-18 15:47 ` antony at cosmologist dot info
2020-06-01 19:49 ` tkoenig at gcc dot gnu.org
2020-06-03  8:11 ` antony at cosmologist dot info
2020-06-03 11:17 ` antony at cosmologist dot info
2020-06-03 12:31 ` tkoenig at gcc dot gnu.org
2020-06-03 13:23 ` dominiq at lps dot ens.fr
2020-06-03 14:55 ` tkoenig at gcc dot gnu.org
2020-06-04  9:27 ` antony at cosmologist dot info
2020-06-04 10:45 ` antony at cosmologist dot info
2020-06-04 12:34 ` tkoenig at gcc dot gnu.org
2020-06-07  9:56 ` [Bug fortran/94109] [8/9/10/11 Regression] " tkoenig at gcc dot gnu.org
2020-06-07 13:54 ` tkoenig at gcc dot gnu.org
2020-06-14 11:03 ` cvs-commit at gcc dot gnu.org
2020-06-14 11:45 ` cvs-commit at gcc dot gnu.org
2020-06-14 12:06 ` cvs-commit at gcc dot gnu.org
2020-06-14 12:07 ` cvs-commit at gcc dot gnu.org
2020-06-14 12:09 ` tkoenig at gcc dot gnu.org
2020-06-14 20:37 ` antony at cosmologist dot info
2020-06-14 21:27 ` tkoenig at gcc dot gnu.org
2020-06-15 18:54 ` tkoenig at gcc dot gnu.org

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).