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 791435 - Pan-0.143 crashes on any action request / Build with gmime-3
Pan-0.143 crashes on any action request / Build with gmime-3
Status: RESOLVED OBSOLETE
Product: Pan
Classification: Other
Component: general
pre-1.0 betas
Other Linux
: High critical
: ---
Assigned To: pan-maint
pan-maint
Depends on:
Blocks:
 
 
Reported: 2017-12-10 11:59 UTC by Peter Christy
Modified: 2018-09-21 16:04 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
Brief system description and gdb backtrace (7.52 KB, text/x-log)
2017-12-10 11:59 UTC, Peter Christy
Details
gdb trace from Pan segfault (1.76 KB, text/plain)
2017-12-12 10:28 UTC, detlef.graef
Details
Pan 0.143 gdb trace (9.84 KB, text/plain)
2017-12-12 15:53 UTC, detlef.graef
Details
Pan 0.143 gdb trace (4.03 KB, text/plain)
2017-12-12 15:57 UTC, detlef.graef
Details

Description Peter Christy 2017-12-10 11:59:16 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
Comment 1 Petr Kovar 2017-12-10 22:00:16 UTC
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.
Comment 2 Dominique Dumont 2017-12-11 07:38:40 UTC
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)
Comment 3 detlef.graef 2017-12-11 16:25:47 UTC
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);
Comment 4 Petr Kovar 2017-12-12 00:28:58 UTC
(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.
Comment 5 detlef.graef 2017-12-12 10:28:17 UTC
Created attachment 365415 [details]
gdb trace from Pan segfault

I've added a gdb trace. Here Pan crashed at:

g_mime_parser_options_clone ()
Comment 6 detlef.graef 2017-12-12 15:53:37 UTC
Created attachment 365433 [details]
Pan 0.143 gdb trace

Pan 0.143 gdb trace
Comment 7 detlef.graef 2017-12-12 15:57:00 UTC
Created attachment 365434 [details]
Pan 0.143 gdb trace
Comment 8 GNOME Infrastructure Team 2018-09-21 16:04:17 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/77.