[Bug fortran/125584] gfortran.dg/corray tests may use excessive space in /tmp
cvs-commit at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Tue Jun 16 12:04:21 GMT 2026
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=125584
--- Comment #16 from GCC Commits <cvs-commit at gcc dot gnu.org> ---
The master branch has been updated by Rainer Orth <ro@gcc.gnu.org>:
https://gcc.gnu.org/g:a5c24db958b97c6f804636a1c8d0b25b4b167702
commit r17-1587-ga5c24db958b97c6f804636a1c8d0b25b4b167702
Author: Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
Date: Tue Jun 16 14:04:04 2026 +0200
testsuite: Limit shared memory use of coarray tests [PR125584]
As discussed in PR testsuite/125584, the gfortran.dg/coarray tests with
-lcaf_shmem require excessive amounts of backing store for their shared
memory images: for 64-bit tests, each test uses 4 GB images.
On Solaris, the mapped files reside in /tmp/.LIBRT/SHM, which is tmpfs.
During parallel testing, several such tests can run in parallel, leading
to excessive VM use, in particular on targets like Solaris that don't
use lazy allocation. This is unacceptable since the testsuite defaults
need to be safe for all targets.
The tests PASS just fine when limiting GFORTRAN_SHARED_MEMORY_SIZE to 2M
instead. To allow for testing with either the default or a different
size, setting GCC_TEST_RUN_EXPENSIVE to a non-empty string allows to
override this.
Tested on amd64-pc-solaris2.11 and x86_64-pc-linux-gnu.
2026-06-13 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
gcc/testsuite:
PR testsuite/125584
* gfortran.dg/coarray/caf.exp: Default GFORTRAN_SHARED_MEMORY_SIZE
to 2 MB unless running expensive tests.
More information about the Gcc-bugs
mailing list