Bug 1640062

Summary: Segmentation fault in _gnutls_cipher_auth()
Product: [Fedora] Fedora Reporter: Jonas Ådahl <jadahl>
Component: gnutlsAssignee: Nikos Mavrogiannopoulos <nmavrogi>
Status: CLOSED DUPLICATE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 29CC: jadahl, mcatanzaro+wrong-account-do-not-cc, mclasen, nmavrogi, tmraz
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2018-10-18 09:32:42 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Attachments:
Description Flags
Full gdb backtrace of gnome-music
none
Backtraces for all threads.
none
Backtraces with gnutls-3.6.4-3.fc29 installed. none

Description Jonas Ådahl 2018-10-17 09:42:53 UTC
Created attachment 1494772 [details]
Full gdb backtrace of gnome-music

Description of problem:

gnutls segfaults in gnutls_cipher_auth() when starting gnome-music (a python3 application)

Version-Release number of selected component (if applicable):

gnutls-3.6.4-2.fc29.x86_64
glib2-2.58.1-1.fc29.x86_64
glib-networking-2.58.0-2.fc29.x86_64
python3-3.7.0-9.fc29.x86_64

How reproducible:


Steps to Reproduce:
1. Start gnome-music

Actual results:
Segmentation fault every time

Expected results:
gnome-music should start

Additional info:
Attaching a full backtrace

Comment 1 Nikos Mavrogiannopoulos 2018-10-17 11:48:16 UTC
Thank you. I'm moving it to glib-networking as there seems to be something strange here and I may need Michael's help. The issue seems similar to:
https://gitlab.gnome.org/GNOME/glib-networking/issues/12
and I'm pretty sure there was somewhere another related discussion.

Could you try "thread apply all bt" for the backtrace and also:
`dnf debuginfo-install gnutls glib-networking`?

Comment 2 Nikos Mavrogiannopoulos 2018-10-17 11:49:21 UTC
btw. I could not reproduce. In my system gnome-music starts normally, however I have an empty db of files.

Comment 3 Jonas Ådahl 2018-10-17 12:24:37 UTC
Created attachment 1494821 [details]
Backtraces for all threads.

Here is the backtraces for all the threads.

Comment 4 Nikos Mavrogiannopoulos 2018-10-17 13:00:43 UTC
Thank you. I've sent a scratch-build of gnutls at:
https://koji.fedoraproject.org/koji/taskinfo?taskID=30288246

When completed could you verify whether it addresses the issue?

Comment 5 Nikos Mavrogiannopoulos 2018-10-17 13:05:06 UTC
Previous build failed. New link: https://koji.fedoraproject.org/koji/taskinfo?taskID=30288347

Comment 6 Jonas Ådahl 2018-10-18 07:23:28 UTC
I downloaded the RPMs but they don't install. It seems gnutls-dane needs libunbound.so.2, but my F29 only has libunbound.so.7.

Comment 7 Jonas Ådahl 2018-10-18 07:26:59 UTC
nm, dnf handled it better than rpm, but gnome-music still crashes. I'll attach a new backtrace collection.

Comment 8 Jonas Ådahl 2018-10-18 07:29:07 UTC
Created attachment 1495169 [details]
Backtraces with gnutls-3.6.4-3.fc29 installed.

Comment 9 Nikos Mavrogiannopoulos 2018-10-18 07:30:02 UTC
Thank you Jonas. Indeed dnf will resolve dependencies better. What about this build:
https://koji.fedoraproject.org/koji/taskinfo?taskID=30305397

Comment 10 Jonas Ådahl 2018-10-18 08:38:11 UTC
The last build makes gnome-music start up without crashish!

Comment 11 Jonas Ådahl 2018-10-18 08:39:15 UTC
..without *crashing* I mean of course

Comment 12 Nikos Mavrogiannopoulos 2018-10-18 09:32:42 UTC
Thank you! I'll merge it with #1634736

*** This bug has been marked as a duplicate of bug 1634736 ***