Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 500848 - www-client/firefox-27.0 - Browser: segmentation fault in libxul.so
Summary: www-client/firefox-27.0 - Browser: segmentation fault in libxul.so
Status: RESOLVED OBSOLETE
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Mozilla Gentoo Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-02-10 06:54 UTC by Gino McCarty
Modified: 2017-08-26 18:09 UTC (History)
5 users (show)

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


Attachments
Firefox backtrace in safe-mode with system cairo from git. (firefox_backtrace_safe_mode_cairo_git.log,12.71 KB, text/plain)
2014-02-10 18:40 UTC, Dmitry Derevyanko
Details
full bt with =x11-libs/cairo-1.12.16 (bt-full.txt,44.06 KB, text/plain)
2014-02-23 23:50 UTC, Olivier Huber
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Gino McCarty 2014-02-10 06:54:35 UTC
```
Feb 10 01:43:00 greygrease kernel: [757193.699488] Browser[27149]: segfault at 0 ip 00007fdb81f74842 sp 00007fffbddcf830 error 6 in libxul.so[7fdb80bdd000+2218000]
Feb 10 01:43:11 greygrease kernel: [757204.341127] Browser[27438]: segfault at 0 ip 00007f0a06180842 sp 00007fff094c5820 error 6 in libxul.so[7f0a04de9000+2218000]
Feb 10 01:43:21 greygrease kernel: [757214.319130] Browser[27753]: segfault at 0 ip 00007f672d922842 sp 00007fff25fc2780 error 6 in libxul.so[7f672c58b000+2218000]

Feb 10 01:49:48 greygrease kernel: [757601.977137] Browser[3536]: segfault at 0 ip 00007fe372d53842 sp 00007fff2da477a0 error 6 in libxul.so[7fe3719bc000+2218000]
Feb 10 01:49:58 greygrease kernel: [757612.349812] Browser[3628]: segfault at 0 ip 00007f43debfa842 sp 00007fff9f6ed860 error 6 in libxul.so[7f43dd863000+2218000]
```


Well let me know what other info you need...

```
Portage 2.2.7 (default/linux/amd64/13.0/desktop, gcc-4.7.3, glibc-2.17, 3.10.25-gentoo.custom x86_64)
=================================================================
System uname: Linux-3.10.25-gentoo.custom-x86_64-Intel-R-_Core-TM-_i7-3517U_CPU_@_1.90GHz-with-gentoo-2.2
KiB Mem:     8056032 total,   2435112 free
KiB Swap:   12546168 total,  12483816 free
Timestamp of tree: Mon, 10 Feb 2014 05:15:01 +0000
ld GNU ld (GNU Binutils) 2.23.2
distcc 3.1 x86_64-pc-linux-gnu [disabled]
app-shells/bash:          4.2_p45
dev-java/java-config:     2.1.12-r1
dev-lang/python:          2.7.5-r3, 3.3.3
dev-util/cmake:           2.8.11.2
dev-util/pkgconfig:       0.28
sys-apps/baselayout:      2.2
sys-apps/openrc:          0.12.4
sys-apps/sandbox:         2.6-r1
sys-devel/autoconf:       2.13, 2.69
sys-devel/automake:       1.11.6, 1.13.4
sys-devel/binutils:       2.23.2
sys-devel/gcc:            4.7.3-r1
sys-devel/gcc-config:     1.7.3
sys-devel/libtool:        2.4.2
sys-devel/make:           3.82-r4
sys-kernel/linux-headers: 3.9 (virtual/os-headers)
sys-libs/glibc:           2.17
Repositories: gentoo qt my_local_overlay
ACCEPT_KEYWORDS="amd64"
ACCEPT_LICENSE="* -@EULA"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=core-avx-i -O2 -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/config /usr/share/gnupg/qualified.txt"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /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="-march=core-avx-i -O2 -pipe"
DISTDIR="/usr/portage/distfiles"
FCFLAGS="-O2 -pipe"
FEATURES="assume-digests binpkg-logs config-protect-if-modified distlocks ebuild-locks fixlafiles merge-sync news parallel-fetch preserve-libs protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync xattr"
FFLAGS="-O2 -pipe"
GENTOO_MIRRORS="http://distfiles.gentoo.org"
LANG="en_US.utf8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
MAKEOPTS="-j4"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --omit-dir-times --compress --force --whole-file --delete --stats --human-readable --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/var/lib/layman/qt /usr/local/portage"
SYNC="rsync://rsync.us.gentoo.org/gentoo-portage"
USE="X a52 aac acl acpi alsa amd64 berkdb bluetooth branding bzip2 cairo caps cdda cdr cli cracklib crypt cups cxx dbus directfb dri dts dvd dvdr egl emboss encode exif fam firefox flac fontconfig fortran gdbm gif gmp gnutls gstreamer iconv icu imagemagick ipv6 jpeg kerberos lcms ldap libnotify mad mmx mmxext mng modules mp3 mp4 mpeg mtp multilib mysql ncurses nls nptl nvidia ogg opencl opengl openmp orc pam pango pcre pdf png ppds qt3support qt4 readline samba sdl session spell sse sse2 sse3 sse4 sse4_1 sse4_2 ssl ssse3 startup-notification svg tiff truetype udev udisks unicode upower usb v4l vdpau vim-syntax vorbis wayland wxwidgets x264 x2apic xattr xcb xinerama xml xmp xmpp xv xvid xvmc zlib" ABI_X86="64" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" APACHE2_MODULES="authn_core authz_core socache_shmcb unixd 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" CALLIGRA_FEATURES="kexi words flow plan sheets stage tables krita karbon braindump author" CAMERAS="ptp2" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" CURL_SSL="gnutls" 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 ublox ubx" INPUT_DEVICES="evdev synaptics void" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" LINGUAS="en_US en" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php5-5" PYTHON_SINGLE_TARGET="python2_7" PYTHON_TARGETS="python2_7 python3_3" RUBY_TARGETS="ruby20" USERLAND="GNU" VIDEO_CARDS="nvidia intel modesetting" 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, USE_PYTHON
```

