gnome-music crashes on startup

Bug #1799509 reported by Rob King
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
gnome-music (Ubuntu)
Fix Released
Undecided
Unassigned
gnutls28 (Ubuntu)
Fix Released
Undecided
Unassigned
libsoup (Ubuntu)
New
Undecided
Unassigned

Bug Description

On Cosmic Cuttlefish, gnome-music crashes on startup. This issue has been reported on Fedora already: https://bugzilla.redhat.com/show_bug.cgi?id=1635152

Additionally, the root cause appears to be an issue in GnuTLS: https://bugzilla.redhat.com/show_bug.cgi?id=1634736

Applying the patch listed there and rebuilding GnuTLS fixes the crash.

It is likely that this issue will affect any package using libsoup and/or libgnutls30.

The patch, for future reference:

```
diff --git a/lib/priority.c b/lib/priority.c
index 53c0d55..e727fcf 100644
--- a/lib/priority.c
+++ b/lib/priority.c
@@ -592,7 +592,9 @@ gnutls_priority_set(gnutls_session_t session, gnutls_priority_t priority)
  /* set the current version to the first in the chain.
   * This will be overridden later.
   */
- if (session->internals.priorities->protocol.algorithms > 0) {
+ if (session->internals.priorities->protocol.algorithms > 0 &&
+ !session->internals.handshake_in_progress &&
+ !session->internals.initial_negotiation_completed) {
   if (_gnutls_set_current_version(session,
          session->internals.priorities->
          protocol.priority[0]) < 0) {
```

ProblemType: Bug
DistroRelease: Ubuntu 18.10
Package: gnome-music 3.30.1-1
ProcVersionSignature: Ubuntu 4.18.0-10.11-generic 4.18.12
Uname: Linux 4.18.0-10-generic x86_64
ApportVersion: 2.20.10-0ubuntu13
Architecture: amd64
CurrentDesktop: ubuntu:GNOME
Date: Tue Oct 23 11:21:16 2018
InstallationDate: Installed on 2018-10-14 (8 days ago)
InstallationMedia: Ubuntu 18.10 "Cosmic Cuttlefish" - Beta amd64 (20180927)
ProcEnviron:
 TERM=xterm-256color
 PATH=(custom, no user)
 XDG_RUNTIME_DIR=<set>
 LANG=en_US.UTF-8
 SHELL=/bin/bash
SourcePackage: gnome-music
UpgradeStatus: No upgrade log present (probably fresh install)

Revision history for this message
Rob King (jking) wrote :
Revision history for this message
Rob King (jking) wrote :
no longer affects: gnome-music
Revision history for this message
Ubuntu Foundations Team Bug Bot (crichton) wrote :

The attachment "gnutls-3.6.4-fix-rehandshake.patch" seems to be a patch. If it isn't, please remove the "patch" flag from the attachment, remove the "patch" tag, and if you are a member of the ~ubuntu-reviewers, unsubscribe the team.

[This is an automated message performed by a Launchpad user owned by ~brian-murray, for any issues please contact him.]

tags: added: patch
Revision history for this message
Christopher (c-scharnagl) wrote :

The bug is now fixed in gnutls-3.6.4 (on Disco Dingo).

Changed in gnome-music (Ubuntu):
status: New → Fix Released
Changed in gnutls28 (Ubuntu):
status: New → 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.