Hi,

The follwing small sample program seems to produce exsessive handle/memory leak
on Windows XP SP2. This affects programs, where a high number of write
statements are used to manipulate character strings.

$ less test.f90
program test
  implicit none
  character(len=10000) :: string
  integer :: m,n
  do m = 1,10000
     print *,'Check memory and handles and press ENTER...'
     call flush
     read(*,*)
     do n = 1,10000
        write(string,*) 'some characters'
     end do
  end do
end program test
$ gfortran test.f90 -O -o test.exe
$ ./test.exe

Regards,
ML


-- 
           Summary: write statement leaks handles/memory on windows xp
           Product: gcc
           Version: 4.3.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: fortran
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: mikko dot lyly at csc dot fi


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=35063

Reply via email to