```
[ebuild   R   ~] www-client/firefox-27.0  USE="alsa dbus gstreamer jit libnotify minimal startup-notification system-cairo system-icu system-jpeg system-sqlite wifi -bindist -custom-cflags -custom-optimization -debug (-pgo) -pulseaudio (-selinux)" LINGUAS="-af -ar -as -ast -be -bg -bn_BD -bn_IN -br -bs -ca -cs -csb -cy -da -de -el -en_GB -en_ZA -eo -es_AR -es_CL -es_ES -es_MX -et -eu -fa -fi -fr -fy_NL -ga_IE -gd -gl -gu_IN -he -hi_IN -hr -hu -hy_AM -id -is -it -ja -kk -km -kn -ko -ku -lt -lv -mai -mk -ml -mr -nb_NO -nl -nn_NO -or -pa_IN -pl -pt_BR -pt_PT -rm -ro -ru -si -sk -sl -son -sq -sr -sv_SE -ta -te -th -tr -uk -vi -xh -zh_CN -zh_TW -zu" 0 kB
```

Reproducible: Always
Comment 1 Gino McCarty 2014-02-10 12:26:14 UTC
USE='-system-sqlite -system-cairo -system-icu -system-jpeg' emerge -1v firefox

fixed issue for me.. 
maybe a system lib is no longer compatible.. not sure which one..
Comment 2 Dmitry Derevyanko 2014-02-10 18:40:46 UTC
Created attachment 370064 [details]
Firefox backtrace in safe-mode with system cairo from git.

It's probably cairo. Firefox is crashing with cairo from git and latest from tree (1.12.16).
I'll try with USE="-system-cairo" and post results soon.
Comment 3 Dmitry Derevyanko 2014-02-10 19:22:48 UTC
Can't reproduce with USE="-system-cairo". Is it a bug in cairo itself or just firefox is incompatible with mainstream cairo?
For reproduce just visit site "habrahabr.ru" with system-cairo enabled in firefox.
Comment 4 Reuben Martin 2014-02-11 03:36:03 UTC
I'm having segfaults in libxul, but the only system USE flag enabled is system-jpeg.

I'm rebuilding now with system-jpeg disabled to see if that fixes it. But having system-cairo disabled does not seem to be enough for my case.
Comment 5 Gino McCarty 2014-02-11 03:41:37 UTC
Hey all, Im still getting segfaults even with all -system-* 
but at least the browser itself doesn't crash as before...
..although something is crashing...

Here is the output

