Summary: | Xorg does not close old /dev/dri/card0 connections | ||||||||
---|---|---|---|---|---|---|---|---|---|
Product: | xorg | Reporter: | Isabelle <blacklemon67> | ||||||
Component: | Server/Ext/DRI | Assignee: | Xorg Project Team <xorg-team> | ||||||
Status: | RESOLVED MOVED | QA Contact: | Xorg Project Team <xorg-team> | ||||||
Severity: | normal | ||||||||
Priority: | medium | Keywords: | patch | ||||||
Version: | unspecified | ||||||||
Hardware: | x86-64 (AMD64) | ||||||||
OS: | Linux (All) | ||||||||
Whiteboard: | |||||||||
i915 platform: | i915 features: | ||||||||
Attachments: |
|
Description
Isabelle
2014-11-24 15:34:09 UTC
Hi, I can confirm that issue is still present in 2016: I'm running archlinux with the latest xorg. Steps to reproduce: 1. Start X server (via a display manager or xinitrc it doesn't matter). 2. Login to another tty. 3. Switch between them and use 'lsof -p ($pidof Xorg) | wc -l to monitor. Each time, the number will increase, till it reaches the limit and even above (I got 702 last time), and start throwing 'maximum number of clients reached' errors. Please attach the Xorg log file corresponding to the problem. Created attachment 122274 [details]
Xorg log file
Created attachment 122275 [details]
outpout of lsof command
Hi, here's the output of 'lsof -p $(pidof Xorg)' and my xorg0.log files. I hope this will be useful :) If you want other files, just tell me and I'll attach them too. Thanks diff --git a/hw/xfree86/os-support/linux/systemd-logind.c b/hw/xfree86/os-support/linux/systemd-logind.c index 13784d1..9f196ef 100644 --- a/hw/xfree86/os-support/linux/systemd-logind.c +++ b/hw/xfree86/os-support/linux/systemd-logind.c @@ -417,9 +417,10 @@ message_filter(DBusConnection * connection, DBusMessage * message, void *data) /* info->vt_active gets set by systemd_logind_vtenter() */ info->active = TRUE; - if (pdev) + if (pdev) { + close(fd); pdev->flags &= ~XF86_PDEV_PAUSED; - else + } else systemd_logind_set_input_fd_for_all_devs(major, minor, fd, info->vt_active); Calling comment #6 a "patch" is a bit generous, but. -- 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/204. |
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.