Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 336687 - =x11-libs/cairo-1.10.0-r1 _cairo_atomic_int_get assertion failed with mail-client/thunderbird
Summary: =x11-libs/cairo-1.10.0-r1 _cairo_atomic_int_get assertion failed with mail-cl...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Library (show other bugs)
Hardware: PPC Linux
: Normal normal with 1 vote (vote)
Assignee: PPC Porters
URL:
Whiteboard:
Keywords:
: 352537 (view as bug list)
Depends on: 401377
Blocks:
  Show dependency tree
 
Reported: 2010-09-10 05:04 UTC by Laurent G.
Modified: 2012-09-09 16:04 UTC (History)
3 users (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Laurent G. 2010-09-10 05:04:07 UTC
Hi
Upgrade from 1.8.10 got me this assertion failure that kills my thunderbird.

Reproducible: Always

Steps to Reproduce:
1. Start thunderbird
2.
3.




LC_ALL=C LANG=C thunderbird
thunderbird-bin: cairo-pattern.c:822: cairo_pattern_destroy: Assertion `(_cairo_atomic_int_get (&(&pattern->ref_count)->ref_count) > 0)' failed.
/usr/lib/thunderbird/run-mozilla.sh: line 131: 12724 Aborted                 "$prog" ${1+"$@"}

emerge --info
Portage 2.2_rc78 (default/linux/powerpc/ppc32/10.0/desktop, gcc-4.4.4, glibc-2.12.1-r1, 2.6.33-gentoo-r1-l0 ppc)
=================================================================
System uname: Linux-2.6.33-gentoo-r1-l0-ppc-7447A,_altivec_supported-with-gentoo-2.0.1
Timestamp of tree: Thu, 09 Sep 2010 18:00:01 +0000
distcc 3.1 powerpc-unknown-linux-gnu [disabled]
ccache version 2.4 [enabled]
app-shells/bash:     4.1_p7
dev-java/java-config: 2.1.11
dev-lang/python:     2.5.4-r4, 2.6.5-r3, 3.1.2-r4
dev-util/ccache:     2.4-r8
dev-util/cmake:      2.8.1-r2
sys-apps/baselayout: 2.0.1
sys-apps/openrc:     0.6.3
sys-apps/sandbox:    2.3-r1
sys-devel/autoconf:  2.13::<unknown repository>, 2.67
sys-devel/automake:  1.6.3::<unknown repository>, 1.9.6-r3, 1.10.3, 1.11.1
sys-devel/binutils:  2.20.1-r1
sys-devel/gcc:       4.2.4-r1, 4.3.5, 4.4.4-r1
sys-devel/gcc-config: 1.4.1
sys-devel/libtool:   2.2.10
sys-devel/make:      3.81-r2
virtual/os-headers:  2.6.35 (sys-kernel/linux-headers)
ACCEPT_KEYWORDS="ppc ~ppc"
ACCEPT_LICENSE="* -@EULA IBM-J1.5 IBM-J1.6"
CBUILD="powerpc-unknown-linux-gnu"
CFLAGS="-mcpu=7400 -O2 -pipe -fno-strict-aliasing -maltivec -mabi=altivec"
CHOST="powerpc-unknown-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/X11/xkb /usr/share/config /var/lib/hsqldb"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ /etc/eselect/postgresql /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/php/apache2-php5/ext-active/ /etc/php/cgi-php5/ext-active/ /etc/php/cli-php5/ext-active/ /etc/portage /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo /etc/texmf/language.dat.d /etc/texmf/language.def.d /etc/texmf/updmap.d /etc/texmf/web2c"
CXXFLAGS="-mcpu=7400 -O2 -pipe -fno-strict-aliasing -maltivec -mabi=altivec"
DISTDIR="/in_n_outs/distfiles"
FEATURES="assume-digests ccache distlocks fixlafiles fixpackages news parallel-fetch preserve-libs protect-owned sandbox sfperms splitdebug strict unknown-features-warn unmerge-logs unmerge-orphans userfetch"
GENTOO_MIRRORS="http://mirror.uni-c.dk/pub/gentoo/ ftp://trumpetti.atm.tut.fi/gentoo/ ftp://ftp.tu-clausthal.de/pub/linux/gentoo/ ftp://mirror.switch.ch/mirror/gentoo/ ftp://ftp.heanet.ie/pub/gentoo/ ftp://ftp.snt.utwente.nl/pub/os/linux/gentoo http://mirror.gentoo.no/ "
LANG="C"
LC_ALL="C"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
LINGUAS="fr fr_FR"
MAKEOPTS="-j2"
PKGDIR="/in_n_outs/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/java-overlay /var/lib/layman/kde-sunset /usr/local/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="X Xaw3d a52 aac acl alsa altivec apache2 berkdb bluetooth branding bzip2 cairo cdr cli consolekit cracklib crypt cscope cups cxx dba dbus dri dts dvd dvdr emboss encode exif fam fbcon filter flac flash fortran gb gcj gd gdbm gif gnome gpm gtk gtk2 hal iconv ipv6 java jikes jpeg kde kdehiddenvisibility kpathsea lcms ldap libnotify mad mikmod mng modules mozdevelop mozsvg mp3 mp4 mpeg mudflap ncurses nls nptl nptlonly nsplugin objc ogg oggvorbis opengl openmp pam pango pcre pdf pdflib perl png povray ppc ppds pppd python qt qt3support qt4 readline reflection samba sasl scanner sdl session speex spell ssl startup-notification svg sysfs tcpd tetex theora threads tiff tk truetype udev unicode usb vorbis wmf x264 xcb xine xinerama xml xml2 xorg xosd xulrunner xv xvid zlib" ALSA_CARDS="snd-aoa" 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 auth_digest authn_anon authn_dbd authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache dav dav_fs dav_lock dbd deflate dir disk_cache env expires ext_filter file_cache filter headers ident imagemap include info log_config logio mem_cache mime mime_magic negotiation proxy proxy_ajp proxy_balancer proxy_connect proxy_http rewrite setenvif so speling status unique_id userdir usertrack vhost_alias" CAMERAS="canon" ELIBC="glibc" INPUT_DEVICES="keyboard mouse wacom evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="fr fr_FR" RUBY_TARGETS="ruby18" USERLAND="GNU" VIDEO_CARDS="ati fbdev radeon" 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, FFLAGS, INSTALL_MASK, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 1 Samuli Suominen (RETIRED) gentoo-dev 2010-09-10 07:06:14 UTC
This happens with mail-client/thunderbird-bin, not mail-client/thunderbird?
Comment 2 Laurent G. 2010-09-10 15:29:42 UTC
No, it happens with mail-client/thunderbird.
I don't know about the -bin.
Regards
Comment 3 Nirbheek Chauhan (RETIRED) gentoo-dev 2010-09-14 10:07:32 UTC
Please paste the output of: emerge -pv cairo thunderbird
Comment 4 Laurent G. 2010-09-14 19:58:14 UTC
Hum,
after commenting =x11-libs/cairo-1.10.0* in /etc/portage/package.mask/monolithic, I get :
Calculating dependencies... done!
[ebuild     U ] x11-libs/cairo-1.10.0-r3 [1.8.10] USE="X opengl qt4%* svg xcb (-aqua) -debug -directfb -doc (-drm) (-gallium) -openvg% -static-libs% (-cleartype%) (-glitz%*) (-lcdfilter%)" 0 kB
[ebuild   R   ] mail-client/thunderbird-3.1.3  USE="alsa crypt cups dbus gnome ldap libnotify lightning startup-notification -bindist -custom-optimization -mozdom -system-sqlite -wifi" LINGUAS="fr -af -ar -be -bg -bn -bn_BD -ca -cs -da -de -el -en -en_GB -en_US -es -es_AR -es_ES -et -eu -fi -fy -fy_NL -ga -ga_IE -he -hu -id -is -it -ja -ko -lt -nb -nb_NO -nl -nn -nn_NO -pa -pa_IN -pl -pt -pt_BR -pt_PT -ro -ru -si -sk -sl -sq -sv -sv_SE -tr -uk -zh -zh_CN -zh_TW" 0 kB

I guess this not what you were looking for, but I had to get back to 1.8.
Regards
Comment 5 Rémi Cardona (RETIRED) gentoo-dev 2010-09-21 21:54:31 UTC
Please rebuild cairo with ccache disabled.

Thanks
Comment 6 Kacper Kowalik (Xarthisius) (RETIRED) gentoo-dev 2011-01-24 07:14:24 UTC
*** Bug 352537 has been marked as a duplicate of this bug. ***
Comment 7 Kacper Kowalik (Xarthisius) (RETIRED) gentoo-dev 2011-01-24 07:16:11 UTC
I'll reassign to ppc and try to reproduce
Comment 8 Laurent G. 2011-01-25 23:25:52 UTC
No better without ccache for
emerge cairo thunderbird
(3.1.7-r2 and 1.10.2-r1)
Comment 9 Laurent G. 2011-03-22 22:08:30 UTC
(In reply to comment #8)
> No better without ccache for
> emerge cairo thunderbird
> (3.1.7-r2 and 1.10.2-r1)

Now with 3.1.9 for thunderbird (and 3.6.15 for firefox), same crash(es) with 1.10.2-r1. I just need to revert to 1.8 to get these apps OK.
Comment 10 Laurent G. 2011-05-08 08:41:49 UTC
Hi
I started to git around and it appears we could just wait : cairo 1.11.2 seems to let my xulrunner powered application not to crash on this bug. (where 1.10.2 out of git makes them crash).
Comment 11 Laurent G. 2011-05-08 12:50:09 UTC
the git-commit that triggered the bug between late 1.8 and 1.9.2 seems to be : 132f44dce1884c9beed8c5e6588140ee8fa9cfbe.
Is cairo 1.11.2 far from reaching ~ppc ?
Comment 12 Jory A. Pratt gentoo-dev 2012-01-30 02:17:38 UTC
(In reply to comment #11)
> the git-commit that triggered the bug between late 1.8 and 1.9.2 seems to be :
> 132f44dce1884c9beed8c5e6588140ee8fa9cfbe.
> Is cairo 1.11.2 far from reaching ~ppc ?

I am working to get 1.11.2 added to the tree for ~arch even tho it is a snapshot, I have add it to the mozilla overlay for testing. Please feel free to test and report any problems to mozilla herd until we can get it added to the tree.
Comment 13 Chí-Thanh Christopher Nguyễn gentoo-dev 2012-01-31 00:19:09 UTC
If you could find the commit that fixed the problem in cairo, there would be a better chance to get this included.
Comment 14 Jory A. Pratt gentoo-dev 2012-01-31 01:18:19 UTC
Well as cairo-1.11.2 does not appear to cut the grade by ssuominen standards, there is nothing mozilla team can do. Only option mozilla team can give ya is to wait for 1.12.0 to be released which could be another year.
Comment 15 Laurent G. 2012-02-04 11:17:52 UTC
(In reply to comment #13)
> If you could find the commit that fixed the problem in cairo, there would be a
> better chance to get this included.

Don't know if I will have time for that bisect.

I got back my mozilla things (gvim is happier too, not hiding the line with sub-menus, because of the triangle on the right I guess) with commit
b1c96f18526ad09f8a972feecaefe465c61307b5

+ -enable-test-surfaces --disable-valgrind --enable-tee --enable-ft --enable-gl

If it can help others
Comment 16 Laurent G. 2012-02-04 12:04:49 UTC
Even better.

132f44dce1884c9beed8c5e6588140ee8fa9cfbe (current HEAD of cairo as today 2012-02-04)
works too, with same options.

Looking at the result of my previous bisect, I found back the VALGRIND thing ... that I found, this week, not to be kind with -O and -g together in cairo (at least). So the main thing, concerning the crash is to disable valgrind use in cairo if you have -g and -O that come to gcc.

Here is my flyspeck contribution on cairo bug list :
http://lists.cairographics.org/archives/cairo-bugs/2012-January/004876.html
Comment 17 Laurent G. 2012-02-04 13:14:11 UTC
I copied cairo-9999 ebuild, added --disable-valgrind, commented out the epatch line for interix...
Currently using firefox with it :-)

I still don't know :
- what is wrong between gcc/valgrind/cairo around -g with -O
- how my try from may succeeded as I don't rememeber disabling valgrind at that time.

But I guess staff can lower the importance of this bug.
Nevertheless thanks to the voter for high criticality.
Comment 18 Laurent G. 2012-02-11 11:44:18 UTC
Today I tried the same circumvention on cairo-1.10.2, got it ok for gvim,firefox and thunderbird at least, with this ebuild patch :

--- /usr/portage/x11-libs/cairo/cairo-1.10.2-r2.ebuild  2012-01-29 16:53:24.000000000 +0100
+++ /usr/local/portage/x11-libs/cairo/cairo-1.10.2-r3.ebuild    2012-02-11 11:08:36.000000000 +0100
@@ -96,6 +96,14 @@
        #gets rid of fbmmx.c inlining warnings
        append-flags -finline-limit=1200
 
+       if [[ ${CHOST} == powerpc-*-linux* ]]; then
+               myopts+=" --disable-valgrind"
+       fi
+
        if use X; then
                myopts+="
                        --enable-tee=yes

This is just a workaround, but I
Hope this helps
Comment 19 Chí-Thanh Christopher Nguyễn gentoo-dev 2012-03-24 23:17:31 UTC
cairo-1.12.0 is now in the tree.
Comment 20 Joe Jezak (RETIRED) gentoo-dev 2012-09-09 16:04:54 UTC
Seems to be fixed with the latest Cairo.