Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 19 Aug 2023 06:31:20 +0000
From:      bugzilla-noreply@freebsd.org
To:        bugs@FreeBSD.org
Subject:   [Bug 273224] After process finishes shared memory resourced aren't released: shmget() failed: No space left on device
Message-ID:  <bug-273224-227@https.bugs.freebsd.org/bugzilla/>

next in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D273224

            Bug ID: 273224
           Summary: After process finishes shared memory resourced aren't
                    released: shmget() failed: No space left on device
           Product: Base System
           Version: 13.2-STABLE
          Hardware: Any
                OS: Any
            Status: New
          Severity: Affects Only Me
          Priority: ---
         Component: kern
          Assignee: bugs@FreeBSD.org
          Reporter: yuri@freebsd.org

I use x11vnc which uses shmget(2).

The system was up for 2+ months and x11vnc was launched maybe hundreds of
times.

Today it failed all of a sudden:
> shmget() failed: No space left on device

x11vnc is launched as a new process every time the user connects to the loc=
al
display.

This means that when x11vnc finishes it doesn't release resources that
shmget(2) allocates.

Ultimately shmget(2) becomes a time bomb which blows up eventually and x11v=
nc
(and probably all other software that uses shmget(2)) becomes unusable until
the system is rebooted.


FreeBSD 13.2


---References---
* Someone had the same problem on Linux 12 years ago:
https://blog.dhampir.no/content/fixing-shmget-failed-no-space-left-on-device

--=20
You are receiving this mail because:
You are the assignee for the bug.=



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-273224-227>