Intel® Fortran Compiler
Build applications that can scale for the future with optimized code designed for Intel® Xeon® and compatible processors.

Coarray leakage

JFH
New Contributor I
878 Views

This program using an allocatable coarray appears to leak memory. Have I misinterpreted the warning, or is there a bug in ifx or my program?
```
program coarray
character(:),allocatable::string[:]
allocate (character(11):: string[*])
string = 'Hello world'
print "(A)",string
deallocate (string)
end program coarray
```
output from ifx 2025.2.0 with -coarray=single in a Linux Ubuntu system:
```
Hello world
[WARNING] yaksa: 1 leaked handle pool objects
```

Labels (1)
0 Kudos
1 Reply
Ron_Green
Moderator
465 Views

I am not seeing that error on my Ubuntu system.  What compiler options and Ubu version do you have?

$ ifx -coarray=single -g -traceback -O0 leak.f90
rwgreen@orcsle163:~/quad/triage$ ./a.out
Hello world
$ cat /etc/lsb-release 
DISTRIB_ID=Ubuntu
DISTRIB_RELEASE=24.10
DISTRIB_CODENAME=oracular
DISTRIB_DESCRIPTION="Ubuntu 24.10"
0 Kudos
Reply