Bug 708192

Summary: claws-mail crashes on startup / sn_display_new
Product: [Fedora] Fedora Reporter: Jonathan Corbet <corbet>
Component: claws-mailAssignee: Andreas Bierfert <andreas.bierfert>
Status: CLOSED RAWHIDE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: rawhideCC: andreas.bierfert, bugs.michael, rstrode, stijn, tomspur
Target Milestone: ---Keywords: Triaged
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
URL: http://www.thewildbeast.co.uk/claws-mail/bugzilla/show_bug.cgi?id=2414
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2011-06-04 18:00:20 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:

Description Jonathan Corbet 2011-05-26 21:41:15 UTC
Description of problem:

After today's rawhide update, claws-mail segfaults shortly after its window is mapped.

Version-Release number of selected component (if applicable):
claws-mail-3.7.9-2.fc16.x86_64

How reproducible: 100%


Steps to Reproduce:
1. start claws-mail
2. watch it croak
3.
  
Actual results:

No mail reader.  Out-of-control mailbox threatens to explode, taking down our entire hosting provider.

Expected results:

Working mail reader.

Additional info:

The traceback is short and simple:

#0  0x00007fffed66f5b7 in XGetXCBConnection (dpy=0xad7000) at x11_xcb.c:9
#1  0x00007ffff4113381 in sn_display_new (xdisplay=0xad7000, push_trap_func=
    0x4f16d0 <sn_error_trap_push>, pop_trap_func=0x4f16c0 <sn_error_trap_pop>)
    at sn-common.c:77
#2  0x000000000044431e in startup_notification_complete (with_window=0)
    at main.c:335
#3  0x00000000004460ac in main (argc=1, argv=0x7fffffffdc18) at main.c:1620

Also: moving my .claws-mail out of the way and starting over doesn't change anything.

Comment 1 Michael Schwendt 2011-05-27 07:50:48 UTC
> The traceback is short and simple:
>
> #0  0x00007fffed66f5b7 in XGetXCBConnection (dpy=0xad7000) at x11_xcb.c:9

That's within libx11 (libx11-xcb).

> #1  0x00007ffff4113381 in sn_display_new (xdisplay=0xad7000, push_trap_func=
>    0x4f16d0 <sn_error_trap_push>, pop_trap_func=0x4f16c0 <sn_error_trap_pop>)
>    at sn-common.c:77

That's within startup-notification (updated on May 24th).

> #2  0x000000000044431e in startup_notification_complete (with_window=0)
>     at main.c:335
> #3  0x00000000004460ac in main (argc=1, argv=0x7fffffffdc18) at main.c:1620

And only that's within Claws Mail.

It's not specific to Rawhide:
http://forums.gentoo.org/viewtopic-t-876197-start-0.html
 -> http://bugs.gentoo.org/show_bug.cgi?id=365659

Comment 2 Michael Schwendt 2011-05-27 18:16:50 UTC
sn_display_new() in startup-notification-0.12 has changed quite a lot. Updating to it on F15 also crashes Claws Mail.

Comment 3 Stijn Hoop 2011-05-30 17:47:54 UTC
See also:

https://bugs.archlinux.org/task/24427

And more importantly, apparently a patch from upstream:

http://www.thewildbeast.co.uk/claws-mail/bugzilla/show_bug.cgi?id=2414

Comment 4 Stijn Hoop 2011-05-30 18:48:37 UTC
This is indeed fixed by adding that patch, I did a scratch build available at

https://koji.fedoraproject.org/koji/taskinfo?taskID=3100944

Comment 5 Michael Schwendt 2011-05-30 18:56:28 UTC
Thanks for finding the ticket. As somebody has noticed there already, the patch description is misleading as it has nothing to do with notification/libnotify.

http://www.colino.net/claws-mail/getpatchset.php?ver=3.7.9cvs18

Comment 6 Michael Schwendt 2011-06-04 18:00:20 UTC
Fix built for Rawhide to get going again:
http://koji.fedoraproject.org/koji/taskinfo?taskID=3111429