Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 550786 - x11-drivers/ati-drivers www-client/firefox-38.0.1[minimal] crashes Xorg with signal 11 (segmentation fault)
Summary: x11-drivers/ati-drivers www-client/firefox-38.0.1[minimal] crashes Xorg with ...
Status: RESOLVED WONTFIX
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: AMD64 Linux
: Normal normal (vote)
Assignee: Gentoo X packagers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-05-30 02:21 UTC by Lara Maia
Modified: 2017-02-23 22:57 UTC (History)
2 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 Lara Maia 2015-05-30 02:21:03 UTC
When I access some pages (like archive.org), the firefox crash with segmentation fault and sequentially crash everything on system with segmentation fault (desktop > session > Xorg).

I tried everything like delete firefox profile, recompile only with default flags and +minimal. I discovered that firefox works well with two possibilities:

1. On firefox preferences>content>advanced> and unmark "Allow pages to choose their own fonts"

Or...

2. Disable minimal USE flag on firefox package.

Reproducible: Always

Steps to Reproduce:
(I use ati-drivers,and I do not know if it's related)

1. build firefox with minimal USE flag enabled
2. open the browser and go to http://archive.org
3. wait the page loading
Actual Results:  
The browser and everything (session, Xorg) is crash with signal 11 (segmentation fault).

Expected Results:  
Nothing weird.

lara@Amora: ~ :) emerge --info
Portage 2.2.20 (python 3.3.5-final-0, default/linux/amd64/13.0/desktop, gcc-4.9.2, glibc-2.20-r2, 4.0.4-ck x86_64)
=================================================================
System uname: Linux-4.0.4-ck-x86_64-AMD_A8-6600K_APU_with_Radeon-tm-_HD_Graphics-with-gentoo-2.2
KiB Mem:     7058980 total,   5903716 free
KiB Swap:          0 total,         0 free
Timestamp of repository gentoo: Fri, 29 May 2015 17:15:01 +0000
sh bash 4.3_p39
ld GNU ld (Gentoo 2.25 p1.2) 2.25
ccache version 3.2.2 [disabled]
app-shells/bash:          4.3_p39::gentoo
dev-java/java-config:     2.2.0::gentoo
dev-lang/perl:            5.20.2-r1::gentoo
dev-lang/python:          2.7.10::gentoo, 3.3.5-r1::gentoo
dev-util/ccache:          3.2.2::gentoo
dev-util/cmake:           3.2.2::gentoo
dev-util/pkgconfig:       0.28-r3::gentoo
sys-apps/baselayout:      2.2::gentoo
sys-apps/sandbox:         2.6-r1::gentoo
sys-devel/autoconf:       2.13::gentoo, 2.69-r1::gentoo
sys-devel/automake:       1.11.6-r1::gentoo, 1.12.6::gentoo, 1.13.4::gentoo, 1.14.1::gentoo, 1.15::gentoo
sys-devel/binutils:       2.25-r1::gentoo
sys-devel/gcc:            4.9.2::gentoo
sys-devel/gcc-config:     1.8::gentoo
sys-devel/libtool:        2.4.6-r1::gentoo
sys-devel/make:           4.1-r1::gentoo
sys-kernel/linux-headers: 4.0::gentoo (virtual/os-headers)
sys-libs/glibc:           2.20-r2::gentoo
Repositories:

gentoo
    location: /usr/portage
    sync-type: rsync
    sync-uri: rsync://rsync.samerica.gentoo.org/gentoo-portage
    priority: -1000

LaraCraft93
    location: /home/lara/Develop/Overlays
    masters: gentoo
    priority: 0

systemd-only
    location: /home/lara/Develop/systemd-only-overlay
    masters: gentoo
    priority: 1

mozilla
    location: /var/lib/layman/mozilla
    masters: gentoo
    priority: 50

quarks
    location: /var/lib/layman/quarks
    masters: gentoo
    priority: 50

steam-overlay
    location: /var/lib/layman/steam-overlay
    masters: gentoo
    priority: 50

viprea-overlay
    location: /var/lib/layman/viprea-overlay
    masters: gentoo
    priority: 50

