Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 107662 - www-client/mozilla-firefox-1.0.7-r2 segfaults on startup
Summary: www-client/mozilla-firefox-1.0.7-r2 segfaults on startup
Status: RESOLVED DUPLICATE of bug 96869
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: AMD64 Linux
: High critical (vote)
Assignee: Mozilla Gentoo Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-09-29 18:29 UTC by Richard Freeman
Modified: 2005-10-02 05:52 UTC (History)
0 users

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 Richard Freeman gentoo-dev 2005-09-29 18:29:35 UTC
Firefox aborts with: 
No running windows found 
LoadPlugin: failed to initialize shared 
library /opt/netscape/plugins/libflashplayer.so 
[/opt/netscape/plugins/libflashplayer.so: cannot open shared object file: No 
such file or directory] 
LoadPlugin: failed to initialize shared 
library /opt/netscape/plugins/libflashplayer.so 
[/opt/netscape/plugins/libflashplayer.so: cannot open shared object file: No 
such file or directory] 
/usr/libexec/mozilla-launcher: line 116: 16249 Segmentation fault      
"$mozbin" "$@" 
firefox-bin exited with non-zero status (139) 
 
Emptying out the plugins directory doesn't help. 
 
Here is a backgrace: 
 
Program received signal SIGSEGV, Segmentation fault. 
[Switching to Thread 46912544318144 (LWP 16317)] 
0x00002aaaaf59eec0 in NSGetModule () 
from /usr/lib64/mozilla-firefox/components/libgklayout.so 
(gdb) bt 
#0  0x00002aaaaf59eec0 in NSGetModule () 
from /usr/lib64/mozilla-firefox/components/libgklayout.so 
#1  0x00002aaaaf5a0c3f in NSGetModule () 
from /usr/lib64/mozilla-firefox/components/libgklayout.so 
#2  0x00002aaaaf5a0871 in NSGetModule () 
from /usr/lib64/mozilla-firefox/components/libgklayout.so 
#3  0x00002aaaaf5a2169 in NSGetModule () 
from /usr/lib64/mozilla-firefox/components/libgklayout.so 
#4  0x00002aaaaf582d2d in NSGetModule () 
from /usr/lib64/mozilla-firefox/components/libgklayout.so 
#5  0x00002aaaaf57e93f in NSGetModule () 
from /usr/lib64/mozilla-firefox/components/libgklayout.so 
... 
#43 0x00002aaaaf57bf44 in NSGetModule () 
from /usr/lib64/mozilla-firefox/components/libgklayout.so 
#44 0x00002aaaaae5c476 in XPTC_InvokeByIndex () 
from /usr/lib64/mozilla-firefox/libxpcom.so 
#45 0x00002aaaafc684c7 in NSGetModule () 
from /usr/lib64/mozilla-firefox/components/libxpconnect.so 
#46 0x00002aaaafc7109f in NSGetModule () 
from /usr/lib64/mozilla-firefox/components/libxpconnect.so 
#47 0x00002aaaaac0a4ea in js_Invoke () 
from /usr/lib64/mozilla-firefox/libmozjs.so 
#48 0x00002aaaaac13856 in js_Interpret () 
from /usr/lib64/mozilla-firefox/libmozjs.so 
#49 0x00002aaaaac0a53c in js_Invoke () 
from /usr/lib64/mozilla-firefox/libmozjs.so 
#50 0x00002aaaaac0a791 in js_InternalInvoke () 
from /usr/lib64/mozilla-firefox/libmozjs.so 
#51 0x00002aaaaac0a979 in js_InternalGetOrSet () 
from /usr/lib64/mozilla-firefox/libmozjs.so 
#52 0x00002aaaaac223ae in js_SetProperty () 
from /usr/lib64/mozilla-firefox/libmozjs.so 
#53 0x00002aaaaac12b76 in js_Interpret () 
from /usr/lib64/mozilla-firefox/libmozjs.so 
#54 0x00002aaaaac0a53c in js_Invoke () 
from /usr/lib64/mozilla-firefox/libmozjs.so 
#55 0x00002aaaaac0a791 in js_InternalInvoke () 
from /usr/lib64/mozilla-firefox/libmozjs.so 
#56 0x00002aaaaabe2aa8 in JS_CallFunctionValue () 
from /usr/lib64/mozilla-firefox/libmozjs.so 
#57 0x00002aaaaf5010b3 in NSGetModule () 
from /usr/lib64/mozilla-firefox/components/libgklayout.so 
#58 0x00002aaaaf54f643 in NSGetModule () 
from /usr/lib64/mozilla-firefox/components/libgklayout.so 
... 
#72 0x00002aaaaebe92a6 in NSGetModule () 
from /usr/lib64/mozilla-firefox/components/libnecko.so 
#73 0x00002aaaaae18293 in nsInputStreamReadyEvent::EventHandler () 
from /usr/lib64/mozilla-firefox/libxpcom.so 
#74 0x00002aaaaae37597 in PL_HandleEvent () 
from /usr/lib64/mozilla-firefox/libxpcom.so 
#75 0x00002aaaaae3745a in PL_ProcessPendingEvents () 
from /usr/lib64/mozilla-firefox/libxpcom.so 
#76 0x00002aaaaae39956 in nsEventQueueImpl::NotifyObservers () 
from /usr/lib64/mozilla-firefox/libxpcom.so 
#77 0x00002aaaae6b0cf8 in ?? () 
from /usr/lib64/mozilla-firefox/components/libwidget_gtk2.so 
#78 0x00002aaaac3cd83d in g_io_unix_dispatch () from /usr/lib/libglib-2.0.so.0 
#79 0x00000000007b3a90 in ?? () 
#80 0x0000000000551c70 in ?? () 
#81 0x00002aaaac3a7d1b in g_main_context_dispatch () 
from /usr/lib/libglib-2.0.so.0 
#82 0x00002aaaac3a94c6 in g_main_context_iterate () 
from /usr/lib/libglib-2.0.so.0 
#83 0x00002aaaac3a977e in g_main_loop_run () from /usr/lib/libglib-2.0.so.0 
#84 0x00002aaaab6c0ecc in gtk_main () from /usr/lib/libgtk-x11-2.0.so.0 
#85 0x00002aaaae6b12e1 in ?? () 
from /usr/lib64/mozilla-firefox/components/libwidget_gtk2.so 
#86 0x00002aaaadf41af3 in ?? () 
from /usr/lib64/mozilla-firefox/components/libnsappshell.so 
#87 0x000000000040b6ec in putchar () 
#88 0x0000000000405f57 in ?? () 
#89 0x00002aaaacd2d6a4 in __libc_start_main () from /lib/tls/libc.so.6 
 
