GNOME Bugzilla – Bug 756458
pan 0.139 crashes on start
Last modified: 2016-04-26 17:47:37 UTC
OS: opensuse Tumbleweed, fully undated, upgraded from 13.2 fully updated. Name: pan Version: 0.139-7.4 Repository: repo-oss After installing and configuring, pan will crash on next start. IF machine is rebooted, pan will start, but must be configured again, and will crash on next start. debug: rick@tower:~> pan --debug (article-cache.cc:170:ArticleCache) loaded 1 articles into cache from /home/rick/.pan2/article-cache GDBus.Error:org.freedesktop.DBus.Error.ServiceUnknown: The name news.pan.NZB was not provided by any .service files ** ERROR:pan-tree.cc:80:GtkTreeIter PanTreeStore::get_iter(const PanTreeStore::Row*): assertion failed: (row) Aborted (core dumped)
I've a similar issue on Debian/sid. pan crashes on a (endless?) recursive call to iterate_thru_children from gailtreeview. More details are available on Debian bug tracker: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=804485 All the best
The same bug occurs on fedora 23. After upgrading from fedora 22, I get the message when starting pan. I renamed the .pan2 folder. afterwards pan starts ok (and creates the folder). Then I did the preferences and everything seems fine, pan works and starts. Next day the error happens again.
This seems to be related to https://bugzilla.gnome.org/show_bug.cgi?id=754698.
Thanks for reporting this bug. As this issue is likely caused by the recent C++11 ABI breakage in GCC5, you can try to rebuild the sources with -D_GLIBCXX_USE_CXX11_ABI=0 as a temporary workaround. Patches to fix this problem properly are welcome (and much needed).
With the -D_GLIBCXX_USE_CXX11_ABI=0 workaround, I can re-compile pan and get a behavior similar to the pan I compiled back in May 2015. But the crash involving iterate_thru_children still occurs. The weird thing is pan crashes when run in kde (I did not try with gnome) but does not crash when pan is run through remote X (i.e. through ssh -X ). When run in kde, here's a backtrace more complete that previous one: Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1". Core was generated by `pan'. Program terminated with signal SIGSEGV, Segmentation fault.
+ Trace 235860
Hope this helps
I can recover by deleting the ~/.pan2/preferences.xml file. I diffed before and after versions of the file and discovered that editing this entry in the file cured it until I closed it again. <string name='last-visited-group' value='alt.politics.scorched-earth'/> to <string name='last-visited-group' value=''/> This only seemed to cause the problem if the newsgroup was the first in the subscribed list. If I click on the second subscribed newsgroup, close and open it again it works fine.
With latest version from GIT repo this error should not occure anymore (please test).
This problem has been fixed in the unstable development version. The fix will be available in the next major software release. You may need to upgrade your Linux distribution to obtain that newer version. Please reopen if the problem persists, thank you.
Hello Unfortunately, the crash still occurs with pan 0.140. To reproduce: - log in a kde5 session (I use kde5 on Debian/unstable) - launch pan - open "Other Groups" (below "Subscribed Groups") -> Pan crashes with a seg fault workaround: - open pan with "ssh -X localhost pan" - open "Other Groups" -> works fine - close pan - reopen pan without ssh -> "Other groups" are displayed fine I've no possibility to re-open this bug. If needed, I'll open a new one. Hope this helps
(In reply to Dominique Dumont from comment #9) > Hello > > Unfortunately, the crash still occurs with pan 0.140. > > To reproduce: > - log in a kde5 session (I use kde5 on Debian/unstable) > - launch pan > - open "Other Groups" (below "Subscribed Groups") > -> Pan crashes with a seg fault > > workaround: > - open pan with "ssh -X localhost pan" > - open "Other Groups" > -> works fine > - close pan > - reopen pan without ssh > -> "Other groups" are displayed fine > > I've no possibility to re-open this bug. If needed, I'll open a new one. > > Hope this helps Thanks for reporting this, reopening the bug. What configuration options have you specified when building pan? I'm building with --with-gnutls --with-dbus --with-gmime-crypto --with-gtkspell --enable-libnotify --enable-gkr but can't reproduce the crash on GNOME. However, I'm hitting this issue: - Start pan with no previous configuration - Close the add a new server dialog without configuring a new server - Pan becomes unresponsive Might or might not be related to the "Other Groups" issue.
(In reply to Petr Kovar from comment #10) > (In reply to Dominique Dumont from comment #9) > > Hello > > > > Unfortunately, the crash still occurs with pan 0.140. > > > > To reproduce: > > - log in a kde5 session (I use kde5 on Debian/unstable) > > - launch pan > > - open "Other Groups" (below "Subscribed Groups") > > -> Pan crashes with a seg fault > > > > workaround: > > - open pan with "ssh -X localhost pan" > > - open "Other Groups" > > -> works fine > > - close pan > > - reopen pan without ssh > > -> "Other groups" are displayed fine > > > > I've no possibility to re-open this bug. If needed, I'll open a new one. > > > > Hope this helps > > Thanks for reporting this, reopening the bug. What configuration options > have you specified when building pan? > > I'm building with --with-gnutls --with-dbus --with-gmime-crypto > --with-gtkspell --enable-libnotify --enable-gkr but can't reproduce the > crash on GNOME. However, I'm hitting this issue: > > - Start pan with no previous configuration > - Close the add a new server dialog without configuring a new server > - Pan becomes unresponsive Turns out this is only reproducible when --enable-gkr is specified. This is on Fedora 23. Can someone else confirm?
On Fedora 23 with this configuration: Configuration: Prefix: /usr/local Source code location: . Compiler: g++ With D-Bus: yes With GMime 2.6+: yes With GtkSpell: no With GTK+ 3: no With WebKitGTK+: no With GnuTLS: yes (3.4.7) With libnotify: yes With GNOME Keyring: yes I cannot reproduce the error. I'm using XFCE as desktop.
(In reply to Dominique Dumont from comment #9) > Hello > > Unfortunately, the crash still occurs with pan 0.140. > > To reproduce: > - log in a kde5 session (I use kde5 on Debian/unstable) > - launch pan > - open "Other Groups" (below "Subscribed Groups") > -> Pan crashes with a seg fault > > workaround: > - open pan with "ssh -X localhost pan" > - open "Other Groups" > -> works fine > - close pan > - reopen pan without ssh > -> "Other groups" are displayed fine > Please start pan with the option --debug, reproduce the error and post or attach the debug output to this bug report. I cannot reproduce the error in my environment. I hope the debug output helps to find the root cause.
I use for Debian the following options: --with-gnutls --enable-gkr --disable-silent-rules --enable-libnotify --with-dbus All the best
(In reply to detlef.graef from comment #12) > On Fedora 23 with this configuration: > > Configuration: > > Prefix: /usr/local > Source code location: . > Compiler: g++ > With D-Bus: yes > With GMime 2.6+: yes > With GtkSpell: no > With GTK+ 3: no > With WebKitGTK+: no > With GnuTLS: yes (3.4.7) > With libnotify: yes > With GNOME Keyring: yes > > I cannot reproduce the error. Detlef, could you please try the following? - Compile pan with ./autogen.sh --enable-gkr - make install it - Make sure there is no ~/.pan2 folder in your home directory - Run pan from /usr/local - Close the add a new server dialog without configuring a new server - Pan becomes unresponsive Can you reproduce it now? Still not sure if that's related to what Dominique reports.
(In reply to Petr Kovar from comment #15) > > Detlef, could you please try the following? > > - Compile pan with ./autogen.sh --enable-gkr > - make install it > - Make sure there is no ~/.pan2 folder in your home directory > - Run pan from /usr/local > - Close the add a new server dialog without configuring a new server > - Pan becomes unresponsive > > Can you reproduce it now? Still not sure if that's related to what Dominique > reports. I've tried it (./autogen.sh --enable-gkr): Configuration: Prefix: /usr/local Source code location: . Compiler: g++ With D-Bus: no With GMime 2.6+: yes With GtkSpell: no With GTK+ 3: no With WebKitGTK+: no With GnuTLS: no With libnotify: no With GNOME Keyring: yes Pan starts with the welcome dialog and the server config window. I can quit the server config window only with "cancel" button. With "ok" I get the error that no server is configured, the window remains open. If I cancel the server config window, Pan is still responsive. I think this problem is not related to the issue this bug was opened: ERROR:pan-tree.cc:80:GtkTreeIter PanTreeStore::get_iter(const PanTreeStore::Row*): assertion failed: (row) Can you please start Pan with --debug option and post/attach the debug output? I hope Dominique provides the debug output from the error.
(In reply to Dominique Dumont from comment #14) > I use for Debian the following options: > > --with-gnutls --enable-gkr --disable-silent-rules --enable-libnotify > --with-dbus Are you building Pan with gcc5? Try this build option if you build Pan with gcc5: -D_GLIBCXX_USE_CXX11_ABI=0 Does the error still occur? Nevertheless the debug output would be helpful.
I build pan with gcc5 ( gcc (Debian 5.3.1-13) 5.3.1 20160323 ). On pan 0.139, the flag -D_GLIBCXX_USE_CXX11_ABI=0 did not change the crash. I've not retried with pan 0.140 since pan 0.140 builds fine with gcc5. Here's the debug trace with a crash: $ pan --debug (article-cache.cc:171:ArticleCache) loaded 27 articles into cache from /home/domi/.pan2/article-cache GDBus.Error:org.freedesktop.DBus.Error.ServiceUnknown: The name news.pan.NZB was not provided by any .service files (data-impl.cc:127:save_state) data-impl dtor saving xov, newsrc... Erreur de segmentation And with the ssh workaround: $ ssh -X localhost pan --debug Password: (article-cache.cc:171:ArticleCache) loaded 27 articles into cache from /home/domi/.pan2/article-cache GDBus.Error:org.freedesktop.DBus.Error.ServiceUnknown: The name news.pan.NZB was not provided by any .service files (data-impl.cc:127:save_state) data-impl dtor saving xov, newsrc... (data-impl.cc:127:save_state) data-impl dtor saving xov, newsrc... Existing Quarks: 7: [Xref] (refcount 1) [Newsgroups] (refcount 1) [From] (refcount 1) [Message-ID] (refcount 1) [Subject] (refcount 1) [Message-Id] (refcount 1) [References] (refcount 1) I'm afraid that won't help much :-/ I'll try gain after rebuilding the package without --enable-gkr All the best
Crash still occurs with pan without --enable-gkr: $ pan --debug (article-cache.cc:171:ArticleCache) loaded 27 articles into cache from /home/domi/.pan2/article-cache GDBus.Error:org.freedesktop.DBus.Error.ServiceUnknown: The name news.pan.NZB was not provided by any .service files (data-impl.cc:127:save_state) data-impl dtor saving xov, newsrc... Erreur de segmentation All the best
My debug output looks like this: pan --debug (article-cache.cc:171:ArticleCache) loaded 2420 articles into cache from /home/robin/.pan2/article-cache (data-impl.cc:127:save_state) data-impl dtor saving xov, newsrc... (task-xover.cc:106:TaskXOver) ctor for de.alt.test (queue.cc:292:process_task) in process_task with a task of type XOVER (queue.cc:348:process_task) online (queue.cc:367(socket-impl-gio.cc:250:GIOChannelSocket) GIOChannelSocket ctor :process_task) break 0x7fe6d40010e0 .......... When Pan is started the last visited group is loaded. I don't see this in your debug output (with the ssh workaround). In the file ~/.pan2/preferences.xml there is a line with last visited group: <string name='last-visited-group' value='de.alt.test'/> What is the value of 'last-visited-group' in your preferences.xml?
For instance: $ grep last ~/.pan2/preferences.xml <int name='prefs-last-selected-page' value='0'/> <string name='last-opened-msg' value=''/> <string name='last-visited-group' value='perl.perl5.summary'/> $ pan --debug (article-cache.cc:171:ArticleCache) loaded 27 articles into cache from /home/domi/.pan2/article-cache GDBus.Error:org.freedesktop.DBus.Error.ServiceUnknown: The name news.pan.NZB was not provided by any .service files (data-impl.cc:127:save_state) data-impl dtor saving xov, newsrc... Erreur de segmentation Last visited group does not matter much. Well, if the last visited group is part of the unsubscribed group, pan starts and display the list of unsubscribes groups correctly. Then I can close this list (click of the small triangle). Crash occurs when only when I open this list. All the best
Does Pan crash if you enter a search string in the "Group" search field? The "Other Groups" tree is expanded when you enter a search string in the "Group" search field.
Hi On a hunch, I've compiled pan with gtk3 and ... pan no longer crashes :-) I can only guess that the interface between gtk and kde5 is less tested with gtk2. Are some people using pan with gtk3 ? All the best
Detlef pointed out the issue I reported is actually reported as https://bugzilla.gnome.org/show_bug.cgi?id=729329, sorry for the noise!
The crash at: ERROR:pan-tree.cc:80:GtkTreeIter PanTreeStore::get_iter(const PanTreeStore::Row*) is fixed in version 0.140, so this ticket can be closed. The mentioned problem with GTK2/GTK3 KDE5/Qt isn't related to this bug. If someone want the GTK2 / KDE5/Qt problem should be tracked, a new ticket should be opened. But I don't think the problem can be fixed by modifying the source of Pan.