After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 679975 - Frequent freeze-ups when using SSL connections
Frequent freeze-ups when using SSL connections
Status: RESOLVED OBSOLETE
Product: Pan
Classification: Other
Component: general
unspecified
Other Linux
: Normal major
: ---
Assigned To: pan-maint
pan-maint
Depends on:
Blocks:
 
 
Reported: 2012-07-15 22:05 UTC by nemoinis
Modified: 2018-09-21 15:56 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
backtrace after freeze-up (22.48 KB, application/octet-stream)
2012-07-15 22:05 UTC, nemoinis
Details
backtrace pan GIT 314affc hangs while connecting (7.96 KB, application/octet-stream)
2012-07-20 21:30 UTC, nemoinis
Details
pan GIT 314affc --with-gnutls -> backtrace after freeze-up (21.31 KB, application/octet-stream)
2012-07-22 05:27 UTC, nemoinis
Details
pan GIT 314affc debug log (126.75 KB, application/x-gzip)
2012-07-22 05:28 UTC, nemoinis
Details
pan GIT 314affc 8 repeating lines removed from debug log (657 bytes, text/x-log)
2012-07-22 05:29 UTC, nemoinis
Details
pan GIT 314affc: 1 repeating line removed from debug log (92 bytes, text/x-log)
2012-07-22 05:29 UTC, nemoinis
Details
gdb backtrace (41.67 KB, text/plain)
2013-11-19 13:14 UTC, rikm
Details
gdb backtrace - 2 (7.40 KB, text/plain)
2013-11-19 13:47 UTC, rikm
Details
out from 'pan --debug' (189.63 KB, text/plain)
2013-11-19 15:41 UTC, rikm
Details
requested info (640 bytes, text/plain)
2013-11-19 20:47 UTC, rikm
Details

Description nemoinis 2012-07-15 22:05:39 UTC
Created attachment 218868 [details]
backtrace after freeze-up

I'm using pan 0.139 on Debian Wheezy and am experiencing frequent freeze-ups which I think only occur when using SSL connections. I've had the same problem in the last few versions (since 0.136, I guess).

I've attached a backtrace.
Comment 1 Heinrich Müller 2012-07-16 20:41:01 UTC
When do those occur? Under which circumstances?
I'll change something in the code, could you compile pan yourself in 2 days and have a second look?

Cheers.
Comment 2 nemoinis 2012-07-16 21:56:45 UTC
I could not isolate any particular circumstances, except that it's been downloading articles for a few minutes (or more) when it happens, and only with SSL connections.
Yes I can compile and test a change. let me know when.
Thanks!
Comment 3 Heinrich Müller 2012-07-20 03:59:20 UTC
Could you post 
ldd -v /usr/lib/libgnutls.so | grep gcrypt
ldd -v /usr/lib/libgnutls.so | grep nettle
(or whereever your so file is) ?
and additionally compile without dbus and report back
in the meantime?
Thanks.
Comment 4 nemoinis 2012-07-20 19:12:54 UTC
ldd -v /usr/lib/i386-linux-gnu/libgnutls.so.28 | grep gcrypt yielded nothing
ldd -v /usr/lib/i386-linux-gnu/libgnutls.so.28 | grep nettle:
	libnettle.so.4 => /usr/lib/i386-linux-gnu/libnettle.so.4 (0xb7651000)
	/usr/lib/i386-linux-gnu/libnettle.so.4:
Comment 5 nemoinis 2012-07-20 21:30:24 UTC
Created attachment 219351 [details]
backtrace pan GIT 314affc hangs while connecting
Comment 6 nemoinis 2012-07-20 21:32:54 UTC
I've compiled pan from GIT 314affc. It hangs while connecting to the server (see backtrace) when using SSL. Works fine without SSL; regular Debian 0.139 pan (GIT bf56508) can connect OK using SSL to the same server.
Comment 7 Heinrich Müller 2012-07-21 11:42:13 UTC
Did you specify --with-gnutls on configure? Also run pan with --debug and post that.
Comment 8 nemoinis 2012-07-22 05:24:49 UTC
OK, progress: after recompiling with "--with-gnutls" (thanks :-) it now connects fine. And initially I could not get it to freeze, until I left it alone for a while: then it froze by itself. So it sounds like it might be related to a timeout on the SSL connection or something??

I've attached 4 files:
-a pan backtrace after the freeze-up
-the pan_debug.log (gzipped)
-in set_watch_mode.log, 8 lines which were repeated 7.5 million times in the log (making in 783MB, so I removed them :-)
-in socket-impl-openssl_gio_func.log, a line that was repeated 1.25 million times in the log
Comment 9 nemoinis 2012-07-22 05:27:08 UTC
Created attachment 219402 [details]
pan GIT 314affc --with-gnutls -> backtrace after freeze-up
Comment 10 nemoinis 2012-07-22 05:28:12 UTC
Created attachment 219403 [details]
pan GIT 314affc debug log
Comment 11 nemoinis 2012-07-22 05:29:19 UTC
Created attachment 219404 [details]
pan GIT 314affc 8 repeating lines removed from debug log
Comment 12 nemoinis 2012-07-22 05:29:51 UTC
Created attachment 219405 [details]
pan GIT 314affc: 1 repeating line removed from debug log
Comment 13 rikm 2013-11-19 13:14:08 UTC
Created attachment 260237 [details]
gdb backtrace

followed website instructions for this, added the extra debug packages that gdb was asking for prior to this iteration

added the additional rpms specified in this trace, and can send another if needed
Comment 14 rikm 2013-11-19 13:32:11 UTC
This seems to be same or related issue.

Pan compiled from .139 src with SSL support on Fedora 19

Pan connects and works until the freeze up.

Will freeze at random time when browsing headers or when idle, usually not [but sometimes will] when actually downloading something

Usually will save current group state when the blank window is closed down

The backtrace file sent up has the added debug info rpms that the first 2 iterations wanted to see, have installed the additional ones specified and will send another trace if needed.
Comment 15 rikm 2013-11-19 13:47:04 UTC
Created attachment 260239 [details]
gdb backtrace - 2

ran it again with the additional debug packages, and it froze up while dl headers, so have sent the trace.  

May or may not obsolete the first one but this one asks for the gnutls debug package and the Fedora repos report it as 'does not exist'
Comment 16 rikm 2013-11-19 15:41:34 UTC
Created attachment 260253 [details]
out from  'pan --debug'

In case it is useful, and edit of output from a previous session run with the --debug flag, first and last 1000 lines

The freeze happened as usual, when browsing headers.
Comment 17 Heinrich Müller 2013-11-19 17:07:29 UTC
Please post the output of 
ldd -v /usr/lib/libgnutls.so | grep gcrypt
ldd -v /usr/lib/libgnutls.so | grep nettle
As mentioned above
Comment 18 Heinrich Müller 2013-11-19 17:43:38 UTC
Could you post your version of gnutls?
Comment 19 rikm 2013-11-19 20:47:30 UTC
Created attachment 260276 [details]
requested info

the grep for gcrypt came up empty, gcrypt itself is installed as attached shows
Comment 20 GNOME Infrastructure Team 2018-09-21 15:56:15 UTC
-- GitLab Migration Automatic Message --

This bug has been migrated to GNOME's GitLab instance and has been closed from further activity.

You can subscribe and participate further through the new bug through this link to our GitLab instance: https://gitlab.gnome.org/GNOME/pan/issues/30.