Feb 10 22:24:03 greygrease kernel: [783794.879587] Browser[16817]: segfault at 0 ip 00007fb664b15e22 sp 00007fff98cae7a0 error 6 in libxul.so[7fb663692000+2348000]
Feb 10 22:24:08 greygrease kernel: [783799.663045] Browser[16829]: segfault at 0 ip 00007f0b1000be22 sp 00007fff197bf880 error 6 in libxul.so[7f0b0eb88000+2348000]
Feb 10 22:24:12 greygrease kernel: [783804.056528] Browser[16838]: segfault at 0 ip 00007f8f4a9d5e22 sp 00007fff073ea7d0 error 6 in libxul.so[7f8f49552000+2348000]
Comment 6 Reuben Martin 2014-02-11 04:41:55 UTC
Disabling system-jpeg didn't fix it. Still crashing.
Comment 7 Olivier Huber 2014-02-23 23:50:51 UTC
Created attachment 371146 [details]
full bt with =x11-libs/cairo-1.12.16

I had the same issue with firefox-27. I had not updated cairo since last fall. So clearly the update from firefox 26 to 27 was the reason for those segfaults.

From a quick look at the code, cairo seems to be buggy here. The next instruct after the _cairo_clip_path_destroy call sets clip->path to NULL, but the latter is already NULL. The reason for this remains unclear to me and debugging proved difficult since the _clip_and_composite_boxes is called a number of times.

After re-emerging firefox-27 with USE=-system-cairo, I did not experience any crashes so far.

emerge --info firefox
Portage 2.2.8-r1 (default/linux/amd64/13.0/developer, gcc-4.8.1, glibc-2.18-r1, 3.13.0-gentoo-r1 x86_64)
=================================================================
                         System Settings
=================================================================
System uname: Linux-3.13.0-gentoo-r1-x86_64-Intel-R-_Core-TM-_i7-3667U_CPU_@_2.00GHz-with-gentoo-2.2
KiB Mem:     8047236 total,   1342668 free
KiB Swap:          0 total,         0 free
Timestamp of tree: Sun, 23 Feb 2014 11:45:01 +0000
ld GNU ld (GNU Binutils) 2.24
app-shells/bash:          4.2_p45-r1
dev-java/java-config:     2.2.0
dev-lang/python:          2.7.6, 3.3.4
dev-util/cmake:           2.8.12.2
dev-util/pkgconfig:       0.28
sys-apps/baselayout:      2.2
sys-apps/openrc:          0.12.4
sys-apps/sandbox:         2.6-r1
sys-devel/autoconf:       2.13, 2.69
sys-devel/automake:       1.11.6, 1.12.6, 1.14.1
sys-devel/binutils:       2.24-r2
sys-devel/gcc:            4.8.1-r1
sys-devel/gcc-config:     1.8
sys-devel/libtool:        2.4.2
sys-devel/make:           4.0-r1
sys-kernel/linux-headers: 3.13 (virtual/os-headers)
sys-libs/glibc:           2.18-r1
Repositories: gentoo local science x11
ACCEPT_KEYWORDS="amd64 ~amd64"
ACCEPT_LICENSE="* -@EULA skype-4.0.0.7-copyright AdobeFlash-11.x Google-TOS"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-O2 -pipe -march=native"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/config /usr/share/gnupg/qualified.txt /usr/share/themes/oxygen-gtk/gtk-2.0 /usr/share/themes/oxygen-gtk/gtk-3.0"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/dconf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /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="-O2 -pipe -march=native"
DISTDIR="/usr/portage/distfiles"
EMERGE_DEFAULT_OPTS="--quiet-build=n "
FCFLAGS="-O2 -pipe"
FEATURES="assume-digests binpkg-logs collision-protect distlocks ebuild-locks fixlafiles merge-sync news parallel-fetch preserve-libs protect-owned sandbox sfperms sign splitdebug strict test-fail-continue unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync xattr"
FFLAGS="-O2 -pipe -march=native"
GENTOO_MIRRORS="http://gentoo.modulix.net/gentoo"
LANG="en_US.utf-8"
LC_ALL="en_US.utf-8"
LDFLAGS="-Wl,--hash-style=gnu -Wl,-O1 -Wl,--as-needed -Wl,--sort-common -Wl,--hash-style=gnu"
MAKEOPTS="-j3"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --omit-dir-times --compress --force --whole-file --delete --stats --human-readable --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/overlays/local /usr/local/overlays/sci /usr/local/overlays/x11"
SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage"
USE="X a52 aac aacplus acl acpi alsa amd64 amr atm avx bash-completion berkdb bluetooth bs2b bzip2 cairo caps cdda cddb cdr chm clang cli consolekit cracklib crypt cryptsetup cups curl custom-cflags custom-optimization cxx dbus dhcp dirac djvu dot double-precision dri dts dvb dvd dvdr eap-tls ebook egl emboss encode epspdf excel exif expat extra faac faad fam ffmpeg fftw firefox flac fontconfig fontforge fortran frei0r ftp gdbm gdk-pixbuf gif git gles gles1 gles2 gmp gpm graphics graphite gstreamer gtk gtk3 iconv icu idn inotify ipv6 jingle jpeg jpeg2k kde kdenlive kernel lapack latex lcms ldap ldns libkms libnotify libproxy libsamplerate live llvm lm_sensors lto lzma lzo mad markdown matplotlib matroska melt metis metric minizip mms mmx mmxext mng modemmanager modules mp3 mp4 mpeg mpfr multilib musepack ncurses netlink nettle network nls notebook nptl numpy ocaml ogg opengl openmp optimization opus pam pango parcheck pcre pdf perl pgf pgo png policykit ppds pstricks publishers pygments pyqt4 python qt3support qt4 rar readline rtmp ruby schroedinger science sdl secure-delete session sftp sndfile snmp sparse speex spell sqlite sqlite3 sse sse2 sse4_1 ssl ssse3 startup-notification svg system-cairo system-icu system-jpeg system-sqlite szip taglib tcpd theora threads tiff toolame tools truetype tty-helpers twolame udev udisks unicode upnp upower usb utils v4l vaapi vdpau vim-pager vim-syntax vlc vorbis vpx wayland x264 xa xanim xattr xcb xetex xlib-xcb xml xorg xv xvfb xvid xvmc zlib" ABI_X86="64" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" APACHE2_MODULES="authn_core authz_core socache_shmcb unixd 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" CALLIGRA_FEATURES="kexi words flow plan sheets stage tables krita karbon braindump author" CAMERAS="ptp2" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" 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 ublox ubx" INPUT_DEVICES="evdev mouse keyboard synaptics" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" LINGUAS="en" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php5-5" PYTHON_SINGLE_TARGET="python2_7" PYTHON_TARGETS="python2_7 python3_3 python3_3" RUBY_TARGETS="ruby19 ruby20 ruby21" USERLAND="GNU" VIDEO_CARDS="intel" 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, INSTALL_MASK, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, USE_PYTHON

