Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 239992 - www-client/mozilla-firefox-3* consistently segfaults with librsvg-2.22.3
Summary: www-client/mozilla-firefox-3* consistently segfaults with librsvg-2.22.3
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: x86 Linux
: Highest normal with 1 vote (vote)
Assignee: Mozilla Gentoo Team
URL:
Whiteboard:
Keywords:
: 265357 326839 (view as bug list)
Depends on:
Blocks:
 
Reported: 2008-10-05 16:25 UTC by Yoel Jacobsen
Modified: 2010-07-20 11:16 UTC (History)
15 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
The generated bugreport filewith librsvg-2.22.3 (firefox-bugreport.txt,812.32 KB, text/plain)
2008-10-05 16:26 UTC, Yoel Jacobsen
Details
the patch to librsvg v2.26.0 (librsvg-2.26.0-parse-path-crash.patch,538 bytes, patch)
2009-04-16 15:01 UTC, Xu Li
Details | Diff
librsvg strip flags that will cause crashes (librsvg-flag-o-matic.patch,603 bytes, patch)
2010-07-14 05:14 UTC, dmamfmgm
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Yoel Jacobsen 2008-10-05 16:25:51 UTC
Firefox 3.0.3 crashes randomly if libsrvg-2.22.3 is installed. Reverting to libsrvg-2.22.2 solves the problem.

Reproducible: Sometimes

Steps to Reproduce:
1.Start firefox
2.
3.

Actual Results:  
Segmentation fault in librsvg

Expected Results:  
Firefox starts up

This happens in my system with either mozilla-firefox and mozilla-firefox-bin
Comment 1 Yoel Jacobsen 2008-10-05 16:26:37 UTC
Created attachment 167316 [details]
The generated bugreport filewith librsvg-2.22.3
Comment 2 Yoel Jacobsen 2008-10-05 16:30:08 UTC
This should be librsvg ..

Sorry.

