https://gcc.gnu.org/bugzilla/show_bug.cgi?id=127753

            Bug ID: 127753
           Summary: caf_shmem: shared memory object left in /dev/shm when
                    the program is stopped by a signal
           Product: gcc
           Version: 17.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: libfortran
          Assignee: unassigned at gcc dot gnu.org
          Reporter: jvdelisle at gcc dot gnu.org
  Target Milestone: ---

Normal termination, STOP, ERROR STOP, FAIL IMAGE and an image killed
by a signal all remove /dev/shm/gfor-shm-<pid>.  When the supervisor
process itself receives SIGTERM or SIGINT (a timeout, ^C), it kills
the images and exits without unlinking the object, so every such run
leaks one; a machine that runs the testsuite collects hundreds of
them.

---- sleep.f90 ----
program sleep_forever
  implicit none
  sync all
  do
  end do
end program sleep_forever

Originally reported in PR127738

Reply via email to