Mir

Android Mir servers leak fds when a client disconnects.

Bug #1498361 reported by Daniel van Vugt
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Mir
Expired
High
Unassigned
mir (Ubuntu)
Expired
High
Unassigned

Bug Description

Android Mir servers leak fds when a client disconnects.

This bug originated in: https://bugs.launchpad.net/canonical-devices-system-image/+bug/1495871/comments/18

However I can now reproduce it using the Mir demo servers. So it seems to be a low level Mir bug. And only seems to happen on android, not on desktop/gbm (although we have had similar, see bug 1185183).

On arale, when a client disconnects, the server gains a number of these fds:

> lrwx------ 1 root root 64 Sep 22 08:34 57 -> anon_inode:dmabuf
> lrwx------ 1 root root 64 Sep 22 08:34 58 -> /dev/pvrsrvkm
> lrwx------ 1 root root 64 Sep 22 08:34 59 -> /dev/pvrsrvkm

Tags: android
description: updated
Changed in mir:
milestone: none → 0.17.0
Revision history for this message
Daniel van Vugt (vanvugt) wrote :

Seems to mostly happen with hardware (GL) clients. Software clients use the same fds while running but somehow get cleaned up better.

Changed in mir (Ubuntu):
importance: Undecided → High
description: updated
Revision history for this message
Daniel van Vugt (vanvugt) wrote :

Not sure about this now. Results are erratic. Starting a new client usually results in fd leaks but restarting the one just killed does not. Also, the "leaks" seem to be just bloat; occasionally growing, and occasionally dropping.

Changed in mir:
status: New → Incomplete
Changed in mir (Ubuntu):
status: New → Incomplete
Changed in mir:
milestone: 0.17.0 → none
Revision history for this message
Launchpad Janitor (janitor) wrote :

[Expired for Mir because there has been no activity for 60 days.]

Changed in mir:
status: Incomplete → Expired
Revision history for this message
Launchpad Janitor (janitor) wrote :

[Expired for mir (Ubuntu) because there has been no activity for 60 days.]

Changed in mir (Ubuntu):
status: Incomplete → Expired
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.