gnome-software crashed with SIGTRAP in g_wakeup_new from g_main_context_new from g_dbus_connection_send_message_with_reply_sync from g_dbus_connection_call_sync_internal from g_dbus_connection_call_sync

Bug #1648534 reported by errors.ubuntu.com bug bridge
32
This bug affects 4 people
Affects Status Importance Assigned to Milestone
GNOME Software
New
Undecided
Unassigned
gnome-software (Ubuntu)
In Progress
Critical
Unassigned
Xenial
Fix Released
Critical
Unassigned

Bug Description

The Ubuntu Error Tracker has been receiving reports about a problem regarding gnome-software. This problem was most recently seen with package version 3.20.1+git20161013.0.d77d6cf-0ubuntu2~xenial1, the problem page at https://errors.ubuntu.com/problem/70c23d0f4e2be24b26672427d4218dc8f0823597 contains more details, including versions of packages affected, stacktrace or traceback, and individual crash reports.
If you do not have access to the Ubuntu Error Tracker you can request it at http://forms.canonical.com/reports/.

Changed in gnome-software (Ubuntu):
assignee: nobody → Canonical Desktop Team (canonical-desktop-team)
Revision history for this message
Sebastien Bacher (seb128) wrote :

Robert, could you have a look to this one?

Changed in gnome-software (Ubuntu):
assignee: Canonical Desktop Team (canonical-desktop-team) → Robert Ancell (robert-ancell)
importance: Undecided → High
Revision history for this message
Robert Ancell (robert-ancell) wrote :

Looks like something is leaking file descriptors...

Revision history for this message
Robert Ancell (robert-ancell) wrote :

I've been playing around but haven't managed to find a descriptor leak, if someone else can reproduce this problem, please try the following from a terminal:

$ ls -l /proc/$(pidof gnome-software)/fd

Mine consistently shows about 19 descriptors open, no matter what I do (some temporarily open during actions, but they close quickly).

I'll keep looking and look for other causes.

Revision history for this message
Iain Lane (laney) wrote :

It looks like this is happening by far the most often with 3.20.1+git20160617.1.0440874.ubuntu-xenial-0ubuntu1~16.04.1. I don't really know why so many people are still running that outdated version, but the numbers from e.u.c. look like it might be fixed or at least better with a new version.

If you wanted to look, maybe try that version.

Revision history for this message
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in gnome-software (Ubuntu):
status: New → Confirmed
Revision history for this message
Robert Ancell (robert-ancell) wrote :

Bug 1659858 has a slightly different stacktrace but seems to be the same / a related issue.

Revision history for this message
Daniel van Vugt (vanvugt) wrote :

Bump. 17649 occurrences of this crash during the past month according to errors.ubuntu.com

Changed in gnome-software (Ubuntu):
importance: High → Critical
Revision history for this message
Will Cooke (willcooke) wrote :

Still the biggest cause of problems on errors.u.c.

Revision history for this message
Robert Ancell (robert-ancell) wrote :

My current line of thinking is there is a GWakeup leak somewhere, which is likely due to a GCancellable leak (that seems to be the only thing that uses it).

Revision history for this message
Daniel van Vugt (vanvugt) wrote :

96181 occurrences in the past month :)

This is still the #1 Ubuntu bug, triple the frequency of the #2 bug, and 10x the frequency of the #3 bug.

summary: - /usr/bin/gnome-
- software:5:g_wakeup_new:g_main_context_new:g_dbus_connection_send_message_with_reply_sync:g_dbus_connection_call_sync_internal:g_dbus_connection_call_sync
+ gnome-software crashed with SIGTRAP in g_wakeup_new from
+ g_main_context_new from g_dbus_connection_send_message_with_reply_sync
+ from g_dbus_connection_call_sync_internal from
+ g_dbus_connection_call_sync
Changed in gnome-software (Ubuntu Xenial):
milestone: none → ubuntu-16.04.3
status: New → Confirmed
importance: Undecided → Critical
Revision history for this message
Alan Pope 🍺🐧🐱 🦄 (popey) wrote :

Looking through the individual crashers that happened today, there's something common in the 50 or so I clicked through. They're *all* running kernel 4.4 or below (one person was on 3.13).

Nobody seems to be on the HWE kernels.

So perhaps there's something which mitigates this issue in HWE kernels. If Robert was debugging and trying to reproduce locally, perhaps he's on a HWE kernel which might be why he can't reproduce?

https://errors.ubuntu.com/problem/70c23d0f4e2be24b26672427d4218dc8f0823597 - scroll down and (if you have access) click through each crash instance in turn.

Revision history for this message
Jean-Baptiste Lallement (jibel) wrote :

To reproduce this issue (well, rather bug 1659856 which is similar but it's been marked as invalid)

1. Install 16.04
2. Run unattended-upgrades
3. Reboot
4. Start gnome-software, close it, restart it.

Revision history for this message
Jean-Baptiste Lallement (jibel) wrote :

@Alan, current theory is that only security-updates are installed on these systems. They are installed via unattended-upgrades and something (likely an appstreamcli crash (bug 1711986) is preventing the installation of regular updates.

Changed in gnome-software (Ubuntu):
assignee: Robert Ancell (robert-ancell) → nobody
Revision history for this message
Sebastien Bacher (seb128) wrote :

the issue could be a result of bug #1760795

Revision history for this message
Marius Gedminas (mgedmin) wrote :

Saw this crash for the first time.

I'm on Ubuntu 18.10. Every time I ask gnome-software to check for updates, the number of open files (watch 'ls /proc/$(pidof gnome-software)/fd') grows by 25, then drops a bit and settles down to 7 higher than it was before.

I'm attaching two snapshots of ls -l /proc/$(pidof gnome-software)/fd, before I triggered an update check, and after it told me there were no updates available.

Revision history for this message
Marius Gedminas (mgedmin) wrote :
sirko (kuhne)
Changed in gnome-software (Ubuntu):
status: Confirmed → Incomplete
Changed in gnome-software (Ubuntu Xenial):
status: Confirmed → Fix Committed
Changed in gnome-software (Ubuntu):
status: Incomplete → Fix Committed
freddy (wendsony)
Changed in gnome-software (Ubuntu Xenial):
status: Fix Committed → Fix Released
Changed in gnome-software (Ubuntu):
status: Fix Committed → In Progress
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Remote bug watches

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