https://gcc.gnu.org/bugzilla/show_bug.cgi?id=88137
Bug ID: 88137 Summary: BACKTRACE seems to have a memory leak Product: gcc Version: 8.2.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: fortran Assignee: unassigned at gcc dot gnu.org Reporter: longb at cray dot com Target Milestone: --- Simple test case from site: > cat test.f90 program test implicit none integer :: i do i= 1,10000 call backtrace() enddo end program test Tracing memory usage with gfortran 4.9.3: Process Memory Details Virtual maximum (MB) 1.262 Resident maximum (MB) 0.930 Virtual at exit (MB) 1.258 Resident at exit (MB) 0.930 But with gfortran 8.2.0 Process Memory Details Virtual maximum (MB) 48282.594 Resident maximum (MB) 31592.816 Virtual at exit (MB) 48282.594 Resident at exit (MB) 31592.816 While the test case is artificial, it does illustrate that calls to backtrace seems to accumulate memory usage.