ACCEPT_KEYWORDS="amd64 ~amd64"
ACCEPT_LICENSE="*"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=bdver2 -mtune=bdver2 -O2 -pipe -fomit-frame-pointer -fstack-protector "
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/gnupg/qualified.txt /usr/share/maven-bin-3.2/conf"
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"
CXXFLAGS="-march=bdver2 -mtune=bdver2 -O2 -pipe -fomit-frame-pointer -fstack-protector "
DISTDIR="/usr/portage/distfiles"
FCFLAGS="-O2 -pipe"
FEATURES="assume-digests binpkg-logs candy cgroup clean-logs collision-protect config-protect-if-modified distlocks ebuild-locks fixlafiles merge-sync multilib-strict news nodoc noinfo preserve-libs protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync"
FFLAGS="-O2 -pipe"
GENTOO_MIRRORS="rsync://gentoo.c3sl.ufpr.br/gentoo/"
INSTALL_MASK="/etc/init.d               /etc/conf.d               /etc/runlevels INSTALL.gz TODO.gz"
LANG="pt_BR.utf8"
LDFLAGS="-Wl,-O1 -Wl,--enable-new-dtags -Wl,--sort-common -s"
MAKEOPTS="-j5"
PKGDIR="/usr/portage/packages"
PORTAGE_COMPRESS="bzip2"
PORTAGE_COMPRESS_FLAGS="-9"
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="/tmp"
USE="64bit X a52 aac acl acpi alsa amd64 berkdb branding bzip2 cairo caps cdda cdr cli colord cracklib crypt cxx dbus dri dts dvd dvdr emboss encode exif fam firefox flac fortran gdbm gif glamor gpm gtk gtk3 highlight iconv icu introspection ipv6 jpeg lcms ldap libnotify lzma mad magic math mmx mmxext mng modules mp3 mp4 mpeg multilib ncurses nls nptl ogg openal opencl opengl openmp pam pango pcre pdf png policykit ppds pulseaudio python rar readline sdl session sound spell sqlite sse sse2 sse3 sse4 ssl startup-notification steamruntime svg systemd tcpd theora tiff truetype udev udisks unicode urandom usb vaapi vala vorbis x264 xcb xcomposite xml xv xvid zlib" ABI_X86="64 32" 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" CPU_FLAGS_X86="mmx mmxext sse sse2" 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" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" LINGUAS="pt_BR" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php5-5" PYTHON_SINGLE_TARGET="python3_3" PYTHON_TARGETS="python3_3 python2_7" RUBY_TARGETS="ruby19 ruby20" USERLAND="GNU" VIDEO_CARDS="fglrx" 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, LC_ALL, PORTAGE_BUNZIP2_COMMAND, PORTAGE_RSYNC_EXTRA_OPTS, USE_PYTHON
Comment 1 Jory A. Pratt gentoo-dev 2015-05-30 03:11:29 UTC
minimal useflag will not change the behaviour. This is most likely related to the binary driver if X is crashing as well.
Comment 2 Lara Maia 2015-05-30 03:27:17 UTC
(In reply to Jory A. Pratt from comment #1)
> minimal useflag will not change the behaviour. This is most likely related
> to the binary driver if X is crashing as well.

But without minimal, the problem does not happen.That is weird.
Comment 3 Chí-Thanh Christopher Nguyễn gentoo-dev 2015-05-30 10:06:32 UTC
> sequentially crash everything on system with segmentation fault (desktop > session > Xorg)

Did you verify that both your session and Xorg crashed? It is highly unusual for them to crash simultaneously. In almost all cases, only one of them crashes and causes the other to terminate.
Comment 4 Lara Maia 2015-05-31 01:41:17 UTC
(In reply to Chí-Thanh Christopher Nguyễn from comment #3)
> > sequentially crash everything on system with segmentation fault (desktop > session > Xorg)
> 
> Did you verify that both your session and Xorg crashed? It is highly unusual
> for them to crash simultaneously. In almost all cases, only one of them
> crashes and causes the other to terminate.

Here is the ouput on terminal:

http://termbin.com/r44w

And Xorg backtrace:

http://termbin.com/e77u
Comment 5 Chris Torske 2015-06-01 04:05:02 UTC
I suspect I am getting the same issue, however with the exception of 2 parts.  I'm using Nvidia's binary drivers instead of ati and only firefox has crashed for me.  I'm also running full ~amd64 branch, XFCE for WM (in case if that matters).  The segfaults appears to happen randomly, as in I have it happen on various sites ranging from amazon, google search, gentoo's forum, google news, etc and for various lengths of times.  I've had times where I segfaulted within 5 minutes, other times of going over 5 hours without one (all active usage the entire time).  The seg faults have not happened when a page was still loading, only after for me.

Only thing in my terminal before the message of seg fault, is this:
ct85711@Oate ~ $ firefox

(process:28122): GLib-CRITICAL **: g_slice_set_config: assertion 'sys_page_size == 0' failed
console.error: 
  [CustomizableUI]
  Custom widget with id loop-button does not return a valid node
console.error: 
  [CustomizableUI]
  Custom widget with id loop-button does not return a valid node
console.error: 
  [CustomizableUI]
  NotFoundError: Node was not found -- :1064

[ebuild   R    ] www-client/firefox-38.0.1::gentoo  USE="dbus gmp-autoupdate gstreamer jemalloc3 jit minimal pulseaudio startup-notification system-sqlite -bindist -custom-cflags -custom-optimization -debug -hardened (-pgo) (-selinux) -system-cairo -system-icu -system-jpeg -system-libvpx {-test} -wifi" LINGUAS="-af -ar -as -ast -be -bg -bn_BD -bn_IN -br -bs -ca -cs -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 -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" 0 KiB

I'll try turning on debug, see if I can get a better output for troubleshooting.
Comment 6 Jory A. Pratt gentoo-dev 2015-06-01 04:20:38 UTC
(In reply to Chris Torske from comment #5)
> I suspect I am getting the same issue, however with the exception of 2
> parts.  I'm using Nvidia's binary drivers instead of ati and only firefox
> has crashed for me.  I'm also running full ~amd64 branch, XFCE for WM (in
> case if that matters).  The segfaults appears to happen randomly, as in I
> have it happen on various sites ranging from amazon, google search, gentoo's
> forum, google news, etc and for various lengths of times.  I've had times
> where I segfaulted within 5 minutes, other times of going over 5 hours
> without one (all active usage the entire time).  The seg faults have not
> happened when a page was still loading, only after for me.
> 
> Only thing in my terminal before the message of seg fault, is this:
> ct85711@Oate ~ $ firefox
> 
> (process:28122): GLib-CRITICAL **: g_slice_set_config: assertion
> 'sys_page_size == 0' failed
> console.error: 
>   [CustomizableUI]
>   Custom widget with id loop-button does not return a valid node
> console.error: 
>   [CustomizableUI]
>   Custom widget with id loop-button does not return a valid node
> console.error: 
>   [CustomizableUI]
>   NotFoundError: Node was not found -- :1064
> 
> [ebuild   R    ] www-client/firefox-38.0.1::gentoo  USE="dbus gmp-autoupdate
> gstreamer jemalloc3 jit minimal pulseaudio startup-notification
> system-sqlite -bindist -custom-cflags -custom-optimization -debug -hardened
> (-pgo) (-selinux) -system-cairo -system-icu -system-jpeg -system-libvpx
> {-test} -wifi" LINGUAS="-af -ar -as -ast -be -bg -bn_BD -bn_IN -br -bs -ca
> -cs -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 -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" 0 KiB
> 
> I'll try turning on debug, see if I can get a better output for
> troubleshooting.

Chris you should actually have a look at bug #550828
Comment 7 Chí-Thanh Christopher Nguyễn gentoo-dev 2015-06-01 14:58:16 UTC
Please use bugzilla attachments and not pastebins, as the latter tend to expire.

Anyway,
[   260.360] (EE) 0: /usr/bin/X (xorg_backtrace+0x42) [0x57c632]
[   260.360] (EE) 1: /usr/bin/X (0x400000+0x180479) [0x580479]
[   260.360] (EE) 2: /lib64/libc.so.6 (0x7f2d888f8000+0x336a0) [0x7f2d8892b6a0]
[   260.360] (EE) 3: /lib64/libc.so.6 (0x7f2d888f8000+0x12fc07) [0x7f2d88a27c07]
[   260.360] (EE) 4: /usr/lib64/xorg/modules/glesx.so (0x7f2d82a10000+0xc7148) [0x7f2d82ad7148]
[   260.360] (EE) 5: /usr/lib64/xorg/modules/glesx.so (0x7f2d82a10000+0xc2864) [0x7f2d82ad2864]
[   260.360] (EE) 6: /usr/bin/X (0x400000+0x10a709) [0x50a709]
[   260.361] (EE) 7: /usr/bin/X (0x400000+0x1021f4) [0x5021f4]
[   260.361] (EE) 8: /usr/bin/X (0x400000+0x36ecf) [0x436ecf]
[   260.361] (EE) 9: /usr/bin/X (0x400000+0x3ae1a) [0x43ae1a]
[   260.361] (EE) 10: /lib64/libc.so.6 (__libc_start_main+0xf0) [0x7f2d88918040]
[   260.361] (EE) 11: /usr/bin/X (0x400000+0x2694e) [0x42694e]

that is a crash in the X server, particularly in glesx.so from x11-drivers/ati-drivers. Your desktop session shows no indication of crashing.
Comment 8 Lara Maia 2015-06-26 14:44:31 UTC
Hello, I found the problem.

I had by default at my xorg.conf a section like this?

Section "Files"
        ModulePath "/usr/lib32/xorg/modules"
        ModulePath "/usr/lib64/opengl/ati"
        ModulePath "/usr/lib64/xorg/modules"
EndSection

Removing the first line (/usr/lib32/xorg/modules) everything works well. I just don't understand what or why it was written to the file.
Comment 9 Lara Maia 2015-06-30 03:54:10 UTC
(In reply to Lara Maia from comment #8)
> Hello, I found the problem.
> 
> I had by default at my xorg.conf a section like this?
> 
> Section "Files"
>         ModulePath "/usr/lib32/xorg/modules"
>         ModulePath "/usr/lib64/opengl/ati"
>         ModulePath "/usr/lib64/xorg/modules"
> EndSection
> 
> Removing the first line (/usr/lib32/xorg/modules) everything works well. I
> just don't understand what or why it was written to the file.

This is a false-positive. The same problem came back today without me having changed anything.

There is something really useful that I can do to help?
Comment 10 Matt Turner gentoo-dev 2017-02-23 22:57:43 UTC
ati-drivers is dead, and will not be supported for X.