(I trimmed out the repeating NSGetModule calls. That is what all the missing 
lines are.) 
 
If somebody can make heads or tails out of this let me know.  I'm happy to try 
suggested fixes. 

Reproducible: Always
Steps to Reproduce:
1.
2.
3.




Gentoo Base System version 1.6.13 
Portage 2.0.51.22-r2 (default-linux/amd64/2005.0, gcc-3.4.4, glibc-2.3.5-r1, 
2.6.12-gentoo-r9-rf36 x86_64) 
================================================================= 
System uname: 2.6.12-gentoo-r9-rf36 x86_64 AMD Athlon(tm) 64 Processor 3000+ 
distcc 2.18.3 x86_64-pc-linux-gnu (protocols 1 and 2) (default port 3632) 
[disabled] 
ccache version 2.3 [enabled] 
dev-lang/python:     2.3.5-r2 
sys-apps/sandbox:    1.2.12 
sys-devel/autoconf:  2.13, 2.59-r6 
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6 
sys-devel/binutils:  2.15.92.0.2-r10 
sys-devel/libtool:   1.5.18-r1 
virtual/os-headers:  2.6.11-r2 
ACCEPT_KEYWORDS="amd64" 
AUTOCLEAN="yes" 
CBUILD="x86_64-pc-linux-gnu" 
CFLAGS="-march=k8 -Os -pipe -fomit-frame-pointer -frename-registers -fweb 
-fstack-protector" 
CHOST="x86_64-pc-linux-gnu" 
CONFIG_PROTECT="/etc /home /opt/zetagrid /usr/kde/2/share/config /usr/kde/3.2/share/config /usr/kde/3.3/env /usr/kde/3.3/share/config /usr/kde/3.3/shutdown /usr/kde/3.4/env /usr/kde/3.4/share/config /usr/kde/3.4/shutdown /usr/kde/3/share/config /usr/lib/X11/xkb /usr/lib64/mozilla/defaults/pref /usr/share/config /usr/share/texmf/dvipdfm/config/ /usr/share/texmf/dvips/config/ /usr/share/texmf/tex/generic/config/ /usr/share/texmf/tex/platex/config/ /usr/share/texmf/xdvi/ /var/bind /var/freenet /var/qmail/control /var/www" 
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d" 
CXXFLAGS="-march=k8 -Os -pipe -fomit-frame-pointer -frename-registers -fweb 
-fstack-protector" 
DISTDIR="/usr/portage/distfiles" 
FEATURES="autoconfig buildpkg ccache distlocks multilib-strict nostrip sandbox 
sfperms strict userpriv usersandbox" 
GENTOO_MIRRORS="ftp://gentoo.mirrors.pair.com/ 
http://mirror.datapipe.net/gentoo http://gentoo.mirrors.pair.com/ 
ftp://ftp.ussg.iu.edu/pub/linux/gentoo" 
MAKEOPTS="-j2" 
PKGDIR="/var/packages" 
PORTAGE_TMPDIR="/var/tmp" 
PORTDIR="/usr/portage" 
PORTDIR_OVERLAY="/usr/local/portage" 
SYNC="rsync://rsync.us.gentoo.org/gentoo-portage" 
USE="amd64 4kstacks X aac aalib aim alsa apache2 arts avi bash-completion 
berkdb bitmap-fonts bonobo canna cdparanoia cdr crypt css cups curl dba dts dv 
dvd eds emboss encode esd ethereal fam fbcon firefox flac foomaticdb fortran 
freetype gd gdbm gif gimpprint glut gmail gnome gphoto2 gpm gstreamer gtk gtk2 
gtkhtml guile iconv imagemagick imap imlib innodb jabber jack java jpeg junit 
kde kerberos ldap libwww lm_sensors lzw lzw-tiff mad maildir memlimit mikmod 
motif mozilla mozsvg mp3 mpeg mpeg4 mplayer msn mysql ncurses nls nptl ntlm oav 
ogg oggvorbis opengl pam pda pdflib perl php png python qt quicktime readline 
ruby samba sasl sdl session slang smime speex spell ssl svg tcltk tcpd tetex 
theora tiff timidity truetype truetype-fonts type1-fonts usb userlocales vorbis 
wmf xine xml xml2 xmms xpm xv xvid zlib userland_GNU kernel_linux elibc_glibc" 
Unset:  ASFLAGS, CTARGET, LANG, LC_ALL, LDFLAGS, LINGUAS
Comment 1 Martin Schlemmer (RETIRED) gentoo-dev 2005-09-30 01:23:04 UTC
Can you remerge with:

 # FEATURES="nostrip noclean debug" USE="debug" \
   CFLAGS="-march=k8 -Os -pipe -ggdb"  \
   CXXFLAGS="-march=k8 -Os -pipe -ggdb" \
   emerge mozilla-firefox

and then get a back-trace again?
Comment 2 Martin Schlemmer (RETIRED) gentoo-dev 2005-09-30 01:27:26 UTC
Do not add your other CFLAGS, as they might cause the backtrace to be unreliable ...
Comment 3 Richard Freeman gentoo-dev 2005-10-01 06:14:51 UTC
Builds and runs fine with those flags.  It looks like firefox is no longer
compatible with -fstack-protector.

Ideally this should be fixed - I can imagine few applications that would beneft
more from stack-protection than a web-browser!
Comment 4 Martin Schlemmer (RETIRED) gentoo-dev 2005-10-02 05:52:39 UTC
Hmm, crap, yeah missed that in your CFLAGS.

*** This bug has been marked as a duplicate of 96869 ***