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 on 2016-12-08
30
This bug affects 4 people
Affects Status Importance Assigned to Milestone
gnome-software (Ubuntu)
Critical
Unassigned
Xenial
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)
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
Robert Ancell (robert-ancell) wrote :

Looks like something is leaking file descriptors...

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.

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.

Launchpad Janitor (janitor) wrote :

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

Changed in gnome-software (Ubuntu):
status: New → Confirmed
Robert Ancell (robert-ancell) wrote :

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

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
Will Cooke (willcooke) wrote :

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

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).

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

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.

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.

@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
Sebastien Bacher (seb128) wrote :

the issue could be a result of bug #1760795

To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Duplicates of this bug

Other bug subscribers