snapd-login-service crashed with SIGSEGV in read_data()

Bug #1652472 reported by Craig Denman
46
This bug affects 5 people
Affects Status Importance Assigned to Milestone
snapd-glib (Ubuntu)
Fix Released
Medium
Unassigned

Bug Description

None.

ProblemType: Crash
DistroRelease: Ubuntu 16.10
Package: snapd-login-service 1.2-0ubuntu1.1
ProcVersionSignature: Ubuntu 4.8.0-34.36-generic 4.8.11
Uname: Linux 4.8.0-34-generic x86_64
NonfreeKernelModules: nvidia_uvm nvidia_drm nvidia_modeset nvidia
ApportVersion: 2.20.3-0ubuntu8.2
Architecture: amd64
Date: Sat Dec 24 13:14:09 2016
ExecutablePath: /usr/lib/snapd-glib/snapd-login-service
InstallationDate: Installed on 2015-07-19 (524 days ago)
InstallationMedia: Ubuntu 15.04 "Vivid Vervet" - Release amd64 (20150422)
ProcCmdline: /usr/lib/snapd-glib/snapd-login-service
ProcEnviron:

Signal: 11
SourcePackage: snapd-glib
StacktraceTop:
 ?? () from /usr/lib/x86_64-linux-gnu/libsnapd-glib.so.1
 ?? () from /usr/lib/x86_64-linux-gnu/libgio-2.0.so.0
 g_main_context_dispatch () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
 ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
 g_main_loop_run () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
Title: snapd-login-service crashed with SIGSEGV in g_main_context_dispatch()
UpgradeStatus: No upgrade log present (probably fresh install)
UserGroups:

Revision history for this message
Craig Denman (cdenman) wrote :
Revision history for this message
Apport retracing service (apport) wrote :

StacktraceTop:
 read_data (size=1024, cancellable=0x0, client=0x55dfe7f874d0) at snapd-client.c:1533
 read_from_snapd (cancellable=0x0, blocking=0, client=0x55dfe7f874d0) at snapd-client.c:1627
 read_cb (socket=<optimized out>, condition=<optimized out>, client=0x55dfe7f874d0) at snapd-client.c:1699
 socket_source_dispatch () from /tmp/apport_sandbox_1lgLGd/usr/lib/x86_64-linux-gnu/libgio-2.0.so.0
 g_main_context_dispatch () from /tmp/apport_sandbox_1lgLGd/lib/x86_64-linux-gnu/libglib-2.0.so.0

Revision history for this message
Apport retracing service (apport) wrote : Stacktrace.txt
Revision history for this message
Apport retracing service (apport) wrote : StacktraceSource.txt
Revision history for this message
Apport retracing service (apport) wrote : ThreadStacktrace.txt
Changed in snapd-glib (Ubuntu):
importance: Undecided → Medium
summary: - snapd-login-service crashed with SIGSEGV in g_main_context_dispatch()
+ snapd-login-service crashed with SIGSEGV in read_data()
tags: removed: need-amd64-retrace
tags: added: xenial
Revision history for this message
Launchpad Janitor (janitor) wrote :

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

Changed in snapd-glib (Ubuntu):
status: New → Confirmed
information type: Private → Public
Revision history for this message
Robert Ancell (robert-ancell) wrote :

This was fixed in 1.4:

commit 904bc196e3e3c8b5ca0a4da218c1da942b3255aa
Author: Robert Ancell <email address hidden>
Date: Tue Dec 6 15:16:22 2016 +1300

    Correctly remove read source when SnapdClient unreffed

diff --git a/snapd-glib/snapd-client.c b/snapd-glib/snapd-client.c
index 88a541d..7a0271b 100644
--- a/snapd-glib/snapd-client.c
+++ b/snapd-glib/snapd-client.c
@@ -3900,6 +3900,8 @@ snapd_client_finalize (GObject *object)
     g_clear_object (&priv->auth_data);
     g_list_free_full (priv->requests, g_object_unref);
     priv->requests = NULL;
+ if (priv->read_source != NULL)
+ g_source_destroy (priv->read_source);
     g_clear_pointer (&priv->read_source, g_source_unref);
     g_byte_array_unref (priv->buffer);
     priv->buffer = NULL;

Changed in snapd-glib (Ubuntu):
status: Confirmed → 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.