Bug 47510

Summary: Xephyr leaks shared memory segments
Product: xorg Reporter: Alex Plotnick <shrike>
Component: Server/DDX/XephyrAssignee: Xorg Project Team <xorg-team>
Status: RESOLVED MOVED QA Contact: Xorg Project Team <xorg-team>
Severity: normal    
Priority: medium CC: hramrach, marcoz, ru339bugzilla, shrike
Version: unspecifiedKeywords: patch
Hardware: All   
OS: All   
Whiteboard:
i915 platform: i915 features:
Bug Depends on:    
Bug Blocks: 44202    
Attachments:
Description Flags
Always remove shared memory segments
none
Always remove shared memory segments(using xcb) none

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.