=================================================================
                        Package Settings
=================================================================

www-client/firefox-27.0 was built with the following:
USE="alsa custom-cflags custom-optimization dbus gstreamer jit libnotify minimal (multilib) startup-notification system-icu system-jpeg system-sqlite -bindist -debug (-pgo) -pulseaudio (-selinux) -system-cairo -wifi" ABI_X86="64" LINGUAS="-af -ar -as -ast -be -bg -bn_BD -bn_IN -br -bs -ca -cs -csb -cy -da -de -el -en_GB -en_ZA -eo -es_AR -es_CL -es_ES -es_MX -et -eu -fa -fi -fr -fy_NL -ga_IE -gd -gl -gu_IN -he -hi_IN -hr -hu -hy_AM -id -is -it -ja -kk -km -kn -ko -ku -lt -lv -mai -mk -ml -mr -nb_NO -nl -nn_NO -or -pa_IN -pl -pt_BR -pt_PT -rm -ro -ru -si -sk -sl -son -sq -sr -sv_SE -ta -te -th -tr -uk -vi -xh -zh_CN -zh_TW -zu"
CFLAGS="-pipe -march=native -mno-avx"
CXXFLAGS="-pipe -march=native -mno-avx"
Comment 8 Reuben Martin 2014-03-03 23:02:30 UTC
I'm still having issues with this. But only on my AMD based desktop. My Intel based laptop does not have any issues. Perhaps this is an architectural specific optimization bug.
Comment 9 Gino McCarty 2014-03-05 17:25:36 UTC
(In reply to Reuben Martin from comment #8)
> I'm still having issues with this. But only on my AMD based desktop. My
> Intel based laptop does not have any issues. Perhaps this is an
> architectural specific optimization bug.

Probably not, I am on intel and I reported this issue, its more likely that your cairo or other system-* libraries are build differently between the two laptops..
Comment 10 Klaus Kusche 2014-03-18 09:13:36 UTC
Similar situation here:
Firefox crashes on many webpages with system cairo (cairo-1.12.16-r1)
and is much more stable with -system-cairo.
Comment 11 Jory A. Pratt gentoo-dev 2017-08-26 17:57:04 UTC
If you feel I have closed your bug and it is still a current issue, please reopen and update it completely. We will not work bugs that have no ebuild in tree any longer or can not be reproduced with a current system.

Thank You for your support and understanding
The Mozilla Team