Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 104526 - mozilla-1.7.11-r1 crashes on startup with gtk+-2.8.3
Summary: mozilla-1.7.11-r1 crashes on startup with gtk+-2.8.3
Status: RESOLVED DUPLICATE of bug 106713
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Mozilla Gentoo Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-09-01 15:59 UTC by Mike Auty (RETIRED)
Modified: 2005-09-26 11:50 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 Mike Auty (RETIRED) gentoo-dev 2005-09-01 15:59:25 UTC
After recompiling mozilla-1.7.11-r1 using gtk+-2.8.3 and the package masked
gnome 2.11 beta ebuilds, mozilla always segfaults at startup.  Also all programs
relying on mozilla seem to segfault too (epiphany faults on display, liferea
segfaults but only when the mozilla libgtkmozembed.so is in the LD_LIBRARY_PATH).

After compiling mozilla with the debug use flag, I got the following error when
starting mozilla:

Program /usr/lib/mozilla/mozilla-bin (pid = 14025) received signal 11.
Stack:
__kernel_sigreturn+0x00000000 [ +0x00000420]
nsWindow::OnExposeEvent(_GtkWidget*, _GdkEventExpose*)+0x000000DE
[/usr/lib/mozilla/components/libwidget_gtk2.so +0x0002321E]
UNKNOWN [/usr/lib/mozilla/components/libwidget_gtk2.so +0x000255CB]

Attaching gdb and trying to get a backtrace didn't show anything useful
(although if needed I can attach it) because everything is stripped/not built
with debug.

