Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 291886 - www-client/seamonkey-2 Crash 'cause a segmentation default (aparently because of spidermonkey)
Summary: www-client/seamonkey-2 Crash 'cause a segmentation default (aparently because...
Status: RESOLVED NEEDINFO
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: x86 Linux
: High normal (vote)
Assignee: Lars Wendler (Polynomial-C) (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-11-04 18:41 UTC by Federico Moro
Modified: 2011-01-05 14:09 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 Federico Moro 2009-11-04 18:41:35 UTC
This is a strange bug I'm experimenting since seamonkey-2.0_rc2 version.
I've built it with several USEs and it still happening, when I open almost any webpage that contains javascript, seamonkey crashes with
    Segmentation fault "$prog" ${1+"$@"}

I've test it with/out sqlite, crypt, mozdevelop (actualy this option do nothing in the ebuild), and of course I've try deleting my profile and using a new one.

I also have a ppc32 machine where it works perfect, so this bug should be related with CFLAGS (CFLAGS="-march=athlon-xp -O3 -pipe -fomit-frame-pointer")or maybe java (sun-jdk-1.6.0.15).

Official build (binary package) works fine.

Reproducible: Always

Steps to Reproduce:
Just browsing ~85% webpages with javascript code.
Actual Results:  
Segmentation fault "$prog" ${1+"$@"}

Expected Results:  
¡Just browse!

# emerge --info
Portage 2.1.6.13 (default/linux/x86/10.0, gcc-4.3.4, glibc-2.9_p20081201-r2, 2.6.30-gentoo-r6 i686)
=================================================================
System uname: Linux-2.6.30-gentoo-r6-i686-AMD_Athlon-TM-_XP2400+-with-gentoo-1.12.11.1
Timestamp of tree: Wed, 28 Oct 2009 20:00:01 +0000
app-shells/bash:     4.0_p28
dev-java/java-config: 2.1.9-r1
dev-lang/python:     2.6.2-r1
dev-util/cmake:      2.6.4
sys-apps/baselayout: 1.12.11.1
sys-apps/sandbox:    1.6-r2
sys-devel/autoconf:  2.13, 2.63-r1
sys-devel/automake:  1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10.2
sys-devel/binutils:  2.18-r3
sys-devel/gcc-config: 1.4.1
sys-devel/libtool:   2.2.6a
virtual/os-headers:  2.6.27-r2
ACCEPT_KEYWORDS="x86"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-march=athlon-xp -O3 -pipe -fomit-frame-pointer"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /var/lib/hsqldb"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /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 /etc/udev/rules.d"
CXXFLAGS="-march=athlon-xp -O3 -pipe -fomit-frame-pointer"
DISTDIR="/usr/portage/distfiles"
FEATURES="distlocks fixpackages parallel-fetch protect-owned sandbox sfperms strict unmerge-orphans userfetch"
GENTOO_MIRRORS="http://distfiles.gentoo.org http://distro.ibiblio.org/pub/linux/distributions/gentoo"
LDFLAGS="-Wl,-O1"
LINGUAS="es es_ES"
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/enlightenment /usr/local/portage/layman/pro-audio /usr/local/portage/layman/science /usr/local/portage/layman/mozilla /usr/local/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="3dnow 3dnowext X a52 aac acl acpi alsa amr amrnb amrwb animation-rtl animgif aotuv aqua_theme asm aspell async atm audacious audioscrobbler bash-completion bcmath bdf bigpatch bittorrent bl bluetooth boost branding bzip2 c++ cairo carbone_theme cdaudio cdda cddb cdparanoia cdr cdrom cg cli colordiff cracklib crypt cscope css ctype cups cvs cxx dbus dga divx dlslang dri dts dv dvd dvdnav dvdr dvdread enca encode enscript es escreen etwin exif expat fame fbcon ffmpeg fftw flac flash flv foomaticdb fping fpx gcj gd gdbm gecko geoip gif gimp gimpprint gkrellm glade glibc-omitfp glitz glut gmedia gnutls gpm gps gsm gtk gtkspell gzip gzip-el hacking hardened hpn http iconv icp id3 id3tag idn imagemagick imlib imlib2 inkjar ipv6 isdnlog jabber java javascript jikes john joystick jpeg jpeg2k lame latin1 lcms live lzo m17n-lib mad mjpeg mmx mmxext mng modules mozdevelop mozilla moznoirc mp3 mp4 mpeg mpeg2 mplayer msn mudflap ncurses nemesi net network nextaw nls nowebdav nptl nptlonly nsplugin objc objc++ objc-gc offensive ogg openal opengl openmp pam paste64 pcre pdf plotutils png ppds pppd prediction profile python qt-static quicktime rar readline realmedia reflection resid restrict-javascript rss rtc samba sdl seamonkey session slang sound speex spell spl srt sse ssl svg svga sysfs syslog tcpd teletext tftp tga theora threads tiff tivo toolkit-scroll-bars truetype type1 unicode usb v4l v4l2 vdpau vdr vidix vim vim-pager vim-syntax vim-with-x vlm vorbis win32codecs wma wmf wmp x264 x86 xanim xcomposite xext xft xorg xosd xpm xrandr xterm xv xvid xvmc zlib zvbi" ALSA_CARDS="emu10k1" 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" ELIBC="glibc" INPUT_DEVICES="evdev keyboard mouse wacom joystick" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="es es_ES" USERLAND="GNU" VIDEO_CARDS="nvidia v4l"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, FFLAGS, INSTALL_MASK, LANG, LC_ALL, MAKEOPTS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 1 Martin Mokrejš 2009-11-13 12:38:20 UTC
Try to enable debug following the http://www.gentoo.org/proj/en/qa/backtraces.xml?style=printable guide and preferably also look into bugs #289364 and #289483 and to confirm my findings.

You should end up with core dumps generated in /var/dumps/ directory with much more useful backtraces. Do not use -O3, but you can live with "-O2 -ggdb".
Comment 2 Lars Wendler (Polynomial-C) (RETIRED) gentoo-dev 2009-11-14 16:34:00 UTC
I cannot reproduce the problem on any of my machines. 
Are you really sure this is a problem resulting from spidermonkey being installed on your system? Does the error really vanish after you unmerged spidermonkey and re-emerged seamonkey-2?
Comment 3 Federico Moro 2009-11-15 18:59:03 UTC
The spidermonkey I've is the one who comes from seamonkey suit, 'cause I can't unmerge spidermonkey without unmerge seamonkey.

I'm pretty sure because it crash when I enable javascript.

This crash doesn't happend on my ppc32 laptop or using mozilla's seamonkey official binary.

I've try everything and still crashing.
Comment 4 Federico Moro 2009-11-27 17:52:32 UTC
Well, it seems that anybody cares this bug (like lot of others)... but if somebody cares, I've fix it compiling seamonkey with O2 instead of O3, so you should check it and force seamonkey to don't compile it with O3 if needed.
Comment 5 Martin Mokrejš 2009-11-27 19:11:01 UTC
(In reply to comment #4)
> Well, it seems that anybody cares this bug (like lot of others)... but if
> somebody cares, I've fix it compiling seamonkey with O2 instead of O3, so you
> should check it and force seamonkey to don't compile it with O3 if needed.

Please report the compilation bug upstream along with the full debug stacktrace. That will ensure upstream fix the source code not to demand too much from the broken compiler. and post here the bug # you have opened at bugzilla.mozilla.org.
Comment 6 Federico Moro 2009-11-28 03:23:14 UTC
I can do it for them (mozilla), of course, but until seamonkey-2.0 still crashing because of spidermonkey have been compiled with O3, its ebuild, i.e., should force O2 optimization. This is the only reason I've notice here that it works with O2 on x86 amd athlon-xp as it works with O2 on ppc G4.
Does anybody compile seamonkey-2.0 with O3 and it works perfect browsing throw webpages with some javascript?
Comment 7 Jory A. Pratt gentoo-dev 2010-02-14 23:45:35 UTC
This should actually already be fixed, mozcoreconf-2.eclass now forces --enable-optimize=-O2. If this is not fixed let us know, if it is please mark fixed so it will close.
Comment 8 Martin Mokrejš 2010-02-15 10:06:45 UTC
(In reply to comment #7)
> This should actually already be fixed, mozcoreconf-2.eclass now forces
> --enable-optimize=-O2. If this is not fixed let us know, if it is please mark
> fixed so it will close.
> 

Why? Often I need to run:

CFLAGS="-O0 -ggdb" emerge seamonkey
Comment 9 Lars Wendler (Polynomial-C) (RETIRED) gentoo-dev 2010-12-30 08:12:17 UTC
Any news here? Does this still happen?
Comment 10 Lars Wendler (Polynomial-C) (RETIRED) gentoo-dev 2011-01-05 14:09:33 UTC
Please reopen if you still have this problem.