Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 362297 - mail-client/claws-mail-3.7.8 segfaults with startup-notification enabled
Summary: mail-client/claws-mail-3.7.8 segfaults with startup-notification enabled
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Unspecified (show other bugs)
Hardware: ARM Linux
: Normal critical (vote)
Assignee: Christian Faulhammer (RETIRED)
URL: http://www.thewildbeast.co.uk/claws-m...
Whiteboard:
Keywords:
: 365659 (view as bug list)
Depends on:
Blocks:
 
Reported: 2011-04-06 14:03 UTC by Fabian Köster
Modified: 2011-06-28 08:40 UTC (History)
9 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
gdb output (claws-mail-segfault-startup-notification-gdb.txt,22.33 KB, text/plain)
2011-04-06 14:04 UTC, Fabian Köster
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Fabian Köster 2011-04-06 14:03:19 UTC
When I enable the startup-notification use-flag, claws-mail crashes on startup, see attached gdb output.

Reproducible: Always




mail-client/claws-mail-3.7.8 was built with the following:
USE="crypt dbus gnutls imap ipv6 session ssl startup-notification -bogofilter -dillo -doc -ldap -nntp -pda -smime -spamassassin -spell -xface"
CFLAGS="-O2 -pipe -mcpu=cortex-a9 -mfpu=vfpv3-d16 -mfloat-abi=softfp -ggdb"
CXXFLAGS="-O2 -pipe -mcpu=cortex-a9 -mfpu=vfpv3-d16 -mfloat-abi=softfp -ggdb"

x11-libs/startup-notification-0.10 was built with the following:
USE=""
CFLAGS="-O2 -pipe -mcpu=cortex-a9 -mfpu=vfpv3-d16 -mfloat-abi=softfp -ggdb -ggdb -ggdb -ggdb -ggdb -ggdb -ggdb"
CXXFLAGS="-O2 -pipe -mcpu=cortex-a9 -mfpu=vfpv3-d16 -mfloat-abi=softfp -ggdb"


Portage 2.1.9.42 (default/linux/arm/10.0, gcc-4.5.2, glibc-2.11.3-r0, 2.6.35.3 armv7l)
=================================================================
System uname: Linux-2.6.35.3-armv7l-ARMv7_Processor_rev_2_-v7l-with-gentoo-1.12.14
Timestamp of tree: Wed, 06 Apr 2011 08:15:01 +0000
app-shells/bash:     4.1_p9
dev-lang/python:     2.6.6-r2, 2.7.1-r1
dev-util/cmake:      2.8.4
sys-apps/baselayout: 1.12.14-r1
sys-apps/sandbox:    2.4
sys-devel/autoconf:  2.65-r1
sys-devel/automake:  1.10.3, 1.11.1
sys-devel/binutils:  2.20.1-r1
sys-devel/gcc:       4.5.2
sys-devel/gcc-config: 1.4.1
sys-devel/libtool:   2.2.10
sys-devel/make:      3.81-r2
virtual/os-headers:  2.6.36.1 (sys-kernel/linux-headers)
ACCEPT_KEYWORDS="arm"
ACCEPT_LICENSE="@FREE freedist TI UbuntuFontLicense-1.0"
CBUILD="armv7a-unknown-linux-gnueabi"
CFLAGS="-O2 -pipe -mcpu=cortex-a9 -mfpu=vfpv3-d16 -mfloat-abi=softfp"
CHOST="armv7a-unknown-linux-gnueabi"
CONFIG_PROTECT="/etc"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo"
CXXFLAGS="-O2 -pipe -mcpu=cortex-a9 -mfpu=vfpv3-d16 -mfloat-abi=softfp"
DISTDIR="/usr/portage/distfiles"
FEATURES="assume-digests binpkg-logs distlocks fixlafiles fixpackages news noclean parallel-fetch protect-owned sandbox sfperms splitdebug strict unknown-features-warn unmerge-logs unmerge-orphans userfetch"
FFLAGS=""
GENTOO_MIRRORS="http://ftp-stud.hs-esslingen.de/pub/Mirrors/gentoo/"
LANG="de_DE.UTF-8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
LINGUAS="de"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/var/lib/layman/pandaboard /usr/local/portage"
SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage"
USE="X acl arm avahi bash-completion berkdb bzip2 cli cracklib crypt cups cxx dbus dvb flac fortran gdbm gif gnome-keyring gpm gstreamer iconv idn ipv6 jabber jpeg lastfm modules mpeg mudflap ncurses neon nls nptl nptlonly ogg openmp pam pcre perl png policykit pppd pulseaudio python readline rss session ssl startup-notification sysfs tcpd theora thunar tiff udev unicode vorbis xorg xv zlib" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mmap_emul mulaw multi null plug rate route share shm softvol" APACHE2_MODULES="actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache cgi cgid dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" CAMERAS="canon" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" DVB_CARDS="usb-dib0700" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf superstar2 timing tsip tripmate tnt ubx" INPUT_DEVICES="evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="de" PHP_TARGETS="php5-3" RUBY_TARGETS="ruby18" SANE_BACKENDS="genesys" USERLAND="GNU" VIDEO_CARDS="dummy" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq steal rawnat logmark ipmark dhcpmac delude chaos account" 
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LC_ALL, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 1 Fabian Köster 2011-04-06 14:04:29 UTC
Created attachment 268711 [details]
gdb output
Comment 2 Fabian Köster 2011-04-06 14:13:03 UTC
Just noticed that it only crashes when started from terminal, not from the Xfce-menu... strange.
Comment 3 Christian Faulhammer (RETIRED) gentoo-dev 2011-04-10 18:11:15 UTC
I just added 3.7.9 to the tree, please test with that.  Apart from that, this seems to come from your X server.  Which version of libnotify is installed and did you run revdep-rebuild recently?
Comment 4 Fabian Köster 2011-04-10 21:21:12 UTC
Yes, I did run revdep-rebuild but it does not detect any inconsistencies.

