Bug 47510 - Xephyr leaks shared memory segments
Summary: Xephyr leaks shared memory segments
Status: RESOLVED MOVED
Alias: None
Product: xorg
Classification: Unclassified
Component: Server/DDX/Xephyr (show other bugs)
Version: unspecified
Hardware: All All
: medium normal
Assignee: Xorg Project Team
QA Contact: Xorg Project Team
URL:
Whiteboard:
Keywords: patch
Depends on:
Blocks: xserver-1.13
  Show dependency treegraph
 
Reported: 2012-03-19 07:20 UTC by Alex Plotnick
Modified: 2018-12-13 18:27 UTC (History)
4 users (show)

See Also:
i915 platform:
i915 features:


Attachments
Always remove shared memory segments (1.23 KB, patch)
2012-03-19 07:20 UTC, Alex Plotnick
no flags Details | Splinter Review
Always remove shared memory segments(using xcb) (1.36 KB, patch)
2018-01-12 06:48 UTC, Junichi Tamura
no flags Details | Splinter Review

Description Alex Plotnick 2012-03-19 07:20:37 UTC
Created attachment 58684 [details] [review]
Always remove shared memory segments

Whenever possible, Xephyr uses a shared memory XImage for its screen buffer. However, that shared memory segment is not removed, and so persists even after the server exits.

The attached patch uses shmctl to always remove the shared memory segment, causing it to be automatically deleted when the last attached process exits. (It also fixes a few typos in the immediate vicinity.)
Comment 1 Alan Coopersmith 2012-03-19 08:11:43 UTC
Thanks for the bug report.   Patches to the xserver don't get applied until
they're submitted to the xorg-devel mailing list for review though.

http://www.x.org/wiki/Development/Documentation/SubmittingPatches
Comment 2 Junichi Tamura 2018-01-12 06:48:30 UTC
Created attachment 136673 [details] [review]
Always remove shared memory segments(using xcb)

Would you tell me the current situation of this bug.

I confirmed the following Web page(xorg-devel mailing list archive page), but this bug seems to have not been solved yet at xorg-x11-server-1.17.2.

https://lists.x.org/archives/xorg-devel/2012-March/029934.html

I needed to fix this bug, so I re-create the patch file to fit the version 1.17.2 using the xcb function.
Comment 3 GitLab Migration User 2018-12-13 18:27:38 UTC
-- GitLab Migration Automatic Message --

This bug has been migrated to freedesktop.org's GitLab instance and has been closed from further activity.

You can subscribe and participate further through the new bug through this link to our GitLab instance: https://gitlab.freedesktop.org/xorg/xserver/issues/130.


Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.