Mozilla firefox doesn't segfault.  I don't know whether that's because it hasn't
been recompiled since >=gtk+-2.8.0 was installed, or because it's a custom CVS
ebuild.  It's possible it's related to mozilla bug 305185, but I'm not
statically compiling and I don't know whether the problem's related to pangoxft
or not (the above information doesn't seem to suggest it)...

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

Actual Results:  
Mozilla segfaults with the above segfault

Expected Results:  
Not segfaulted, would've been nice.  5:)

I've got a pretty hard config to debug, it's got nptl, pic, pie and hardened flags.

Portage 2.0.51.22-r2 (default-linux/x86/2005.0, gcc-3.4.4, glibc-2.3.5-r1,
2.6.13 i686)
=================================================================
System uname: 2.6.13 i686 AMD Athlon(tm) 64 Processor 3400+
Gentoo Base System version 1.12.0_pre7
ccache version 2.4 [enabled]
dev-lang/python:     2.4.1-r1
sys-apps/sandbox:    1.2.12
sys-devel/autoconf:  2.13, 2.59-r7
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.16.1
sys-devel/libtool:   1.5.18-r1
virtual/os-headers:  2.6.11-r2
ACCEPT_KEYWORDS="x86 ~x86"
AUTOCLEAN="yes"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-O2 -march=athlon-xp -fomit-frame-pointer"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3/share/config
/usr/lib/X11/xkb /usr/lib/mozilla/defaults/pref /usr/share/config
/var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d"
CXXFLAGS="-O2 -march=athlon-xp -fomit-frame-pointer"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoconfig ccache collision-protect cvs distlocks sandbox sfperms
strict test"
GENTOO_MIRRORS="http://distfiles.gentoo.org
http://distro.ibiblio.org/pub/Linux/distributions/gentoo"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/overlays/personal"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="x86 3dnow X aac aalib acl acpi adns alsa animation ao audiofile avi
bash-completion berkdb bitmap-fonts boundschecking cairo ccache cdr cjk client
crypt cups dbus djvu dlloader dpms dri dvd dvdr dvi emboss encode flac
foomaticdb fortran gd gdbm gif glade glitz gnome gnutls gstreamer gtk gtk2
gtkhtml hal hardened imagemagick imap imlib java jpeg junit libg++ libwww mad
maildir mbox mikmod mime mmx mmxext motif mozilla mozsvg mp3 mpeg ncurses nls
nntp nptl nptlonly nvidia ogg oggvorbis opengl pam pdflib perl pic pie plot png
pop3 postgres python quicktime readline real ruby sdl server snmp spell sse sse2
ssl svg svga t1lib tcpd theora tiff truetype truetype-fonts type1-fonts unicode
usb vorbis win32codecs xine xml2 xrandr xv xvid zlib userland_GNU kernel_linux
elibc_glibc"
Unset:  ASFLAGS, CTARGET, LANG, LC_ALL, LDFLAGS, LINGUAS


If there's any tests I can run, or further information I can provide, please
just ask.  I'll be happy to test anything out to try and fix the bug...
Comment 1 Stephen Cavilia 2005-09-11 14:40:54 UTC
My experience: With gtk+-2.8.3-r1, mozilla and firefox NOT recompiled since the 
gtk upgrade,   
mozilla hangs on startup, firefox-bin exits with status 1 (sorry, don't have   
USE=debug on), epiphany runs but doesn't display pages, liferea segfaults...  
Comment 2 Chris Mayo 2005-09-15 12:01:46 UTC
Also experienced mozilla, firefox and liferea (using mozilla for rendering)
crashing after emerging gnome-base/gnome-2.12.0.

The problem for me seems to be mozilla svg support and cairo-1.0.0-r2, on
emerging again:

i686-pc-linux-gnu-g++ -o nsSVGCairoCanvas.o -c -DOSTYPE=\"Linux2.6\" -DOSARCH=\"
Linux\" -I../../../../../gfx/src -I../../../../../gfx/src/gtk  -I../../../../../
dist/include/xpcom -I../../../../../dist/include/widget -I../../../../../dist/in
clude/pref -I../../../../../dist/include/gfx -I../../../../../dist/include/imgli
b2 -I../../../../../dist/include/string -I../../../../../dist/include/dom -I../.
./../../../dist/include/content -I../../../../../dist/include/necko -I../../../.
./../dist/include/util -I../../../../../dist/include/uconv -I../../../../../dist
/include/windowwatcher -I../../../../../dist/include/layout -I../../../../../dis
t/include -I/var/tmp/portage/mozilla-firefox-1.0.6-r7/work/mozilla/dist/include/
nspr        -fPIC  -DGENTOO_NSPLUGINS_DIR=\"/usr/lib/nsplugins\" -DGENTOO_NSBROW
SER_PLUGINS_DIR=\"/usr/lib/nsbrowser/plugins\"  -fno-rtti -fno-handle-exceptions
 -Wall -Wconversion -Wpointer-arith -Wcast-align -Woverloaded-virtual -Wsynth -W
no-ctor-dtor-privacy -Wno-non-virtual-dtor -Wno-long-long -march=prescott -pipe
-Wno-deprecated -Wno-return-type -w -fshort-wchar -pthread -pipe  -DNDEBUG -DTRI
MMED -ffunction-sections -O2 -I/usr/include/cairo    -I/usr/include/gtk-2.0 -I/u
sr/lib/gtk-2.0/include -I/usr/include/atk-1.0 -I/usr/include/cairo -I/usr/includ
e/pango-1.0 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include    -DGENTOO_NSPL
UGINS_DIR=\"/usr/lib/nsplugins\" -DGENTOO_NSBROWSER_PLUGINS_DIR=\"/usr/lib/nsbro
wser/plugins\"  -DMOZILLA_CLIENT -include ../../../../../mozilla-config.h -Wp,-M
D,.deps/nsSVGCairoCanvas.pp nsSVGCairoCanvas.cpp
/usr/include/cairo/cairo.h: In member function `nsresult
   nsSVGCairoCanvas::Init(nsIRenderingContext*, nsIPresContext*, const nsRect&)
   ':
/usr/include/cairo/cairo.h:241: error: too few arguments to function `cairo_t*
   cairo_create(cairo_surface_t*)'
nsSVGCairoCanvas.cpp:119: error: at this point in file
nsSVGCairoCanvas.cpp:122: error: `
   cairo_set_target_drawable_DEPRECATED_BY_cairo_xlib_surface_create'
   undeclared (first use this function)
nsSVGCairoCanvas.cpp:122: error: (Each undeclared identifier is reported only
   once for each function it appears in.)
nsSVGCairoCanvas.cpp: In member function `virtual nsresult
   nsSVGCairoCanvas::Clear(unsigned int)':
nsSVGCairoCanvas.cpp:208: error: `
   cairo_set_rgb_color_REPLACED_BY_cairo_set_source_rgb' undeclared (first use
   this function)
gmake[6]: *** [nsSVGCairoCanvas.o] Error 1
gmake[6]: Leaving directory `/var/tmp/portage/mozilla-firefox-1.0.6-r7/work/mozi
lla/layout/svg/renderer/src/cairo'
gmake[5]: *** [libs] Error 2



emerging USE="-mozsvg" mozilla-firefox-1.0.6-r7 and mozilla-1.7.11-r3 both
completed and then liferea would start.
Comment 3 Chris Mayo 2005-09-26 11:20:59 UTC
svg issues covered in bug #106713 and fixed in mozilla-firefox-1.0.7.ebuild
Comment 4 Martin Schlemmer (RETIRED) gentoo-dev 2005-09-26 11:50:40 UTC

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