(In reply to comment #0)
> Firefox 3.0.3 crashes randomly if libsrvg-2.22.3 is installed. Reverting to
> libsrvg-2.22.2 solves the problem.
> 
> Reproducible: Sometimes
> 
> Steps to Reproduce:
> 1.Start firefox
> 2.
> 3.
> 
> Actual Results:  
> Segmentation fault in librsvg
> 
> Expected Results:  
> Firefox starts up
> 
> This happens in my system with either mozilla-firefox and mozilla-firefox-bin
> 

Comment 3 Jeroen Roovers (RETIRED) gentoo-dev 2008-10-05 20:08:37 UTC
Please post your `emerge --info' too.
Comment 4 Yoel Jacobsen 2008-10-05 21:05:15 UTC
# emerge --info
Portage 2.2_rc11 (default/linux/x86/2008.0, gcc-4.3.2, glibc-2.8_p20080602-r0, 2.6.26-gentoo-r1 i686)
=================================================================
System uname: Linux-2.6.26-gentoo-r1-i686-Intel-R-_Pentium-R-_M_processor_2.00GHz-with-glibc2.0
Timestamp of tree: Sun, 05 Oct 2008 06:15:04 +0000
app-shells/bash:     3.2_p39
dev-java/java-config: 1.3.7, 2.1.6-r1
dev-lang/python:     2.4.4-r15, 2.5.2-r8
dev-python/pycrypto: 2.0.1-r6
sys-apps/baselayout: 2.0.0
sys-apps/openrc:     0.2.5
sys-apps/sandbox:    1.2.18.1-r3
sys-devel/autoconf:  2.13, 2.63
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10.1-r1
sys-devel/binutils:  2.18-r3
sys-devel/gcc-config: 1.4.0-r4
sys-devel/libtool:   2.2.6a
virtual/os-headers:  2.6.26
ACCEPT_KEYWORDS="x86 ~x86"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-O2 -march=pentium-m -pipe -mfpmath=sse -msse2"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/share/config /var/lib/hsqldb"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/initng/daemon /etc/initng/net /etc/initng/system /etc/php/apache2-php5/ext-active/ /etc/php/cgi-php5/ext-active/ /etc/php/cli-php5/ext-active/ /etc/revdep-rebuild /etc/terminfo /etc/texmf/web2c /etc/udev/rules.d"
CXXFLAGS="-O2 -march=pentium-m -pipe -mfpmath=sse -msse2"
DISTDIR="/usr/portage/distfiles"
FEATURES="distlocks parallel-fetch preserve-libs protect-owned sandbox sfperms strict unmerge-orphans userfetch"
GENTOO_MIRRORS="http://distfiles.gentoo.org http://distro.ibiblio.org/pub/linux/distributions/gentoo"
LANG="en_US"
LC_ALL="en_US"
LDFLAGS="-Wl,-O1"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
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/portage/local/layman/sunrise /usr/portage/local/layman/initng /usr/portage/local/layman/pro-audio /usr/local/portage"
SYNC="rsync://mirror.hamakor.org.il/gentoo-portage"
USE="X aac accessibility acl acpi admin alsa apache2 bash-completion berkdb bidi binfilter bluetooth bogofilter bzip2 cairo calendar cdparanoia cdr clamav cli commercial cracklib crypt cups dbus dia divx4linux dri dvd dvdr dvdread emacs epiphany esd exif extras flac foomaticdb fortran gdbm gimpprint gmail gnome gnome-print gphoto2 gpm gstreamer gtk gtk2 hal iconv imap innodb ipv6 irda isdnlog ithreads jack java jpeg kqemu ldap libnotify live mad midi mime mjpeg mmx modplug mono mozdevelop mp3 mpeg mudflap musepack mysql nautilus ncurses network new-clx new_login nls nntp nptl nptlonly nsplugin openct opengl openmp pam pcre pda pdf perl png postgres ppds pppd python qt radeon readline reflection samba sdl session skype sms softmmu spell spl sse sse2 ssl sysfs tcpd threads timidity tk truetype unicode usb utf8 vim-syntax win32codecs wma x86 xml xorg xprint xulrunner xvid zlib" ALSA_CARDS="intel8x0 usb-audio" 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" INITNG_PLUGINS="also bash_launcher chdir chroot conflict cpout critical ctrlaltdel daemon_clean debug_commands envparser find fmon fstat history idleprobe initctl interactive iparser last limit lockfile logfile netdev netprobe ngc4 ngcs nge pause provide reload renice rlparser simple_launcher stcmd stdout suid syncron syslog sysreq unneeded usplash" INPUT_DEVICES="keyboard mouse" KERNEL="linux" LCD_DEVICES="cfontzpacket cfontz" USERLAND="GNU" VIDEO_CARDS="ati radeon fglrx vesa"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, FFLAGS, INSTALL_MASK, LINGUAS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS

Comment 5 Dries Kimpe 2008-10-10 14:24:30 UTC
I can confirm this.
(and the fact that downgrading librsvg solves the problem)

Portage 2.2_rc12 (default/linux/x86/2008.0/desktop, gcc-4.3.1, glibc-2.8_p20080602-r0, 2.6.26-gentoo-r1 i686)
=================================================================
System uname: Linux-2.6.26-gentoo-r1-i686-Genuine_Intel-R-_CPU_U2500_@_1.20GHz-with-glibc2.0
Timestamp of tree: Thu, 09 Oct 2008 21:45:01 +0000
distcc 2.18.3 i686-pc-linux-gnu (protocols 1 and 2) (default port 3632) [disabled]
ccache version 2.4 [disabled]
app-shells/bash:     3.2_p39
dev-java/java-config: 1.3.7, 2.1.6-r1
dev-lang/python:     2.4.4-r9, 2.5.2-r8
dev-python/pycrypto: 2.0.1-r6
dev-util/ccache:     2.4-r8
sys-apps/baselayout: 2.0.0
sys-apps/openrc:     0.2.5
sys-apps/sandbox:    1.2.18.1-r3
sys-devel/autoconf:  2.13, 2.63
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10.1-r1
sys-devel/binutils:  2.18-r3
sys-devel/gcc-config: 1.4.0-r4
sys-devel/libtool:   2.2.6a
virtual/os-headers:  2.6.26
ACCEPT_KEYWORDS="x86 ~x86"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-O2 -march=prescott -msse3 -mfpmath=sse -pipe"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /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/php/apache2-php5/ext-active/ /etc/php/cgi-php5/ext-active/ /etc/php/cli-php5/ext-active/ /etc/revdep-rebuild /etc/terminfo /etc/texmf/web2c /etc/udev/rules.d"
CXXFLAGS="-O2 -march=prescott -msse3 -mfpmath=sse -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="distlocks parallel-fetch preserve-libs protect-owned sandbox sfperms strict unmerge-orphans userfetch"
GENTOO_MIRRORS="http://ftp.first-world.info/ "
LANG="nl_BE.UTF-8"
LC_ALL="nl_BE.UTF-8"
LDFLAGS="-Wl,-O1"
LINGUAS="nl en"
MAKEOPTS="-j3"
PKGDIR="/usr/portage/packages"
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"
SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage"
USE="7zip X a52 aac acl acpi additions aiglx aim aio alsa amr apache2 applet archive asf async audacious automount bacula-clientonly bacula-console bacula-nodir bacula-nosd bash-completion berkdb binary-drivers binfilter bluetooth branding buffysize bzip2 cairo cddb cdio cdparanoia cdr cgns chipcard chipcard2 cli client-only cracklib crypt cscope cups curl dbus dell detex device-mapper dhcp dia disk-partition divx djvu dmx dri dts dv dvd dvdr dvdread dvi effects emboss emerald enblend enca encode enscript evo exif extra extrafilters extras fam fbcon fbdev fbsplash ffmpeg flac fontconfig foomaticdb fortran ftp fuse gd gdbm gif gimp gimpprint glitz gmail gmedia gnome gnutls gpgme gphoto2 gpm gps graphics graphviz gs gstreamer gtk gtk2 hal hddtemp hdri howl humanities hvm hybrid i8x0 iconv idea ieee1394 ilbc imap imlib insecure-patches insecure-savers ipod iptc ipw3945 irda isdnlog jabber jbig jingle jpeg jpeg2k kdeenablefinal kdehiddenvisibility kpathsea kqemu lame laptop latex lcms ldap libnotify libsamplerate logrotate logwatch lvm lvm2 lzo mad maildir maya-shaderlibrary md5sum metis midi mikmod mjpeg mmap mmx mmxext mode-owner mp2 mp3 mpeg mplayer mudflap nat nautilus ncurses networkmanager new-login nfs nls nntp nptl nptlonly nsplugin nxclient objc offensive ogg openct openexr opengl openmp ophsmall otr pager pam pango paste64 patch pch pcmcia pcre pcsc-lite pda pdf perl plotutils plugin plugins pmount png pop postscript ppds pppd pstricks pygrub python qt3 qt3support qt4 quicktime rar raw readline real realmedia reflection rle rtc samba scanner science screen sdl sensord session sftp sidebar sift silvercity slp smartcard smime smp sound speex spell spl sqlite srt sse sse-filters sse2 ssl startup-notification staticsocket subversion suexec svg sysfs t1lib tcpd tetex theora threads tiff trayicon truetype unicode usb v4l v4l2 vcd vim vim-syntax vim-with-x vorbis wavpack webdav win32codecs wma wmf wmp x264 x86 xcb xcomposite xetex xforms xine xinerama xml xorg xpm xscreensaver xsl xulrunner xv xvid xvmc zlib zrtp" ALSA_CARDS="emu10k1x hda-intel usb-audio via82xx via82xx-modem intel8x0 intel8x0m loopback" 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" CAMERAS="ptp2 canon spca50x konica" ELIBC="glibc" INPUT_DEVICES="evdev keyboard mouse wacom synaptics" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="nl en" USERLAND="GNU" VIDEO_CARDS="vesa vga intel i810"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, FFLAGS, INSTALL_MASK, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS

Comment 6 Andrew Kirilenko 2008-10-10 15:36:50 UTC
Confirming. How to reproduce - try to edit search engine keyword - guaranteed crash. Also, some of mono apps (beagle-search & f-spot crashes with the same symptomps and donwgrading helps there as well).

Comment 7 Albert W. Hopkins 2008-10-11 21:06:00 UTC
Ditto for beagle-search and  crashes with epiphany as well (I can post a stack trace).  Downgrading libsrvg seems to resolve the issue.
Comment 8 Alois Hammer 2008-10-14 23:34:55 UTC
Confirmed for mozilla-firefox-3.0.3, with and without the custom-optimization flags for xulrunner and mozilla-firefox.
Comment 9 Andrew D. Keyser (aka Legoguy) 2008-11-01 04:34:26 UTC
Do you all have gnome-settings-daemon running? seems, for me anyway, that this librsvg only causes firefox to crash when g-s-d is running. No matter, bug still applies; just a bit of food for thought.
Comment 10 Alois Hammer 2008-11-02 00:01:57 UTC
(In reply to comment #9)
> Do you all have gnome-settings-daemon running? seems, for me anyway, that this
> librsvg only causes firefox to crash when g-s-d is running. No matter, bug
> still applies; just a bit of food for thought.

Aye.
Comment 11 Yoel Jacobsen 2008-12-16 09:11:50 UTC
The problem still exists with firefox 3.0.4-r2

Yoel


> (In reply to comment #9)
> > Do you all have gnome-settings-daemon running? seems, for me anyway, that this
> > librsvg only causes firefox to crash when g-s-d is running. No matter, bug
> > still applies; just a bit of food for thought.
> 
> Aye.
> 

Comment 12 Ashu Tiwary 2009-02-25 11:15:25 UTC
I would suggest hard-masking this version for now - occurs with Firefox 3.0.6 as well as several apps I use for work (IBM applications: SameTime, Lotus Notes, Symphony) - all crash with coredumps in librsvg (in same location: in rsvg-path.c:rsvg_parse_path_do_cmd() (line 144).  All of these issues are resolved by regressing librsvg back to the prior version (2.22.2).  diff against the file between the two versions shows considerable changes (unfortunately, I am neither familiar with that code nor well versed enough in SVG to understand what is trying to be done - and what was wrong with the 2.22.2 version that the 2.22.3 version was trying to fix).
Comment 13 Ashu Tiwary 2009-03-12 09:18:41 UTC
Bug is still existent with firefox v3.0.7 and librsvg 2.22.3
Comment 14 Alois Hammer 2009-03-12 15:07:50 UTC
There doesn't seem to be any burning interest in fixing this bug, so I'm off.  Good luck, guys.
Comment 15 Raúl Porcel (RETIRED) gentoo-dev 2009-03-12 15:09:10 UTC
No need to cc mozilla, this bug is already assigned to mozilla.
Comment 16 Raúl Porcel (RETIRED) gentoo-dev 2009-03-12 15:10:36 UTC
Wonder why gnome wasn't cc'ed.
Comment 17 Alois Hammer 2009-04-06 05:47:19 UTC
Crashes randomly with 2.26.0, too.  Woo!
Comment 18 Tommaso Pasini 2009-04-07 21:13:50 UTC
*** Bug 265357 has been marked as a duplicate of this bug. ***
Comment 19 Tommaso Pasini 2009-04-07 21:16:22 UTC
I've run across this issue today, and after opening a new bug I found this report - right fix, thank you.

I'd like to point out that the problem only occurs with gcc-4.3, because before upgrading my system everything was running fine with firefox-3 and librsvg-2.26.
Comment 20 Nirbheek Chauhan (RETIRED) gentoo-dev 2009-04-08 08:44:33 UTC
(In reply to comment #6)
> Confirming. How to reproduce - try to edit search engine keyword - guaranteed
> crash. Also, some of mono apps (beagle-search & f-spot crashes with the same
> symptomps and donwgrading helps there as well).
> 

I'm not sure I understand how to reproduce this. What exactly needs to be done?

Also, can someone try to verify if this bug also exists with firefox-3.1_beta3 (from the overlay)?

Can I also get a confirmation that the -bin version is affected by this?
Comment 21 Nirbheek Chauhan (RETIRED) gentoo-dev 2009-04-08 08:52:10 UTC
The changes made for the 2.22.3 release are at http://ftp.acc.umu.se/pub/GNOME/sources/librsvg/2.22/librsvg-2.22.3.changes

A reliable method for reproduction is important for bisecting the issue.
Comment 22 Tommaso Pasini 2009-04-08 11:55:27 UTC
(In reply to comment #20)
> I'm not sure I understand how to reproduce this. What exactly needs to be done?

Here:
- gcc-4.3.2-r3 (latest stable)
- firefox-3.0.8 (latest stable)
- librsvg-2.22.3 (latest stable) or librsvg-2.26.0 (unstable from gnome overlay).
Comment 23 Nirbheek Chauhan (RETIRED) gentoo-dev 2009-04-09 09:02:41 UTC
(In reply to comment #22)
> (In reply to comment #20)
> > I'm not sure I understand how to reproduce this. What exactly needs to be done?
> 
> Here:
> - gcc-4.3.2-r3 (latest stable)
> - firefox-3.0.8 (latest stable)
> - librsvg-2.22.3 (latest stable) or librsvg-2.26.0 (unstable from gnome
> overlay).

Yeah, sure, but how do I reproduce the bug reliably? "Randomly" is not good enough.
Comment 24 Tommaso Pasini 2009-04-09 16:19:49 UTC
(In reply to comment #23)
> Yeah, sure, but how do I reproduce the bug reliably? "Randomly" is not good
> enough.
> 

If with "reliably" you mean "some way that makes the bug occur every time", that's it. Otherwise, what do you mean?
I had my system with gcc-4.1.3 and everything was running fine; I upgraded to gcc-4.3.2 and I had to mask librsvg from 2.22.3 up to the latest version to have firefox back; the segmentation fault happens every time.

If you need some extra info, go to https://bugs.gentoo.org/show_bug.cgi?id=265357 (the duplicate bug I opened before finding this one).
Comment 25 Pun 2009-04-09 18:55:25 UTC
This might be slightlu offtopic but I have the whole gnome desktop segfaulting with librsvg 2.22.3, gcc-3.3.3-r2. And librsvg-2.22.2 solves the problem too.
Comment 26 Andri Möll 2009-04-10 08:10:53 UTC
Similar segfault happens every time running net-misc/unison-2.27.57-r1.
I'm with sys-devel/gcc-4.3.2-r2.

I saw that gnome-base/gnome-light-2.24.1 now depends on >=gnome-base/librsvg-2.22.3.
Comment 27 Max Barnash 2009-04-10 13:07:32 UTC
gcc-4.3.3-r2, librsvg-2.26.0 (from gnome-overlay), mozilla-firefox-3.1b3 (from mozilla-overlay) - works ok, including editing of search engines.
maybe apps depend on some buggy behavior that has been fixed in librsvg >= 2.22.2?
Comment 28 Adrian Bassett 2009-04-11 12:51:24 UTC
(In reply to comment #27)
> gcc-4.3.3-r2, librsvg-2.26.0 (from gnome-overlay), mozilla-firefox-3.1b3 (from
> mozilla-overlay) - works ok, including editing of search engines.
> maybe apps depend on some buggy behavior that has been fixed in librsvg >=
> 2.22.2?
> 

FWIW:

This combination did not work for me (actually my librsvg 2.26.0 was a copy/rename of the portage 2.22.3 ebuild to a local overlay).

However, compiling this 2.26.0 librsvg ebuild with gcc-4.3.2  (Gentoo 4.3.2-r2 p1.4, pie-10.1.3) and leaving everything else (xulrunner, firefox) ~arch has so far been stable for me on ~x86 and ~amd64.
Comment 29 Tommaso Pasini 2009-04-11 15:02:47 UTC
(In reply to comment #27)
> gcc-4.3.3-r2, librsvg-2.26.0 (from gnome-overlay), mozilla-firefox-3.1b3 (from
> mozilla-overlay) - works ok, including editing of search engines.
> maybe apps depend on some buggy behavior that has been fixed in librsvg >=
> 2.22.2?

Here: gcc-4.3.2-r3, librsvg-2.26.0 (from gnome overlay), mozilla-firefox-3.1b3 (from mozilla overlay), still segmentation fault.
I notice the difference between my version of gcc and yours, may this be some kind of regression in gcc-4.3.2? I'll upgrade and recompile to see.
Comment 30 Adrian Bassett 2009-04-12 08:23:37 UTC
> FWIW:
> 

> This combination did not work for me (actually my librsvg 2.26.0 was a
> copy/rename of the portage 2.22.3 ebuild to a local overlay).
> 
> However, compiling this 2.26.0 librsvg ebuild with gcc-4.3.2  (Gentoo 4.3.2-r2
> p1.4, pie-10.1.3) and leaving everything else (xulrunner, firefox) ~arch has so
> far been stable for me on ~x86 and ~amd64.
> 

Scrub this - other (gnome) things started crashing.  
Comment 31 Nirbheek Chauhan (RETIRED) gentoo-dev 2009-04-12 11:04:12 UTC
Okay, I cannot reproduce this issue, so one of you will have to bisect the commit which caused the problem. Take the list of patches[1], and apply them to find the problem.

Start with the first half of the list of patches, check if problem comes, if it does, the problem is in the first half. If not, it's in the other half, and so on. This way we can find exactly which commit caused the problem.

1. http://dev.gentoo.org/~nirbheek/gnome/librsvg/
Comment 32 Tommaso Pasini 2009-04-12 19:19:22 UTC
The offending patch here is the one you named 10-librsvg-2.22.2-3.patch.

I had to edit the patches with "sed -i 's/trunk/librsvg-2.22.2/g' *" and I deleted the Changelog part inside 16-librsvg-2.22.2-3.patch, everything else worked fine.
Comment 33 Nirbheek Chauhan (RETIRED) gentoo-dev 2009-04-13 15:29:45 UTC
(In reply to comment #32)
> The offending patch here is the one you named 10-librsvg-2.22.2-3.patch.
> 
> I had to edit the patches with "sed -i 's/trunk/librsvg-2.22.2/g' *" and I
> deleted the Changelog part inside 16-librsvg-2.22.2-3.patch, everything else
> worked fine.
> 

Thanks for bisecting the issue :)

@leio: could you take a look at what could be going wrong?

Upping priority to P1
Comment 34 Chirkin Dmitry 2009-04-13 15:52:26 UTC
I can confirm this issue;

The other ugly thing is if FF3 was crashed it don't whant to start again. 
I found the solution: Change sessionstore.js in firefox profile directory 
Found word "running" and change it to "stopped" 

I'm try to run FF with GDB
This is a last lines from GDB output: 

...
(no debugging symbols found)
(no debugging symbols found)

Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread 0xb7e436d0 (LWP 14199)]
0xad9401d5 in ?? () from /usr/lib/librsvg-2.so.2
(gdb) 

Maybe this can help for fix this bug
Comment 35 Nirbheek Chauhan (RETIRED) gentoo-dev 2009-04-13 17:39:36 UTC
(In reply to comment #34)
> I'm try to run FF with GDB
> This is a last lines from GDB output: 
> 
> ...
> (no debugging symbols found)
> (no debugging symbols found)
> 
> Program received signal SIGSEGV, Segmentation fault.
> [Switching to Thread 0xb7e436d0 (LWP 14199)]
> 0xad9401d5 in ?? () from /usr/lib/librsvg-2.so.2
> (gdb) 
> 
> Maybe this can help for fix this bug
> 

Your backtrace is meaningless because all the symbols have been stripped -- please see http://www.gentoo.org/proj/en/qa/backtraces.xml

That would really help in getting a proper fix on the problem. Probably rebuilding librsvg, xulrunner, and firefox should be enough.
Comment 36 Mart Raudsepp gentoo-dev 2009-04-13 17:43:54 UTC
Probably just librsvg is enough.
Please use a certain revision in tree and state which when posting the backtrace - so that we know what source file was used to match with the line numbers gdb will give.
Also for getting the backtrace, "bt full" command instead of just "bt" might be useful to include the values of local variables in the output.
Comment 37 Chirkin Dmitry 2009-04-14 07:39:16 UTC
Ok. I'm rebuilded librsvg with USE="debug" and FEATURES="nostrip"
And this is what i get: 

...
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)

Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread 0xb7df26d0 (LWP 22246)]
0xad8c51c5 in rsvg_parse_path_do_cmd () from /usr/lib/librsvg-2.so.2

P.S: Sorry about my bad english :)
Comment 38 Nirbheek Chauhan (RETIRED) gentoo-dev 2009-04-14 09:04:43 UTC
(In reply to comment #37)
> Ok. I'm rebuilded librsvg with USE="debug" and FEATURES="nostrip"
> And this is what i get: 
> Program received signal SIGSEGV, Segmentation fault.
> [Switching to Thread 0xb7df26d0 (LWP 22246)]
> 0xad8c51c5 in rsvg_parse_path_do_cmd () from /usr/lib/librsvg-2.so.2
> 

This is which version of librsvg?

Also, could you give the output of gdb with "bt full"?
Comment 39 Chirkin Dmitry 2009-04-14 09:37:55 UTC
(In reply to comment #38)
> This is which version of librsvg?
This is gnome-base/librsvg-2.22.3
> 
> Also, could you give the output of gdb with "bt full"?
> 
Heh..I have not dealt with these things .. 
Can you give me a step-by-setp instructions or a link where i can found it? 
Comment 40 Nikolay Galkin 2009-04-14 09:48:38 UTC
Hi All. First of all I wat to say that I have to computers: notebook based on CeleronM and Desktop PC based on AMD Athlon X64 Dual Core. So I have no problems on my notebook but there is the same problem on my PC.
Comment 41 Chirkin Dmitry 2009-04-14 10:17:25 UTC
Heh! I think i was able to! :)
>bt full
#0  0xad8551c5 in rsvg_parse_path_do_cmd (ctx=0xbfb23bc8, final=0) at rsvg-path.c:144
	x2 = <value optimized out>
	y2 = <value optimized out>
	x3 = <value optimized out>
	y3 = <value optimized out>
#1  0xad8564b3 in rsvg_parse_path (path_str=0x8689958 "M 21.5625 17.4375 A 10.71875 3.625 0 1 1  0.125,17.4375 A 10.71875 3.625 0 1 1  21.5625 17.4375 z") at rsvg-path.c:525
	ctx = {bpath = 0x86852c0, cpx = 21.562499999999996, cpy = 17.4375, rpx = 21.562499999999996, rpy = 17.4375, cmd = 97 'a', param = 7, rel = 0, params = {10.718749999999998, 3.625, 0, 1, 1, 0.125, 
    17.4375}}
#2  0xad8719fa in rsvg_render_path (ctx=0x8686200, d=0x8689958 "M 21.5625 17.4375 A 10.71875 3.625 0 1 1  0.125,17.4375 A 10.71875 3.625 0 1 1  21.5625 17.4375 z") at rsvg-base.c:1670
	bpath_def = <value optimized out>
#3  0xad86665e in rsvg_node_path_draw (self=0x8689710, ctx=0x8686200, dominate=0) at rsvg-shapes.c:60
No locals.
#4  0xad869332 in rsvg_node_draw (self=0x0, ctx=0x8686200, dominate=0) at rsvg-structure.c:53
	state = (RsvgState *) 0xbfffffff
	stacksave = (GSList *) 0x0
#5  0xad8695a5 in _rsvg_node_draw_children (self=0x86872b0, ctx=0x8686200, dominate=0) at rsvg-structure.c:69
	i = 2
#6  0xad869332 in rsvg_node_draw (self=0x0, ctx=0x8686200, dominate=0) at rsvg-structure.c:53
	state = (RsvgState *) 0xbfffffff
	stacksave = (GSList *) 0x0
#7  0xad8695a5 in _rsvg_node_draw_children (self=0x86862a0, ctx=0x8686200, dominate=0) at rsvg-structure.c:69
	i = 2
#8  0xad869332 in rsvg_node_draw (self=0x0, ctx=0x8686200, dominate=0) at rsvg-structure.c:53
	state = (RsvgState *) 0xbfffffff
	stacksave = (GSList *) 0x0
#9  0xad86a2e5 in rsvg_node_svg_draw (self=0x8679430, ctx=0x8686200, dominate=0) at rsvg-structure.c:309
	state = <value optimized out>
	affine = {1, 0, 0, 1, 0, 0}
	affine_old = {1, 0, 0, 1, 0, 0}
	affine_new = {1, 0, 0, 1, 0, 0}
	i = 7
	nx = 0
	ny = 0
	nw = 48
	nh = 48
#10 0xad869332 in rsvg_node_draw (self=0x0, ctx=0x8686200, dominate=0) at rsvg-structure.c:53
	state = (RsvgState *) 0xbfffffff
	stacksave = (GSList *) 0x0
#11 0xad8780ba in rsvg_handle_render_cairo_sub (handle=0x809ee88, cr=0x8687388, id=0x0) at rsvg-cairo-render.c:230
	drawsub = (RsvgNode *) 0x0
	__PRETTY_FUNCTION__ = "rsvg_handle_render_cairo_sub"
#12 0xad878653 in rsvg_handle_get_pixbuf_sub (handle=0x809ee88, id=0x0) at rsvg.c:100
	dimensions = {width = 48, height = 48, em = 48, ex = 48}
	output = <value optimized out>
	surface = (cairo_surface_t *) 0x8677e68
	cr = (cairo_t *) 0x8687388
	rowstride = 192
	__PRETTY_FUNCTION__ = "rsvg_handle_get_pixbuf_sub"
#13 0xad878703 in rsvg_handle_get_pixbuf (handle=0x809ee88) at rsvg.c:136
No locals.
#14 0xb236dc50 in gdk_pixbuf__svg_image_stop_load (data=0x86756e8, error=0xbfb24060) at io-svg.c:154
	pixbuf = <value optimized out>
#15 0xb636a251 in gdk_pixbuf_loader_close () from /usr/lib/libgdk_pixbuf-2.0.so.0
No symbol table info available.
#16 0xb6367e48 in ?? () from /usr/lib/libgdk_pixbuf-2.0.so.0
No symbol table info available.
#17 0x085fcc20 in ?? ()
---Type <return> to continue, or q <return> to quit---
No symbol table info available.
#18 0x08663df4 in ?? ()
No symbol table info available.
#19 0x00010000 in ?? ()
No symbol table info available.
#20 0x00000000 in ?? ()
No symbol table info available.
(gdb) 

I hope this help
Comment 42 Xu Li 2009-04-16 15:01:29 UTC
Created attachment 188583 [details, diff]
the patch to librsvg v2.26.0

I also met such issue in our linux distribution.
Here is a temporal patch to librsvg2 that I created to fix this issue. You can have a try.
However, I guess it is probably a compiling issue. Still under investigation.
Comment 43 Nirbheek Chauhan (RETIRED) gentoo-dev 2009-04-18 16:08:12 UTC
(In reply to comment #42)
> I also met such issue in our linux distribution.
> Here is a temporal patch to librsvg2 that I created to fix this issue. You can
> have a try.
> However, I guess it is probably a compiling issue. Still under investigation.
> 

Thanks, the help is much appreciated, the patch has been added to our development repository[1] for now :)

1. http://git.overlays.gentoo.org/gitweb/?p=proj/gnome.git;a=commit;h=08fa282af0a5f7324a908132bf38403c37a6cf03
Comment 44 Tommaso Pasini 2009-04-18 16:51:22 UTC
The patch works.

> Thanks, the help is much appreciated, the patch has been added to our
> development repository[1] for now :)

The ebuild needs to inherit "eutils" or the epatch command won't work.
Comment 45 Nirbheek Chauhan (RETIRED) gentoo-dev 2009-04-18 16:55:06 UTC
@toolchain: This bug seems to be gcc-related more than anything else, what do you say?


(In reply to comment #44)
> The ebuild needs to inherit "eutils" or the epatch command won't work.
> 

Oops, fixed now
Comment 46 Ryan Hill (RETIRED) gentoo-dev 2009-04-19 06:42:06 UTC
(In reply to comment #45)
> @toolchain: This bug seems to be gcc-related more than anything else, what do
> you say?

Uhh, how?
Comment 47 Nirbheek Chauhan (RETIRED) gentoo-dev 2009-04-19 07:24:10 UTC
(In reply to comment #46)
> (In reply to comment #45)
> > @toolchain: This bug seems to be gcc-related more than anything else, what do
> > you say?
> 
> Uhh, how?
> 

This segfault occurs with gcc-4.3.2-r3 (see comment #22), and the patch which "fixes" the problem shouldn't make any difference at all since the before and after are pretty much equivalent.
Comment 48 Ryan Hill (RETIRED) gentoo-dev 2009-04-20 01:26:44 UTC
how do you reproduce this?  i have librsvg-2.22.3, firefox-3.0.8, and no issues.

i'll try building librsvg w/ gcc-4.3.3-r3.
Comment 49 Ryan Hill (RETIRED) gentoo-dev 2009-04-20 01:40:29 UTC
have you seen
http://svn.gnome.org/viewvc/librsvg/trunk/rsvg-path.c?r1=1199&r2=1205
Comment 50 Ryan Hill (RETIRED) gentoo-dev 2009-04-20 01:48:38 UTC
still can't reproduce after running the full svg testsuite @ http://www.w3.org/Graphics/SVG/WG/wiki/Test_Suite_Overview
Comment 51 Nirbheek Chauhan (RETIRED) gentoo-dev 2009-04-20 02:56:17 UTC
(In reply to comment #48)
> how do you reproduce this?  i have librsvg-2.22.3, firefox-3.0.8, and no
> issues.
> 
> i'll try building librsvg w/ gcc-4.3.3-r3.
> 

That's the thing, I *can't* reproduce this either, yet a lot of people are experiencing this problem. There must be a fourth factor in all this.

(In reply to comment #49)
> have you seen
> http://svn.gnome.org/viewvc/librsvg/trunk/rsvg-path.c?r1=1199&r2=1205
> 

That's *very* interesting. IIRC, bugger underflows are hardware-dependent. However, I too have a Pentium M, and emerge --info is somewhat similar to the original poster. Kernel dependant too? glibc?

==============
Portage 2.2_rc30 (default/linux/x86/2008.0/desktop, gcc-4.3.3, glibc-2.9_p20081201-r2, 2.6.29-gentoo i686)
=================================================================
System uname: Linux-2.6.29-gentoo-i686-Intel-R-_Pentium-R-_M_processor_1.86GHz-with-glibc2.0
Timestamp of tree: Sun, 19 Apr 2009 18:30:01 +0000
ccache version 2.4 [enabled]
app-shells/bash:     4.0_p17-r1
dev-java/java-config: 2.1.7
dev-lang/python:     2.5.4-r2
dev-util/ccache:     2.4-r8
dev-util/cmake:      2.6.3
sys-apps/baselayout: 2.0.0
sys-apps/openrc:     0.4.3-r2
sys-apps/sandbox:    1.9
sys-devel/autoconf:  2.13, 2.63-r1
sys-devel/automake:  1.5, 1.9.6-r2, 1.10.2
sys-devel/binutils:  2.19.1-r1
sys-devel/gcc-config: 1.4.1
sys-devel/libtool:   2.2.6a
virtual/os-headers:  2.6.28-r1
ACCEPT_KEYWORDS="x86 ~x86"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-O2 -march=pentium-m -pipe"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc"
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 /etc/udev/rules.d"
CXXFLAGS="-O2 -march=pentium-m -pipe"
DISTDIR="/mnt/btrfs/distfiles/"
FEATURES="buildpkg ccache collision-protect distlocks fixpackages metadata-transfer parallel-fetch preserve-libs protect-owned sandbox sfperms splitdebug strict test test-fail-continue unmerge-orphans userfetch userpriv usersandbox usersync"
GENTOO_MIRRORS="http://gentoo.osuosl.org/"
LANG="en_IN.utf8"
LDFLAGS="-Wl,--as-needed -Wl,--hash-style=gnu"
LINGUAS="en en_IN en_GB"
MAKEOPTS="-j2"
PKGDIR="/mnt/btrfs/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/science /usr/local/portage/layman/mozilla /usr/local/portage/layman/mozilla /usr/local/portage/layman/vmware /usr/local/portage/layman/steev /usr/local/portage /home/nirbheek/projects/SAGE/sage.git /usr/local/portage/layman/x11 /usr/local/portage/layman/gnome /usr/local/portage/layman/gnome-live /usr/local/portage/layman/clutter"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="X aac acl acpi alsa avahi bash-completion bluetooth bluez branding bzip2 cairo cdr cjk cli cracklib crypt cscope curl dbus dri dvd dvdr dvdread eds emboss encode evo exif faad ffmpeg firefox flac fortran gdbm gif gnome gnome-keyring gpm gstreamer gtk hal iconv imap ipod ipv6 isdnlog jabber jpeg jpeg2k libnotify mad matroska mbox midi mikmod mime mmx mp3 mpeg mudflap nautilus ncurses networkmanager nls nptl nptlonly offensive ogg opengl pam pcre pdf perl png policykit ppds pppd pulseaudio python qt3support quicktime readline reflection samba sdl session shorten slang spell spl sqlite sqlite3 sse sse2 ssl startup-notification svg sysfs tcpd theora tiff truetype unicode usb vcd vorbis wifi win32codecs x86 xattr 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" ELIBC="glibc" INPUT_DEVICES="keyboard mouse evdev synaptics" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="en en_IN en_GB" USERLAND="GNU" VIDEO_CARDS="radeon fglrx"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, FFLAGS, INSTALL_MASK, LC_ALL, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 52 Xu Li 2009-04-29 06:48:48 UTC
After investigation, it should be a compiling issue.
Pls. try to add "-D_FORTIFY_SOURCE=2 -fstack-protector" in CFLAGS when building librsvg2 and then try to rebuild librsvg2.
Comment 53 Xu Li 2009-04-29 06:50:10 UTC
If it works, the patch I submitted can be discarded.
Comment 54 Chirkin Dmitry 2009-04-29 13:45:22 UTC
I'm foget to add my emerge --info: 

 emerge --info
Portage 2.1.6.11 (default/linux/x86/2008.0/desktop, gcc-4.3.3, glibc-2.9_p20081201-r2, 2.6.29-gentoo-r1 i686)
=================================================================
System uname: Linux-2.6.29-gentoo-r1-i686-AMD_Athlon-tm-_64_Processor_3200+-with-gentoo-2.0.0
Timestamp of tree: Wed, 29 Apr 2009 07:00:01 +0000
ccache version 2.4 [enabled]
app-shells/bash:     4.0_p17-r1
dev-java/java-config: 2.1.7
dev-lang/python:     2.6.2
dev-util/ccache:     2.4-r8
dev-util/cmake:      2.6.3-r1
sys-apps/baselayout: 2.0.0
sys-apps/openrc:     0.4.3-r2
sys-apps/sandbox:    1.9
sys-devel/autoconf:  2.13, 2.63-r1
sys-devel/automake:  1.5, 1.7.9-r1, 1.9.6-r2, 1.10.2
sys-devel/binutils:  2.19.1-r1
sys-devel/gcc-config: 1.4.1
sys-devel/libtool:   2.2.6a
virtual/os-headers:  2.6.28-r1
ACCEPT_KEYWORDS="x86 ~x86"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-march=k8 -O2 -pipe -fomit-frame-pointer -msse -msse2 -mmmx -m3dnow -mfpmath=sse"
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/eselect/postgresql /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/php/apache2-php5/ext-active/ /etc/php/cgi-php5/ext-active/ /etc/php/cli-php5/ext-active/ /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo /etc/udev/rules.d"
CXXFLAGS="-march=k8 -O2 -pipe -fomit-frame-pointer -msse -msse2 -mmmx -m3dnow -mfpmath=sse"
DISTDIR="/usr/portage/distfiles"
FEATURES="ccache distlocks fixpackages parallel-fetch protect-owned sandbox sfperms strict unmerge-orphans userfetch"
GENTOO_MIRRORS="http://gentoo.nixsolutions.com http://distfiles.gentoo.org http://distro.ibiblio.org/pub/linux/distributions/gentoo"
LANG="ru_RU.UTF-8"
LDFLAGS="-Wl,-O1"
LINGUAS="ru ua"
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="/usr/share/store/portage"
PORTDIR="/usr/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="3dnow 3dnowext X a52 aac acl acpi alsa apache2 avahi bash-completion berkdb branding bzip2 cairo cdr chm cli consolekit cracklib crypt cups custom-optimization cxx dbus divx dri dvd dvdr dvdread eds emboss encode evo fam ffmpeg firefox firefox3 fortran fuse gdbm gif gnome gnome-keyring gpm gstreamer gtk hal iconv imagemagick ipod isdnlog jabber java java6 jpeg ldap libnotify logrotate mad midi mikmod mmx mmxext mono mp3 mp4 mpeg mudflap mysql nautilus ncurses network networkmanager nls nptl nptlonly nsplugin ogg opengl openmp pam pcntl pcre pdf perl php png postgres ppds pppd pulseaudio python qt3support quicktime readline reflection samba sdl session spell spl sqlite sse sse2 ssl startup-notification svg sysfs syslog threads tiff truetype unicode usb vorbis webkit win32codecs wma wmp x264 x86 xcb xcomposite xml xorg xscreensaver xulrunner xv zlib" ALSA_CARDS="intel8x0" 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 auth_digest authn_anon authn_dbd 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 dbd deflate dir disk_cache env expires ext_filter file_cache filter headers ident imagemap include info log_config logio mem_cache mime mime_magic negotiation proxy proxy_ajp proxy_balancer proxy_connect proxy_http rewrite setenvif so speling status unique_id userdir usertrack vhost_alias" ELIBC="glibc" INPUT_DEVICES="mouse keyboard evdev" KERNEL="linux" LINGUAS="ru ua" USERLAND="GNU" VIDEO_CARDS="nvidia nv vesa fbdev"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, FFLAGS, INSTALL_MASK, LC_ALL, MAKEOPTS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, PORTDIR_OVERLAY


@Xu Li: I will try rebuilding with your CFLAGS and replay if it help.
Comment 55 Chirkin Dmitry 2009-04-29 14:04:29 UTC
@Xu Li: I'm rebuilded with modified CFLAGS but  this not help :(
Comment 56 Chirkin Dmitry 2009-04-29 14:26:29 UTC
Heh. It's seems to be a not only librsvg+firefox bug. 

I have the similar issue with Zend Studio for Eclipse. (PHP IDE based on Eclipse)

Here the log that apears in console after creating new project in ZSfE: 

#
# An unexpected error has been detected by HotSpot Virtual Machine:
#
#  SIGSEGV (0xb) at pc=0x9d5ca255, pid=4362, tid=3085699280
#
# Java VM: Java HotSpot(TM) Client VM (1.5.0_11-b03 mixed mode, sharing)
# Problematic frame:
# C  [librsvg-2.so.2+0xc255]
#
Comment 57 hirakendu 2009-05-02 02:14:02 UTC
A new ebuild librsvg-2.22.3-r1 was pushed to portage today. However, the patch would fail to apply with a message like "epatch command not found" because the ebuild doesn't inherit eutils. So please apply the trivial fix of "inherit eutils" (or "patch -p1 <" instead of "epatch".) (Btw, me using portage 2.2-rc31.)
Comment 58 Nirbheek Chauhan (RETIRED) gentoo-dev 2009-05-02 02:20:11 UTC
(In reply to comment #57)
> A new ebuild librsvg-2.22.3-r1 was pushed to portage today. However, the patch
> would fail to apply with a message like "epatch command not found" because the
> ebuild doesn't inherit eutils. So please apply the trivial fix of "inherit
> eutils" (or "patch -p1 <" instead of "epatch".) (Btw, me using portage
> 2.2-rc31.)
> 

Oh no, not again >_<
Comment 59 hirakendu 2009-05-02 03:25:26 UTC
;). (that was quick. sabse tez, sabse aage :o.)
Comment 60 Nirbheek Chauhan (RETIRED) gentoo-dev 2009-05-14 11:21:08 UTC
Does not block 2.26 release anymore.
Comment 61 Jory A. Pratt gentoo-dev 2009-07-20 06:18:02 UTC
*librsvg-2.22.3-r1 (01 May 2009)

  01 May 2009; Nirbheek Chauhan <nirbheek@gentoo.org>
  +files/librsvg-2.22.3-fix-segfault-with-firefox.patch,
  +librsvg-2.22.3-r1.ebuild:
  Add patch to workaround gcc-related segfault in firefox -- bug 239992

Based of of Changelog for librsvg I will close this as fixed.
Comment 62 Fabio Correa 2009-10-20 01:24:04 UTC
Hello, it seems you people have been working hard in order to correct this bug. I have Firefox-3.5.3 and last saturday the stabilized librsvg-2.26.0 was emerged. Bad news, I reproduced this bug. Moreover, downgrading to librsvg-2.22.3 solved the crash.

Steps to reproduce under librsvg-2.26.0:
1. Open Gmail on Firefox.
2. Open any message and click "Reply."
3. Click to change between HTML and Plain text message.
4. Watch how Firefox crashes.

Another:
1. Open the Gmail spam folder on Firefox.
2. Click "Delete all spam messages now."
3. Bash your head against the keyboard as Firefox crashes.

The bad thing about this bug is that librsvg is stable, so more users will experience it. This is why I would like to see a higher severity level for this bug, as well as it to be reopen.

What does Gmail have to do with librsvg, anyway?
Comment 63 Jory A. Pratt gentoo-dev 2009-10-20 01:58:33 UTC
(In reply to comment #62)
> Hello, it seems you people have been working hard in order to correct this bug.
> I have Firefox-3.5.3 and last saturday the stabilized librsvg-2.26.0 was
> emerged. Bad news, I reproduced this bug. Moreover, downgrading to
> librsvg-2.22.3 solved the crash.
> 
> Steps to reproduce under librsvg-2.26.0:
> 1. Open Gmail on Firefox.
> 2. Open any message and click "Reply."
> 3. Click to change between HTML and Plain text message.
> 4. Watch how Firefox crashes.
> 
> Another:
> 1. Open the Gmail spam folder on Firefox.
> 2. Click "Delete all spam messages now."
> 3. Bash your head against the keyboard as Firefox crashes.
> 
> The bad thing about this bug is that librsvg is stable, so more users will
> experience it. This is why I would like to see a higher severity level for this
> bug, as well as it to be reopen.
> 
> What does Gmail have to do with librsvg, anyway?
> 

I am unable to reproduce this, with either testing or stable. I suggest ya move your old profile and test with a new profile.
Comment 64 Fabio Correa 2009-10-20 02:10:46 UTC
Thanks for your prompt answer. I had tested a blank profile before posting to this bug. I am aware of the reproduction problem because the previous post is 3 months old. So let us wait for a confirmation with the current package versions; I hope to be of help with solving this problem.
Comment 65 Fabio Correa 2009-10-20 13:37:51 UTC
I think I know the reason of librsvg crashing Firefox. Both procedures that I have described in comment #62 lead to a confirmation dialog; it surely displays an SVG image using the library.
Comment 66 Fabio Correa 2009-10-20 15:06:29 UTC
librsvg-2.26.0 compiles just fine when you use GCC optimization -O2 or less. I experienced the crash with -O3, and I was unable to find the cause for it. So the current ebuild will do fine with anybody not so obsessive about optimization as me.

Thanks for your time, Jory and everyone.
Comment 67 Gilles Dartiguelongue (RETIRED) gentoo-dev 2009-10-20 15:15:55 UTC
If anyone still having this problem does not have any crazy cflags please shime in with your emerge --info and if possible a backtrace of the crash. For other, you probably want to open a new bug based on this one and assign it to toolchain to check it is not related to new gcc-4.4
Comment 68 Romain Perier (RETIRED) gentoo-dev 2009-10-20 17:23:40 UTC
you can also read "Using -O3 is not recommended for gcc 4.x." here http://www.gentoo.org/doc/en/gcc-optimization.xml
Comment 69 Steffen Hau 2010-01-25 10:53:14 UTC
Hi,

I hope this is the right place for this comment. If not, perhaps someone can point to the right place (I didn't find anything else except #285287, where I've already posted).

I have this issue as well with firefox 3.6. firefox is not starting at all,
even in safe-mode the segfault occurs without showing anything.

Program received signal SIGSEGV, Segmentation fault.
0xb19d69f3 in rsvg_parse_path_do_cmd () from /usr/lib/librsvg-2.so.2
(gdb) bt full
#0  0xb19d69f3 in rsvg_parse_path_do_cmd () from /usr/lib/librsvg-2.so.2
No symbol table info available.
#1  0x00000000 in ?? ()
No symbol table info available.

Before I updated to 3.6 I had lots f crashes for example if I download a file,
which already exists. Instead of asking to overwrite it, firefox crashed.

Here is my emerge info:
Portage 2.2_rc61 (default/linux/x86/10.0, gcc-4.4.2, glibc-2.11-r1,
2.6.33-rc4-HAUIHAU i686)
=================================================================
System uname:
Linux-2.6.33-rc4-HAUIHAU-i686-Intel-R-_Core-TM-2_CPU_T7200_@_2.00GHz-with-gentoo-2.0.1
Timestamp of tree: Fri, 22 Jan 2010 11:00:01 +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, 3.1.1-r1
dev-util/ccache:     2.4-r8
dev-util/cmake:      2.8.0
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.9.6-r3, 1.10.3, 1.11.1
sys-devel/binutils:  2.20
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="*"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-march=core2 -O2 -pipe -fomit-frame-pointer -mfpmath=sse -msse3"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/X11/xkb /usr/share/config /var/lib/hsqldb"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/
/etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release
/etc/php/apache2-php5/ext-active/ /etc/php/cgi-php5/ext-active/
/etc/php/cli-php5/ext-active/ /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"
CXXFLAGS="-march=core2 -O2 -pipe -fomit-frame-pointer -mfpmath=sse -msse3"
DISTDIR="/usr/portage/distfiles"
FEATURES="assume-digests ccache distlocks fakeroot fixpackages
metadata-transfer news parallel-fetch preserve-libs protect-owned sandbox
sfperms strict unmerge-logs unmerge-orphans userfetch userpriv usersandbox"
GENTOO_MIRRORS="ftp://sunsite.informatik.rwth-aachen.de/pub/Linux/gentoo/ "
LANG="de_DE.utf8"
LC_ALL="de_DE.utf8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed -Wl,-znow -Wl,--sort-common -s"
LINGUAS="de"
MAKEOPTS="-j4"
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="/var/lib/layman/gnome /var/lib/layman/x11
/var/lib/layman/hauihau"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="X aac aalib acl acpi alsa apache2 bash-completion berkdb bidi bluetooth
branding bzip2 cairo cdb cdda cddb cdparanoia cdr cli cracklib crypt ctype cups
curl cxx dbus dedicated dga directfb doc dri dts dv dvd dvdr dvdread encode
examples exif ffmpeg firefox flac fontconfig foomaticdb fortran ftp gdbm gif
glitz glut gmp gnome gnome-keyring gnutls gphoto2 gstreamer gtk gtk2 hal
htmlhandbook iconv ieee1394 imagemagick imap imlib innodb ipod ipv6 java java5
java6 javascript jpeg jpeg2k kde lame lcms ldap libcaca libnotify libsamplerate
lua mad mikmod mmap mmx mng modules mono mp3 mpeg mplayer mudflap musepack
musicbrainz mysql ncurses nls noseamonkey nptl nptlonly nsplugin offensive ogg
openal opengl openmp oscar pam pcmcia pcre pdf perl php plasma png policykit
posix ppds pppd python qt4 quicktime readline reflection rss rtc ruby samba
sasl sdl session sndfile snmp sockets spell spl sqlite sse sse2 ssl
startup-notification subversion svg sysfs tcl tcpd theora threads tiff tk
truetype unicode usb userlocales v4l2 vcd vim-syntax visualization vorbis
win32codecs x264 x86 xattr xcb xcomposite xine xinerama xml xorg xosd xpm
xscreensaver xulrunner xv xvid yahoo zlib" ALSA_CARDS="hda-intel"
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
auth_digest authn_anon authn_dbd 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 dbd deflate dir disk_cache env expires ext_filter
file_cache filter headers ident imagemap include info log_config logio
mem_cache mime mime_magic negotiation proxy proxy_ajp proxy_balancer
proxy_connect proxy_ftp proxy_http rewrite setenvif so speling status
substitute unique_id userdir usertrack version vhost_alias"
APACHE2_MPMS="worker" CAMERAS="canon casio_qv fuji kodak konica minolta mustek
panasonic samsung sonydscf1 sonydscf55 toshiba" ELIBC="glibc"
INPUT_DEVICES="evdev keyboard mouse synaptics" KERNEL="linux"
LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses
text" LINGUAS="de" RUBY_TARGETS="ruby18" USERLAND="GNU" VIDEO_CARDS="radeon
radeonhd" 
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, FFLAGS, INSTALL_MASK,
PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 70 bobr vonabarak 2010-06-09 20:11:10 UTC
The same bug with librsvg-2.26.2 and firefox-3.6.3. Can't to start firefox in usual way or in safe-mode. Running it in gdb gives 
Program received SIGSEGV, Sementation fault.
0xb246c9a0 in ?? () from /usr/lib/librsvg-2.so.2


Portage 2.1.8.3 (default/linux/x86/10.0/desktop/gnome, gcc-4.4.3, glibc-2.10.1-r1, 2.6.34-gentoo i686)
=================================================================
System uname: Linux-2.6.34-gentoo-i686-Intel-R-_Atom-TM-_CPU_N270_@_1.60GHz-with-gentoo-2.0.1
Timestamp of tree: Tue, 08 Jun 2010 20:30:20 +0000
distcc 3.1 i686-pc-linux-gnu [disabled]
ccache version 2.4 [disabled]
app-shells/bash:     4.0_p37
dev-java/java-config: 2.1.10
dev-lang/python:     2.6.4-r1, 3.1.2-r3
dev-util/ccache:     2.4-r7
dev-util/cmake:      2.6.4-r3
sys-apps/baselayout: 2.0.1
sys-apps/openrc:     0.6.1-r1
sys-apps/sandbox:    1.6-r2
sys-devel/autoconf:  2.13, 2.65
sys-devel/automake:  1.9.6-r3, 1.10.3, 1.11.1
sys-devel/binutils:  2.20.1-r1
sys-devel/gcc:       4.4.3-r2
sys-devel/gcc-config: 1.4.1
sys-devel/libtool:   2.2.6b
virtual/os-headers:  2.6.30-r1
ACCEPT_KEYWORDS="x86"
ACCEPT_LICENSE="* -@EULA"
ACCEPT_PROPERTIES="*"
ALSA_CARDS="hda-intel"
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"
ARCH="x86"
AUTOCLEAN="yes"
CBUILD="i686-pc-linux-gnu"
CCACHE_DIR="/var/tmp/ccache"
CCACHE_SIZE="7G"
CFLAGS="-march=core2 -mtune=generic -O2 -mmmx -msse -msse2 -mssse3 -mfpmath=sse -fomit-frame-pointer"
CHOST="i686-pc-linux-gnu"
CLEAN_DELAY="5"
COLLISION_IGNORE="/lib/modules"
COLORTERM="gnome-terminal"
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/eselect/postgresql /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/sandbox.d /etc/splash /etc/terminfo"
CVS_RSH="ssh"
CXXFLAGS="-march=core2 -mtune=generic -O2 -mmmx -msse -msse2 -mssse3 -mfpmath=sse -fomit-frame-pointer"
DCCC_PATH="/usr/lib/distcc/bin"
DISPLAY=":0.0"
DISTCC_HOSTS="10.0.0.254"
DISTCC_LOG=""
DISTCC_VERBOSE=""
DISTDIR="/usr/portage/distfiles"
EDITOR="/usr/bin/vim"
ELIBC="glibc"
EMERGE_DEFAULT_OPTS="-v --keep-going"
EMERGE_WARNING_DELAY="10"
EPREFIX=""
EROOT="/"
FEATURES="assume-digests distlocks fixpackages news parallel-fetch protect-owned sandbox sfperms strict unmerge-logs unmerge-orphans userfetch"
FETCHCOMMAND="/usr/bin/wget -t 5 -T 60 --passive-ftp -O "${DISTDIR}/${FILE}" "${URI}""
GCC_SPECS=""
GDK_USE_XFT="1"
GENTOO_MIRRORS="http://distfiles.gentoo.org"
GENTOO_PYTHON_PROCESS_NAME="emerge"
GUILE_LOAD_PATH="/usr/share/guile/1.8"
HOME="/root"
INFOPATH="/usr/share/info:/usr/share/binutils-data/i686-pc-linux-gnu/2.20.1/info:/usr/share/gcc-data/i686-pc-linux-gnu/4.4.3/info"
INPUT_DEVICES="synaptics mouse keyboard evdev"
JAVAC="/etc/java-config-2/current-system-vm/bin/javac"
JAVA_HOME="/etc/java-config-2/current-system-vm"
JDK_HOME="/etc/java-config-2/current-system-vm"
KERNEL="linux"
LANG="en_GB.UTF-8"
LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text"
LDFLAGS="-Wl,-O1"
LESS="-R -M --shift 5"
LESSOPEN="|lesspipe.sh %s"
LIBRARY_PATH="/opt/intel/Compiler/11.1/072/lib/ia32"
LINGUAS="en ru"
LOGNAME="root"
LS_COLORS="rs=0:di=01;34:ln=01;36:mh=00:pi=40;33:so=01;35:do=01;35:bd=40;33;01:cd=40;33;01:or=01;05;37;41:mi=01;05;37;41:su=37;41:sg=30;43:ca=30;41:tw=30;42:ow=34;42:st=37;44:ex=01;32:*.tar=01;31:*.tgz=01;31:*.arj=01;31:*.taz=01;31:*.lzh=01;31:*.lzma=01;31:*.tlz=01;31:*.txz=01;31:*.zip=01;31:*.z=01;31:*.Z=01;31:*.dz=01;31:*.gz=01;31:*.lz=01;31:*.xz=01;31:*.bz2=01;31:*.bz=01;31:*.tbz=01;31:*.tbz2=01;31:*.tz=01;31:*.deb=01;31:*.rpm=01;31:*.jar=01;31:*.rar=01;31:*.ace=01;31:*.zoo=01;31:*.cpio=01;31:*.7z=01;31:*.rz=01;31:*.jpg=01;35:*.jpeg=01;35:*.gif=01;35:*.bmp=01;35:*.pbm=01;35:*.pgm=01;35:*.ppm=01;35:*.tga=01;35:*.xbm=01;35:*.xpm=01;35:*.tif=01;35:*.tiff=01;35:*.png=01;35:*.svg=01;35:*.svgz=01;35:*.mng=01;35:*.pcx=01;35:*.mov=01;35:*.mpg=01;35:*.mpeg=01;35:*.m2v=01;35:*.mkv=01;35:*.ogm=01;35:*.mp4=01;35:*.m4v=01;35:*.mp4v=01;35:*.vob=01;35:*.qt=01;35:*.nuv=01;35:*.wmv=01;35:*.asf=01;35:*.rm=01;35:*.rmvb=01;35:*.flc=01;35:*.avi=01;35:*.fli=01;35:*.flv=01;35:*.gl=01;35:*.dl=01;35:*.xcf=01;35:*.xwd=01;35:*.yuv=01;35:*.cgm=01;35:*.emf=01;35:*.axv=01;35:*.anx=01;35:*.ogv=01;35:*.ogx=01;35:*.pdf=00;32:*.ps=00;32:*.txt=00;32:*.patch=00;32:*.diff=00;32:*.log=00;32:*.tex=00;32:*.doc=00;32:*.aac=00;36:*.au=00;36:*.flac=00;36:*.mid=00;36:*.midi=00;36:*.mka=00;36:*.mp3=00;36:*.mpc=00;36:*.ogg=00;36:*.ra=00;36:*.wav=00;36:*.axa=00;36:*.oga=00;36:*.spx=00;36:*.xspf=00;36:"
MAKEOPTS="-j2"
MANPATH="/etc/java-config-2/current-system-vm/man:/usr/local/share/man:/usr/share/man:/usr/share/binutils-data/i686-pc-linux-gnu/2.20.1/man:/usr/share/gcc-data/i686-pc-linux-gnu/4.4.3/man:/opt/intel/Compiler/11.1/072/man/en_US:/etc/java-config/system-vm/man/:/usr/share/postgresql-8.4/man:/usr/lib/erlang/man:/opt/opera/share/man"
NETBEANS="apisupport cnd groovy gsf harness ide identity j2ee java mobility nb php profiler soa visualweb webcommon websvccommon xml"
NLSPATH="/opt/intel/Compiler/11.1/072/lib/locale/en_US/%N"
NOCOLOR="true"
OPENGL_PROFILE="xorg-x11"
ORBIT_SOCKETDIR="/tmp/orbit-root"
PAGER="/usr/bin/less"
PATH="/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/opt/bin:/usr/i686-pc-linux-gnu/gcc-bin/4.4.3:/opt/intel/Compiler/11.1/072/bin/ia32:/opt/stuffit/bin"
PKGDIR="/usr/portage/packages"
PORTAGE_ARCHLIST="ppc x86-openbsd ppc-openbsd ppc64 x86-winnt x86-fbsd ppc-aix alpha arm x86-freebsd s390 amd64 arm-linux x86-macos x64-openbsd ia64-hpux hppa x86-netbsd amd64-linux ia64-linux x86 sparc-solaris x64-freebsd sparc64-solaris x86-linux x64-macos sparc m68k-mint ia64 mips ppc-macos x86-interix hppa-hpux amd64-fbsd x64-solaris mips-irix m68k sh x86-solaris sparc-fbsd"
PORTAGE_BINHOST_CHUNKSIZE="3000"
PORTAGE_BIN_PATH="/usr/lib/portage/bin"
PORTAGE_COMPRESS_EXCLUDE_SUFFIXES="css gif htm[l]? jp[e]?g js pdf png"
PORTAGE_CONFIGROOT="/"
PORTAGE_DEBUG="0"
PORTAGE_DEPCACHEDIR="/var/cache/edb/dep"
PORTAGE_ELOG_CLASSES="log warn error"
PORTAGE_ELOG_MAILFROM="portage@localhost"
PORTAGE_ELOG_MAILSUBJECT="[portage] ebuild log for ${PACKAGE} on ${HOST}"
PORTAGE_ELOG_MAILURI="root"
PORTAGE_ELOG_SYSTEM="save_summary echo"
PORTAGE_FETCH_CHECKSUM_TRY_MIRRORS="5"
PORTAGE_FETCH_RESUME_MIN_SIZE="350K"
PORTAGE_GID="250"
PORTAGE_INST_GID="0"
PORTAGE_INST_UID="0"
PORTAGE_NICENESS="3"
PORTAGE_PYM_PATH="/usr/lib/portage/pym"
PORTAGE_RSYNC_EXTRA_OPTS="-4z"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_RSYNC_RETRIES="3"
PORTAGE_SYNC_STALE="30"
PORTAGE_TMPDIR="/tmp"
PORTAGE_VERBOSE="1"
PORTAGE_WORKDIR_MODE="0700"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
PORT_LOGDIR="/var/log/portage"
PRELINK_PATH_MASK="/usr/lib/klibc"
PROFILE_ONLY_VARIABLES="ARCH ELIBC KERNEL USERLAND"
PWD="/home/bobr"
PYTHONDOCS="/usr/share/doc/python-docs-2.6.4/html/library"
PYTHONDOCS_2_6="/usr/share/doc/python-docs-2.6.4/html/library"
PYTHONDOCS_3_1="/usr/share/doc/python-docs-3.1.2/html/library"
PYTHONDONTWRITEBYTECODE="1"
RESUMECOMMAND="/usr/bin/wget -c -t 5 -T 60 --passive-ftp -O "${DISTDIR}/${FILE}" "${URI}""
ROOT="/"
ROOTPATH="/opt/bin:/usr/i686-pc-linux-gnu/gcc-bin/4.4.3:/opt/intel/Compiler/11.1/072/bin/ia32:/opt/stuffit/bin"
RPMDIR="/usr/portage/rpms"
RUBYOPT="-rauto_gem"
RUBY_TARGETS="ruby18"
SHELL="/bin/bash"
SHLVL="1"
SUDO_COMMAND="/usr/bin/gnome-terminal"
SUDO_GID="1000"
SUDO_UID="1000"
SUDO_USER="bobr"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
TERM="xterm"
USE="7zip X a52 aac aalib ace acl acpi ada alsa amr applet aspell bash-completion berkdb bluetooth branding bzip2 cairo chm cleartype cli compress consolekit cpio cracklib crypt cxx dbus djvu dri dts dv dvd eds emboss encode evo exif faac faad fam fbcon ffmpeg firefox flac fortran fuse gconf gdbm gdu gif gnome gnome-keyring gnutls gpac gpm gstreamer gtk guile hal iconv icq ipv6 jabber java jbig jpeg jpeg2k lame laptop lcms libcaca libnotify lm_sensors lzma lzo mad mikmod mmx mmxext mng modules mp3 mp4 mpeg mudflap musicbrainz nautilus ncurses nfs nls nptl nptlonly nsplugin ogg openexr opengl openmp pam pango pcre pdf perl pidgin png policykit postgres ppds pppd python qt3support quicktime rar readline reflection rpm ruby samba scsi sdl session slang smp spell spl sqlite sse sse2 sse3 sse4 ssl ssse3 startup-notification svg sysfs syslog taglib tcpd theora thumbnail tiff truetype unicode usb v4l v4l2 vim-syntax vorbis wavpack wicd wifi win32codecs x264 x86 xattr xcb xinetd xml xmp xorg xpm xulrunner xv xvid xvmc zip zlib" ALSA_CARDS="hda-intel" 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="synaptics mouse keyboard evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="en ru" RUBY_TARGETS="ruby18" USERLAND="GNU" VIDEO_CARDS="vesa fbdev intel v4l" 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" 
USER="root"
USERLAND="GNU"
USERNAME="root"
USE_EXPAND="ALSA_CARDS ALSA_PCM_PLUGINS APACHE2_MODULES APACHE2_MPMS CAMERAS CROSSCOMPILE_OPTS DVB_CARDS ELIBC FCDSL_CARDS FOO2ZJS_DEVICES FRITZCAPI_CARDS INPUT_DEVICES KERNEL LCD_DEVICES LINGUAS LIRC_DEVICES MISDN_CARDS NETBEANS_MODULES NGINX_MODULES_HTTP NGINX_MODULES_MAIL QEMU_SOFTMMU_TARGETS QEMU_USER_TARGETS RUBY_TARGETS SANE_BACKENDS USERLAND VIDEO_CARDS XTABLES_ADDONS"
USE_EXPAND_HIDDEN="CROSSCOMPILE_OPTS ELIBC KERNEL USERLAND"
USE_ORDER="env:pkg:conf:defaults:pkginternal:env.d"
VIDEO_CARDS="vesa fbdev intel v4l"
WINDOWID="50331653"
XAUTHORITY="/home/bobr/.Xauthority"
XDG_CONFIG_DIRS="/etc/xdg"
XDG_DATA_DIRS="/usr/local/share:/usr/share:/usr/share/gdm"
XERCESC_NLS_HOME="/usr/share/xerces-c/msg"
XSESSION="fluxbox"
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"
XZ_OPT="--memory=max"
_="/usr/bin/emerge"
bash4="4.0.37(2)-release"
Comment 71 Joshua Arnott 2010-06-21 15:27:02 UTC
This appears to affect both Firefox (3.6.3) and Epiphany (2.26.3). Firefox crashes (segfault, as detailed previously) on startup, while Epiphany crashes when I submit a form containing a masked password field. As Fabio mentions in #62 this seems to be related to dialog windows.

My normal CFLAGS, for which my entire system is compiled:
CFLAGS="-O2 -march=core2 -mtune=generic -mssse3 -mfpmath=sse -fomit-frame-pointer -pipe"
CXXFLAGS="${CFLAGS}"

I tried recompiling librsvg-2.26.2 with something more conservative, and firefox/epiphany works!
CFLAGS="-O2 -march=core2 -mtune=generic -pipe"

A little more detective work (trial and error) show that the problem flag is -mfpmath=sse. Looking up at other's `emerge --info`, those experiencing the crash have this flag in their CFLAGS, while Nirbheek (#51) does not and cannot reproduce the error.

The dialog windows triggering this were the "make firefox your default browser..." and "would you like epiphany to remember this password...".

Now to figure out why -mfpmath=sse is casuing librsvg to segfault...
Comment 72 Joshua Arnott 2010-06-21 15:38:57 UTC
Forgot to attach emerge --info

Portage 2.1.8.3 (default/linux/x86/10.0/desktop/gnome, gcc-4.4.3, glibc-2.10.1-r1, 2.6.32-gentoo-r7 i686)
=================================================================
System uname: Linux-2.6.32-gentoo-r7-i686-Intel-R-_Atom-TM-_CPU_N280_@_1.66GHz-with-gentoo-1.12.13
Timestamp of tree: Sun, 20 Jun 2010 13:55:01 +0000
distcc 3.1 i686-pc-linux-gnu [enabled]
app-shells/bash:     4.0_p37
dev-lang/python:     2.6.4-r1, 3.1.2-r3
dev-util/cmake:      2.6.4-r3
sys-apps/baselayout: 1.12.13
sys-apps/sandbox:    1.6-r2
sys-devel/autoconf:  2.13, 2.65
sys-devel/automake:  1.9.6-r3, 1.10.3, 1.11.1
sys-devel/binutils:  2.20.1-r1
sys-devel/gcc:       4.4.3-r2
sys-devel/gcc-config: 1.4.1
sys-devel/libtool:   2.2.6b
virtual/os-headers:  2.6.30-r1
ACCEPT_KEYWORDS="x86"
ACCEPT_LICENSE="* -@EULA"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-O2 -march=core2 -mtune=generic -mssse3 -mfpmath=sse -fomit-frame-pointer -pipe"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/X11/xkb"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo"
CXXFLAGS="-O2 -march=core2 -mtune=generic -mssse3 -mfpmath=sse -fomit-frame-pointer -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="assume-digests distcc distlocks fixpackages news parallel-fetch protect-owned sandbox sfperms strict unmerge-logs unmerge-orphans userfetch"
GENTOO_MIRRORS="http://distfiles.gentoo.org"
LANG="en_GB.UTF-8"
LDFLAGS="-Wl,-O1"
LINGUAS="en en_GB uk"
MAKEOPTS="-j4"
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"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="X a52 aac acl acpi alsa avahi berkdb bluetooth branding bzip2 cairo cdr cli connection-sharing consolekit cracklib crypt cups cxx dbus dhcpcd doc dri dts dvd dvdr eds emboss encode evo exif fam firefox flac fortran gdbm gdu gif gnome gnome-keyring gnutls gpm gstreamer gtk hal iconv ipv6 jpeg lcms ldap libnotify libv4l mad mikmod mng modules mp3 mp4 mpeg mudflap nautilus ncurses networkmanager} nls nptl nptlonly nss ogg opengl openmp pam pango pcre pdf perl png policykit ppds pppd python readline reflection resolvconf sdl session spell spl sqlite ssl startup-notification svg sysfs tcpd tiff truetype unicode usb v4l v4l2} vorbis x264 x86 xcb xml xorg xulrunner xv xvid zlib {{-kde" 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" ELIBC="glibc" INPUT_DEVICES="evdev synaptics" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="en en_GB uk" RUBY_TARGETS="ruby18" USERLAND="GNU" VIDEO_CARDS="intel" 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, FFLAGS, INSTALL_MASK, LC_ALL, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, PORTDIR_OVERLAY
Comment 73 Pacho Ramos gentoo-dev 2010-06-21 15:40:22 UTC
Well, some years ago I dropped "-mfpmath=sse" from all my systems as some dev suggested me to not use that flag as it was problematic... but I don't remember who told me so :-(
Comment 74 Joshua Arnott 2010-06-21 15:51:13 UTC
I'm running on an Eee Pc 1005HA, which has an Intel Atom N280 CPU.

http://en.gentoo-wiki.com/wiki/Safe_Cflags/Intel#Atom_N270.2FN280

The gentoo wiki specifically instructs to use "sse" for the math floating point unit.

(In reply to comment #73)
> Well, some years ago I dropped "-mfpmath=sse" from all my systems as some dev
> suggested me to not use that flag as it was problematic... but I don't remember
> who told me so :-(
> 
Comment 75 dmamfmgm 2010-07-14 05:14:17 UTC
Created attachment 238675 [details, diff]
librsvg strip flags that will cause crashes

I'm having the same problem: because firefox opens the "make firefox your default browser..." dialog on startup, it crashes. emerge -pv mozilla-firefox librsvg:

www-client/mozilla-firefox-3.6.4  USE="alsa dbus gnome ipc"
gnome-base/librsvg-2.26.3  USE="zlib"


Steps to reproduce:
1. warning: this will trash your firefox preferences: rm -rf ~/.mozilla
2. firefox

My CFLAGS, CXXFLAGS: -pipe -O3 -march=nocona -mtune=nocona
gcc-config -c: i686-pc-linux-gnu-4.4.3

From reading others' comments, -O3 and -mfpmath=sse will both break librsvg, so here is a patch to the librsvg ebuild that:
1. fixes the crash on my machine
2. uses flag-o-matic to remove bad CFLAGS
Comment 76 dmamfmgm 2010-07-14 05:16:50 UTC
Please note that the librsvg-2.26.0-parse-path-crash.patch is in librsvg-2.26.3.ebuild

And it still crashes.

Can this be reopened?
Comment 77 Pacho Ramos gentoo-dev 2010-07-14 10:45:37 UTC
-O3 is not recommended at all with gcc-4:
http://www.gentoo.org/doc/en/gcc-optimization.xml#doc_chap2
Comment 78 Ryan Hill (RETIRED) gentoo-dev 2010-07-15 00:30:13 UTC
Don't use -O3 with GCC 4.4 on x86.  The issues aren't limited to librsvg.
Comment 79 Gilles Dartiguelongue (RETIRED) gentoo-dev 2010-07-19 10:14:23 UTC
*** Bug 326839 has been marked as a duplicate of this bug. ***
Comment 80 Gilles Dartiguelongue (RETIRED) gentoo-dev 2010-07-19 10:19:05 UTC
The gentoo wiki is not an official gentoo ressource and this page was obviously written by somebody that has no insight on what the compiler does when optimizing to use sse instructions. It has been a while since gcc did bad stuff when using sse, especially with sse2 and later instruction sets. In any case, -O3 and -mfpmath=sse are not supported by either gnome herd or gnome upstream. If you really want this fixed, I suggest filling forwarding this issue to the toolchain team or to gcc upstream.
Comment 81 Ryan Hill (RETIRED) gentoo-dev 2010-07-20 01:04:00 UTC
No need, just read bug #270120.

I cleaned the garbage info out of the wiki last week.  At least the Intel page, I didn't touch the AMD one.