GNOME Bugzilla – Bug 791435
Pan-0.143 crashes on any action request / Build with gmime-3
Last modified: 2018-09-21 16:04:17 UTC
Created attachment 365316 [details] Brief system description and gdb backtrace System: Slackware64-current. Slackware current has recently been upgraded to gmime-3. Although pan has been upgraded, it crashes on all three of my machines with a gmime segfault (one Intel and two AMD machines). Although the window opens, news servers can be specified and newsgroups downloaded, any attempt to download headers or open anything beyond that point produces an instant segfault. Earlier versions won't compile against gmime-3. Recompiling, either with or without --with-gtk3 makes no difference. Pan compiles without errors, but crashes as soon as you try to do anything useful with it! Pan is currently unusable. Hope the attached log file helps. If you need any more info, let me know. I'm not a programmer, but am reasonably computer literate! -- Pete
Thanks for taking the time to report this. As stated in the release notes, gmime3 port is incomplete and experimental, so crashers are to be expected. Patches welcome. Since gmime3 broke API compatibility with earlier versions, distros should try to provide compat packages as a temporary solution for yet to be ported apps.
Note that you have to make sure that gmime-3 lib are not available for pan to compile with gmime-2. Otherwise, pan build system will compile with gmime-3 instead of gmime-2 On Debian, this means that either: - libgmime-3.0-dev package is removed - pan is built in a chroot (cowbuilder or pbuilder)
I can reproduce this bug, it seems it crashes here: https://git.gnome.org/browse/pan2/tree/pan/usenet-utils/mime-utils.cc#n1151 messages[i] = g_mime_parser_construct_message(parser, NULL);
(In reply to Dominique Dumont from comment #2) > Note that you have to make sure that gmime-3 lib are not available for pan > to compile with gmime-2. Otherwise, pan build system will compile with > gmime-3 instead of gmime-2 > > On Debian, this means that either: > - libgmime-3.0-dev package is removed > - pan is built in a chroot (cowbuilder or pbuilder) Ah right, thanks for pointing that out. We did only fallback to gmime26 when gmime30 was not found. I hope I've fixed that behavior in f6061b309dd380e02c4fa4648587d95055388323. The user now needs to explicitly enable gmime30, otherwise gmime26 is used, by default.
Created attachment 365415 [details] gdb trace from Pan segfault I've added a gdb trace. Here Pan crashed at: g_mime_parser_options_clone ()
Created attachment 365433 [details] Pan 0.143 gdb trace Pan 0.143 gdb trace
Created attachment 365434 [details] Pan 0.143 gdb trace
-- 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/77.