gnome-software leaks file descriptors

Bug #1760795 reported by Andrea Azzarone on 2018-04-03
222
This bug affects 27 people
Affects Status Importance Assigned to Milestone
gnome-software (Ubuntu)
Undecided
Unassigned
Bionic
Undecided
Unassigned
snapd-glib (Ubuntu)
Critical
Robert Ancell
Bionic
Critical
Robert Ancell

Bug Description

To verify the bug:
1) killall gnome-software
2) lsof -p $(pidof gnome-software) | wc -l
3) Use gnome-software for a while (search for snaps, etc.)
4) Again: lsof -p $(pidof gnome-software) | wc -l

As you can seen the list of open files grows overtime.

This (https://paste.ubuntu.com/p/rF5tHn5BwG/) also shows the problem, just compile it, get the pid and check with lsof the number of open files.

Andrea Azzarone (azzar1) on 2018-04-03
Changed in snapd-glib (Ubuntu):
importance: Undecided → High
status: New → In Progress
assignee: nobody → Andrea Azzarone (azzar1)
Andrea Azzarone (azzar1) on 2018-04-03
description: updated
Iain Lane (laney) on 2018-04-03
Changed in gnome-software (Ubuntu Bionic):
status: New → Invalid
Changed in snapd-glib (Ubuntu Bionic):
importance: High → Critical
Will Cooke (willcooke) wrote :

Robert will make a new release of snapd-glib, but isn't 100% certain it will fix all of these.

Changed in snapd-glib (Ubuntu Bionic):
assignee: Andrea Azzarone (azzar1) → Robert Ancell (robert-ancell)
Robert Ancell (robert-ancell) wrote :

snapd-glib 1.39-0ubuntu1 has the change. I did manage to make a test program that left a lot of file descriptors, but still haven't managed to get GNOME Software to do the same thing by using it. Hopefully it will fix it!

Robert Ancell (robert-ancell) wrote :

Oh weird, now I am reproducing it based on Andreas' instructions.

Changed in snapd-glib (Ubuntu Bionic):
status: In Progress → Fix Committed
Robert Ancell (robert-ancell) wrote :

Was released in snapd-glib 1.39-0ubuntu1

Changed in snapd-glib (Ubuntu Bionic):
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers