Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 303175

Summary: www-client/mozilla-firefox-3.6-r1 crashes with segfault on multiple occasions
Product: Gentoo Linux Reporter: Martin Wolters <sirdzstic>
Component: Current packagesAssignee: Mozilla Gentoo Team <mozilla>
Status: RESOLVED WORKSFORME    
Severity: normal CC: pva, zmedico
Priority: High    
Version: unspecified   
Hardware: x86   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: strace
backtrace
stderr output

Description Martin Wolters 2010-02-02 03:10:04 UTC
After installing www-client/mozilla-thunderbird-3.6-r1, I experienced
crashes on multiple occasions, like trying to subscribe to an rss feed
or sometimes even after saving a bookmark, with a segfault. Sometimes
firefox won't even run again after such a crash, giving no error message.
Deleting ~/.mozilla lets me run firefox again, but it will still crash
on the occasions mentioned above and many others, rendering it unusable.

Downgrading to www-client/mozilla-thunderbird-3.5.7 didn't change the problem,
although that version was working before. Switching to firefox-bin also does
not help.

Reproducible: Always

Steps to Reproduce:
1. Run Firefox

2a. Try to subscribe to any rss feed
3a. Segfault

2b. Try to login to gmail
3b. Segfault

Actual Results:  
Segfault

Expected Results:  
Subscribe to an rss feed or Getting redirected to the gmail account.

root@localh0rst /home/asdf $ emerge --info
Portage 2.1.7.17 (default/linux/x86/10.0/desktop, gcc-4.4.2, glibc-2.11-r1, 2.6.33-rc6-git i686)
=================================================================                               
System uname: Linux-2.6.33-rc6-git-i686-AMD_Phenom-tm-_II_X4_920_Processor-with-gentoo-2.0.1    
Timestamp of tree: Tue, 02 Feb 2010 01:15:02 +0000                                              
ccache version 2.4 [enabled]                                                                    
app-shells/bash:     4.0_p37                                                                    
dev-java/java-config: 2.1.10                                                                    
dev-lang/python:     2.6.4-r1, 3.1.1-r1                                                         
dev-util/ccache:     2.4-r8                                                                     
dev-util/cmake:      2.8.0-r2                                                                   
sys-apps/baselayout: 2.0.1                                                                      
sys-apps/openrc:     0.6.0-r1                                                                   
sys-apps/sandbox:    2.2                                                                        
sys-devel/autoconf:  2.13, 2.65                                                                 
sys-devel/automake:  1.8.5-r3, 1.9.6-r2, 1.10.3, 1.11.1                                         
sys-devel/binutils:  2.20                                                                       
sys-devel/gcc:       4.4.2                                                                      
sys-devel/gcc-config: 1.4.1                                                                     
sys-devel/libtool:   2.2.6b                                                                     
virtual/os-headers:  2.6.30-r1                                                                  
ACCEPT_KEYWORDS="x86 ~x86"                                                                      
ACCEPT_LICENSE="* -@EULA Q3AEULA PUEL skype-eula"                                               
CBUILD="i486-pc-linux-gnu"                                                                      
CFLAGS="-O2 -march=amdfam10 -pipe"                                                              
CHOST="i486-pc-linux-gnu"                                                                       
CONFIG_PROTECT="/etc /usr/share/X11/xkb /usr/share/config"                                      
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/sandbox.d /etc/splash /etc/terminfo /etc/texmf/language.dat.d /etc/texmf/language.def.d /etc/texmf/updmap.d /etc/texmf/web2c"                                                                                                                                  
CXXFLAGS="-O2 -march=amdfam10 -pipe"                                                                                                    
DISTDIR="/usr/portage/distfiles"                                                                                                        
FEATURES="assume-digests ccache distlocks fixpackages news parallel-fetch protect-owned sandbox sfperms strict unmerge-logs unmerge-orphans userfetch"                                                                                                                          
GENTOO_MIRRORS="ftp://sunsite.informatik.rwth-aachen.de/pub/Linux/gentoo ftp://mirror.netcologne.de/gentoo"                             
LANG="en_US.UTF-8"                                                                                                                      
LC_ALL="en_US.UTF-8"                                                                                                                    
LDFLAGS="-Wl,-O1"                                                                                                                       
MAKEOPTS="-j5"                                                                                                                          
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="/usr/local/portage/layman/x11 /usr/local/portage/own"                                                                  
SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage"                                                                                   
USE="3dnow X Xaw3d a52 aac aalib acl acpi aim alsa apache2 apm bash-completion berkdb branding bzip2 cairo cdda cddb cdparanoia cdr cli consolekit cracklib crypt css cups curl curlwrappers cvs cxx dbus dri dts dvb dvd dvdr eds emboss encode evo exif fam fbcon ffmpeg firefox flac foomaticdb fortran ftp fuse gdbm gif gimp glut gnome gnome-keyring gnutls gpm gstreamer gtk gtkhtml guile gzip hal hddtemp iconv icq imagemagick imap ipod ipv6 jabber javascript joystick jpeg jpeg2k kde lame latex ldap libcaca libnotify lm_sensors mad matroska mikmod mime mmx mmxext mng modules mozilla mp3 mp4 mpeg mplayer msn mudflap musicbrainz mysql nautilus ncurses networking nls nptl nptlonly nsplugin offensive ogg openal opengl openmp oscar pam pcre pdf perl png posix ppds pppd python qt3 qt3support qt4 quicktime readline reflection sdl session smartcard smp sockets speex spell spl sse sse2 ssl ssse3 startup-notification subversion svg svga sysfs syslog tcpd theora threads thunar tiff truetype unicode usb v4l v4l2 vdpau vorbis wifi win32codecs x264 x86 xml xorg xulrunner xv xvid zlib" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1 emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" 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 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" DVB_CARDS="dibusb-usb1 dibusb-usb2" ELIBC="glibc" INPUT_DEVICES="keyboard mouse evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" RUBY_TARGETS="ruby18" USERLAND="GNU" VIDEO_CARDS="fbdev nv vesa nouveau nvidia"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, FFLAGS, INSTALL_MASK, LINGUAS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 1 Martin Wolters 2010-02-02 03:12:06 UTC
Created attachment 218121 [details]
strace