x11-libs/libnotify is version 0.4.5.

Still segfault with version 3.7.9 :/
Comment 5 Christian Faulhammer (RETIRED) gentoo-dev 2011-04-17 14:19:37 UTC
Ok, this is possibly a bug somewhere hidden in the combination of libnotify, X server and other stuff you use.  If you do not mind, I would like to know if libnotify 0.7 solves the problem for you.  That version is a major change, so you will hit a lot of rebuilds.
Comment 6 Fabian Köster 2011-04-18 19:06:20 UTC
Still happening with libnotify-0.7.2
Comment 7 Maxim Britov 2011-04-28 11:13:41 UTC
Same issue from today
mail-client/claws-mail-3.7.9
x11-libs/startup-notification-0.10_p20110426
x11-libs/xcb-util-0.3.8

Program received signal SIGSEGV, Segmentation fault.
0x00007fffef802667 in XGetXCBConnection () from /usr/lib64/libX11-xcb.so.1
(gdb) bt
#0  0x00007fffef802667 in XGetXCBConnection () from /usr/lib64/libX11-xcb.so.1
#1  0x00007ffff59dbb72 in sn_display_new () from /usr/lib64/libstartup-notification-1.so.0
#2  0x00000000004edc07 in startup_notification_complete ()
#3  0x00000000004f1504 in main ()
Comment 8 Paweł Rumian 2011-04-28 12:05:17 UTC
Same here on ~AMD64 with mail-client/claws-mail-3.7.9. Libnotify was not installed, after manually emerging x11-libs/libnotify-0.7.2 the problem persisted.

Re-emerging claws-mail without startup-notification solved the problem.
Comment 9 Ryan Hill (RETIRED) gentoo-dev 2011-04-29 02:15:04 UTC
not sure if it's the same crash, the recent bump to x11-libs/startup-notification-0.10_p20110426 causes these new non-arm segfaults.
Comment 10 Andreas Fink 2011-04-29 17:19:48 UTC
Changing the line 334 in src/main.c from
        xdisplay = gdk_display_get_default();
to
        xdisplay = GDK_DISPLAY_XDISPLAY(gdk_display_get_default());

fixes the segfault as described in the last few comments. I don't know if it matches the original segfault...
Comment 11 Fabian Köster 2011-04-30 12:27:00 UTC
(In reply to comment #10)
> Changing the line 334 in src/main.c from
>         xdisplay = gdk_display_get_default();
> to
>         xdisplay = GDK_DISPLAY_XDISPLAY(gdk_display_get_default());
> 
> fixes the segfault as described in the last few comments. I don't know if it
> matches the original segfault...

This change fixes it for me, too. Thanks!

Can someone push this upstream?
Comment 12 Christian Faulhammer (RETIRED) gentoo-dev 2011-04-30 18:37:51 UTC
Reported upstream.  This has to do with deprecated APIs in GTK+.  As I cannot reproduce I wonder which version of GTK+/GDK you are using.  Also did a revision bump for Claws Mail 3.7.9

http://mail.gnome.org/archives/desktop-devel-list/2010-September/msg00025.html
Comment 13 Fabian Köster 2011-05-02 07:48:13 UTC
(In reply to comment #12)
> Reported upstream.  This has to do with deprecated APIs in GTK+.  As I cannot
> reproduce I wonder which version of GTK+/GDK you are using.  Also did a
> revision bump for Claws Mail 3.7.9

I use gtk+-2.22.1-r1.

I can confirm that mail-client/claws-mail-3.7.9-r1 resolves the problem for me.
Thank you all for your help!
Comment 14 Fab 2011-06-10 08:49:08 UTC
(In reply to comment #12)
> As I cannot reproduce I wonder which version of GTK+/GDK you are using

Confirming the crash with claws-mail-3.7.8 on stable x86. But the crash only occurs when trying to launch claws-mail from the /usr/bin/sylpheed-claws symlink.
revdep-rebuild and rebuilding claws-mail did not help. -3.7.9-r1 fixed the crash.

This is a problem into Xfce4 environment because the « exo-open --launch MailReader » command seems to use the sylpheed-claws symlink to launch claws-mail, and then it crashs.
Comment 15 Ulf Schaper 2011-06-24 05:13:01 UTC
I can confirm the crash in claws-mail-3.7.8 on amd64 with the startup-notification USE flag set, and it's fixed in -3.7.9-r1.
I think claws-mail-3.7.9-r1 should go stable (or the fix should be backported to some 3.7.8-r1).

Andreas, thanks for pointing out the solution!
Comment 16 Christian Faulhammer (RETIRED) gentoo-dev 2011-06-25 10:25:04 UTC
*** Bug 365659 has been marked as a duplicate of this bug. ***