Landing: 0bb593752114
Project / Subsystem
gcc / libgfortran
Date
2026-09-19
Author
Jerry DeLisle
Commit
0bb59375211478da9d4f219b829bf66924387bbe
Source
github
Perf win
No
Breaking
No
All attributes
- project
- gcc
- subsystem
- libgfortran
- patch_id
- —
- commit_hash
- 0bb59375211478da9d4f219b829bf66924387bbe
- source_type
- github
- headline
- libgfortran: Fix coarray part allocation for child teams
- tldr
- libgfortran's coarray implementation now allocates memory for all program images, preventing buffer overflows in child teams.
- author
- Jerry DeLisle
- outcome
- committed
- performance_win
- false
- breaking_change
- false
- series_id
- —
- series_parts
- []
- tags
-
- • coarray
- • bugfix
- • memory
- discussion_id_link
- —
- bugzilla_pr
- —
- date
- 2026-09-19T00:00:00.000Z
This commit corrects an issue in libgfortran’s coarray implementation where memory for coarray parts was allocated based on the current team’s size, not the total program images. This led to buffer overflows when child teams were formed, as images with indices exceeding the child team’s size wrote past the allocated memory. The fix ensures that a coarray part is allocated for every image in the program, guaranteeing sufficient space regardless of team structure.