This is the output of strace firefox. I set xkcd.com as my home page before and just clicked the rss icon inside the address field. Then firefox crashed.
Comment 2 Peter Volkov (RETIRED) gentoo-dev 2010-02-02 07:14:59 UTC
Try to start firefox from command line. Is there any  useful output there? If not try to build firefox with debugging symbols enabled and get backtrace.

http://www.gentoo.org/proj/en/qa/backtraces.xml

Assigning on maintainers as probably they can suggest more.
Comment 3 Martin Wolters 2010-02-02 08:18:24 UTC
Created attachment 218135 [details]
backtrace

I merged firefox with debug useflag and -ggdb added to CFLAGS. Now firefox
crashed without even showing a window. Backtrace attached.
Comment 4 Martin Wolters 2010-02-02 08:19:30 UTC
Created attachment 218137 [details]
stderr output

This is the output on stderr for firefox with debug symbols (crashing instantly,
as stated before).
Comment 5 Martin Wolters 2010-02-02 09:06:32 UTC
Playing around with the USE-flags showed that removing the gnome flag from xulrunner makes firefox work fine again. It looks like there's something wrong with gnome then; and changing my X session to gnome reveals that gnome also crashes instantly. I guess it's time to open another bug report then.

Comment 6 Jory A. Pratt gentoo-dev 2010-02-10 23:00:17 UTC
(In reply to comment #5)
> Playing around with the USE-flags showed that removing the gnome flag from
> xulrunner makes firefox work fine again. It looks like there's something wrong
> with gnome then; and changing my X session to gnome reveals that gnome also
> crashes instantly. I guess it's time to open another bug report then.
> 

It is time to run a revdep-rebuild, you most likely have upgraded part of gnome without ensuring linking is consistent. If you can reproduce after a revdep-rebuild we will begin to look at this, feel free to reopen after you have run a revdep-rebuild.
Comment 7 Mauricio L. Pilla (RETIRED) gentoo-dev 2010-02-15 00:19:56 UTC
I've experienced the same issue with mozilla-firefox-3.6-r2. revdep-rebuild, rebuilding xulrunner and nss didn't help. Analyzing the libraries opened by firefox with strace, I've discovered that it was loading a library from /opt (I had firefox-bin installed there). Uninstalling firefox-bin fixed my issues.
Comment 8 Jory A. Pratt gentoo-dev 2010-02-15 00:37:24 UTC
(In reply to comment #7)
> I've experienced the same issue with mozilla-firefox-3.6-r2. revdep-rebuild,
> rebuilding xulrunner and nss didn't help. Analyzing the libraries opened by
> firefox with strace, I've discovered that it was loading a library from /opt (I
> had firefox-bin installed there). Uninstalling firefox-bin fixed my issues.
> 

I have just changed firefox-bin around, the libs it provides will not be found anymore by a standard mozilla-firefox install.
Comment 9 Thilo Bangert (RETIRED) (RETIRED) gentoo-dev 2010-04-22 08:09:02 UTC
i had a similar issue. firefox wouldnt even start, but crash with ABORT immediately.
to fix it, i deinstalled mozilla-thunderbird-bin-2.0.0.19