- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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
```
Link Copied
1 Reply
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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"

Reply
Topic Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page