gnome-software leaks file descriptors

Bug #1760795 reported by Andrea Azzarone
252
This bug affects 31 people
Affects Status Importance Assigned to Milestone
gnome-software (Ubuntu)
Invalid
Undecided
Unassigned
Bionic
Invalid
Undecided
Unassigned
snapd-glib (Ubuntu)
Fix Released
Critical
Robert Ancell
Bionic
Fix Released
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)
Changed in snapd-glib (Ubuntu):
importance: Undecided → High
status: New → In Progress
assignee: nobody → Andrea Azzarone (azzar1)
Andrea Azzarone (azzar1)
description: updated
Revision history for this message
Andrea Azzarone (azzar1) wrote :
Iain Lane (laney)
Changed in gnome-software (Ubuntu Bionic):
status: New → Invalid
Changed in snapd-glib (Ubuntu Bionic):
importance: High → Critical
Revision history for this message
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)
Revision history for this message
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!

Revision history for this message
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
Revision history for this message
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  
Everyone can see this information.

Other bug subscribers

Remote bug watches

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