Bug 724421

Summary: gnutls crash in _gnutls_x509_parse_dn()
Product: [openSUSE] openSUSE 12.1 Reporter: Raymond Wooninck <rwooninck>
Component: BasesystemAssignee: E-mail List <bnc-team-screening>
Status: RESOLVED FIXED QA Contact: E-mail List <qa-bugs>
Severity: Major    
Priority: P5 - None CC: lazy.kent, vuntz
Version: Factory   
Target Milestone: ---   
Hardware: x86-64   
OS: Other   
Whiteboard:
Found By: --- Services Priority:
Business Priority: Blocker: ---
Marketing QA Status: --- IT Deployment: ---
Attachments: Debug output from /usr/lib/telepathy-haze
GDB output
GDB output logfile
Completely untested patch

Description Raymond Wooninck 2011-10-16 09:17:10 UTC
Created attachment 456782 [details]
Debug output from /usr/lib/telepathy-haze

User-Agent:       Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/535.7 (KHTML, like Gecko) Chrome/16.0.910.0 Safari/535.7 SUSE/16.0.910.0

When I try to make a connection to MSN / Yahoo, then telepathy-haze crashes. After the crash I cannot even check my accounts anymore. Originally the error occurred with the KDE telepathy stuff, but I also used empathy and got the same result. 

The message in /var/log/messages is : 


Oct 16 10:46:42 HQVMT4XX20 kernel: [ 3601.477480] telepathy-haze[15233] general protection ip:7fd6d1aa0f10 sp:7fff0c3a1500 error:0 in libc-2.14.1.so[7fd6d1a2c000+185000]

I have attached the output of the debug mode from telepathy-haze as an attachment. 

Reproducible: Always

Steps to Reproduce:
1.
2.
3.
Comment 1 Vincent Untz 2011-10-17 07:40:43 UTC
Can you get a stack trace with gdb?
Comment 2 Raymond Wooninck 2011-10-17 10:13:11 UTC
Created attachment 456888 [details]
GDB output
Comment 3 Raymond Wooninck 2011-10-17 10:14:37 UTC
I hope that the new attachment provides the necessary information. I had to perform a Ctrl-C after that the error occurred, so I am not sure how GDB reacts on this. 

Please let me know if you need more information.  You can also contact me on IRC (tittiatcoke)

Regards

Raymond
Comment 4 Vincent Untz 2011-10-17 10:52:23 UTC
Thanks, that's useful. To get a stack trace with details, could you install libgnutls28-debuginfo and libpurple-debuginfo, and then do the gdb dance again?

Right now, it looks more like a libpurple or gnutls issue.
Comment 5 Raymond Wooninck 2011-10-17 11:35:04 UTC
Created attachment 456941 [details]
GDB output logfile

Hi Vincent,

Hereby the new gdb output with the required debuginfo package for libgnutls installed. I already had the libpurple-debuginfo installed with the previous gdb dance. 

Hope that this one gives a better clue what is going on. 

Thanks 

Raymond
Comment 6 Vincent Untz 2011-10-17 12:30:38 UTC
Hrm, it feels like a bug in gnutls.

What is providing /etc/ssl/certs/ca-certificates.crt on your system? It'd be interesting to see if removing that package helps (make sure to keep a copy of the file so we can still reproduce).
Comment 7 Vincent Untz 2011-10-17 12:31:44 UTC
Created attachment 456972 [details]
Completely untested patch

My guess would be that the certificate dn is not printable, and something bad happens. Can you try building gnutls with this patch and see if that helps?
Comment 8 Vincent Untz 2011-10-17 12:32:07 UTC
(waiting for answer of last two comments)
Comment 9 Raymond Wooninck 2011-10-17 13:19:29 UTC
Hi Vincent,

I have tried first the patch before deleting the file and this seemed to be enough. With the patch telepathy is able to connect to both MSN and Yahoo without any issue. 

Regards

Raymond
Comment 10 Vincent Untz 2011-10-17 14:20:04 UTC
Fix with sr#88217.
Comment 11 Bernhard Wiedemann 2011-10-17 15:00:07 UTC
This is an autogenerated message for OBS integration:
This bug (724421) was mentioned in
https://build.opensuse.org/request/show/88220 Factory / gnutls
Comment 12 Vincent Untz 2011-10-18 09:24:11 UTC
*** Bug 724406 has been marked as a duplicate of this bug. ***