Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 114480 - mozilla-firefox-bin-1.5 segfaults with SCIM and GCC-3.4
Summary: mozilla-firefox-bin-1.5 segfaults with SCIM and GCC-3.4
Status: RESOLVED FIXED
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: 153880
Blocks:
  Show dependency tree
 
Reported: 2005-12-04 15:18 UTC by email_deleted_GqKU
Modified: 2006-12-18 19:13 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 email_deleted_GqKU 2005-12-04 15:18:32 UTC
When launching Firefox (www-client/mozilla-firefox-bin-1.5), with SCIM, it
segfaults:

$ firefox
No running windows found
/usr/libexec/mozilla-launcher: line 119:
    14294 Segmentation fault "$mozbin" "$@"


Using: app-i18n/scim-1.4.2  (USE flags: +gtk -immqt -immqt-bc)

If I unset the GTK_IM_MODULE variable (which tells GTK or programs -I don't
know-, to use SCIM), firefox works fine.

This bug might be related to http://bugs.gentoo.org/show_bug.cgi?id=84185 and
that's why I guess it is related to GCC-3.4, but I have no problem with gedit,
anjuta or grip.

If I emerge mozilla-firefox-1.5 (not the binary version), everything works fine.

Then, there is this bug: http://bugs.gentoo.org/show_bug.cgi?id=99782 I reported
some months ago, and which, in facts I shouldn't have closed, as after having
fully migrated to gcc-3.4 (following the
http://gentoo-wiki.com/HOWTO_Migrate_to_GCC_3.4 guide, re-emerging -e system &&
world, emerging libstdc++-v3, revdep-rebuild, etc.), the problem reappeared.

However, I guess the issue with mozilla-firefox-bin-1.5, even being related to
SCIM and GCC-3.4, might be a little different (as I compiled KDE 3.5 with
GCC-3.4, and my whole system && world before that...), so I will open another
bug report, later (or re-open my old one).


Reproducible: Always
Steps to Reproduce:
1. # USE="gtk" emerge =app-i18n/scim-1.4.2
2. # emerge =www-client/mozilla-firefox-bin-1.5
3. Add "export XMODIFIERS=@im=SCIM && export GTK_IM_MODULE=scim" to your
~/.xinitrc (well, anywhere so they are set when under X)
4. $ startx
5. $ firefox

Actual Results:  
Firefox segaults.


Here is my `emerge info`:
###############################################################

# emerge info
Portage 2.0.51.22-r3 (default-linux/x86/2005.1, gcc-3.4.4, glibc-2.3.5-r2,
2.6.14-gentoo-r2 i686)
=================================================================
System uname: 2.6.14-gentoo-r2 i686 Intel(R) Pentium(R) 4 CPU 3.00GHz
Gentoo Base System version 1.6.13
ccache version 2.3 [disabled]
dev-lang/python:     2.3.5-r2, 2.4.2
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-r1
sys-devel/binutils:  2.16.1
sys-devel/libtool:   1.5.20
virtual/os-headers:  2.6.11-r2
ACCEPT_KEYWORDS="x86"
AUTOCLEAN="yes"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-march=pentium4 -O2 -pipe"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3.5/env
/usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/kde/3/share/config
/usr/lib/X11/xkb /usr/share/config /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d"
CXXFLAGS="-march=pentium4 -O2 -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoconfig distlocks sandbox sfperms strict"
GENTOO_MIRRORS="ftp://ftp.proxad.net/mirrors/ftp.gentoo.org/
http://gentoo.mirror.sdv.fr
http://mirrors.sec.informatik.tu-darmstadt.de/gentoo/
http://ftp.easynet.nl/mirror/gentoo/"
LANG="en_US.utf8"
LC_ALL="en_US.utf8"
MAKEOPTS="-j3"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="x86 X a52 aac acpi alsa apache2 apm audiofile avi berkdb bitmap-fonts bzip2
bzlib cdr cjk clibpdf crypt ctype cups curl dba dbx dga directfb dvd dvdr eds
emboss exif expat fam fbcon ffmpeg flac flash foomaticdb freewnn ftp gd gdbm gif
glut gmp gnutls gpm gstreamer gtk gtk2 iconv idn imagemagick imlib innodb ipv6
java jikes jpeg kde kdeenablefinal kerberos krb4 lcms ldap libg++ libwww
m17n-lib mad maildir matroska memlimit mhash mikmod mime ming mmx mng motif mp3
mpeg mysql ncurses nls nptl odbc ogg oggvorbis opengl oss pam pcre pdflib perl
php pic png posix ppds python qt quicktime readline recode sasl scanner sdl
session simplexml sndfile soap sockets socks5 speex spell spl sse ssl svg svga
symlink tcltk tcpd tidy tiff tokenizer truetype truetype-fonts type1-fonts udev
unicode usb vcd vhosts vorbis win32codecs wmf xine xml2 xmms xpm xprint xsl xv
xvid zlib video_cards_radeon userland_GNU kernel_linux elibc_glibc"
Unset:  ASFLAGS, CTARGET, LDFLAGS, LINGUAS

###############################################################
Comment 2 email_deleted_GqKU 2005-12-10 12:12:23 UTC
(In reply to comment #1)
> please check our faq before reporting bugs
> 
>
http://www.scim-im.org/wiki/faq/gtk_gnome/why_firefox_mozilla_acrobat_reader_7_other_gtk_2_based_apps_can_not_be_installed_started

Thanx for the link, I should have searched there.

However, this is still a problem which should be reported to the Gentoo
Bugzilla, in order to find a way to automatize the workarounds and solutions
proposed in the FAQ, or at least warn the user, when using precompiled packages,
compiled with a different version than the one used to compile SCIM.

There are multiple possible ways:

1) Put an ewarn in the app-i18n/scim ebuild, which would say (maybe only if SCIM
was compiled with >=gcc-3.4) "If you use C++ precompiled packages (e.g.
www-clients/mozilla-firefox-bin, app-text/acroread), and compiled SCIM with GCC
version 3.4 or above, you may not be able to start those applications. If so,
please see: https://bugs.gentoo.org/show_bug.cgi?id=114480#c1". For apps which
have non-precompiled packages, we should suggest the user to use them. (By the
way, I have no problem with Acrobat Reader 7).

2) Put an ewarn in every precompiled packages which could be be subject to
problems with SCIM, and tell the user to set "GTK_IM_MODULE" to "xim", when
launching those apps, if they have problems.

3) Install a little wrapper (or use existing ones -firefox and acroread already
use one) with every precompiled packages which could be subject to problems with
SCIM, which would automatically set the "GTK_IM_MODULE" environment variable to
"xim", before launching those applications. In this case, we should also put an
ewarn in those apps ebuilds, to tell the user about the problem.

4) For free softwares, like mozilla-firefox-bin, we could ask Mozilla to make
available a Firefox precompiled package, compiled with GCC 3.4... or maybe make
available a version compiled by the Gentoo devs, with GCC-3.4 (and above
versions?)? For other softwares, me could also ask for multiple precompiled
packages... Then, we would put an ewarn in the SCIM and/or the problematic apps
ebuilds, so the user emerge the correct one, if using SCIM, compiled with GCC
>=3.4...

5) Propose a SCIM recompiled package, which would be compiled with gcc-3.3...
(or ask the user to compile it himself, using gcc-3.3, and not >=gcc-3.4)

6) Maybe find a way to retablish binary compatibility...?


Anyway, we can't let the user alone, deducing that the problem comes from SCIM,
and making his way to the SCIM website.
Comment 3 email_deleted_GqKU 2005-12-17 12:53:16 UTC
That's how it was done for >=app-text/acroread-7: http://bugs.gentoo.org/show_bug.cgi?id=89766#c6
Comment 4 Alastair Tse (RETIRED) gentoo-dev 2006-02-16 10:31:09 UTC
mozilla folks, is it possible to add something equivalent to the following in firefox-bin/mozilla-bin?

if [ -n "${0#*-bin}" ]; then export GTK_IM_MODULE=xim; done

this is from http://www.scim-im.org/wiki/faq/gtk_gnome/why_firefox_mozilla_acrobat_reader_7_other_gtk_2_based_apps_can_not_be_installed_started

which seems to also exist in some form with app-text/acroread.

Comment 5 Alastair Tse (RETIRED) gentoo-dev 2006-02-16 10:31:35 UTC
mozilla folks, is it possible to add something equivalent to the following in firefox-bin/mozilla-bin?

if [ -n "${0#*-bin}" ]; then export GTK_IM_MODULE=xim; done

this is from http://www.scim-im.org/wiki/faq/gtk_gnome/why_firefox_mozilla_acrobat_reader_7_other_gtk_2_based_apps_can_not_be_installed_started

which seems to also exist in some form with app-text/acroread.
Comment 6 Shunichi Fuji 2006-11-02 17:53:23 UTC
http://bugs.gentoo.org/show_bug.cgi?id=153880
try this anyone.
Comment 7 Jakub Moc (RETIRED) gentoo-dev 2006-11-11 13:19:12 UTC
Some try w/ the new scim ebuild?
Comment 8 email_deleted_GqKU 2006-11-11 22:50:04 UTC
(In reply to comment #7)
> Some try w/ the new scim ebuild?
> 


It seems to work without problem (no segfault, no error in console, SCIM can be activated, and Japanese text can be entered, in Firefox binary version... -and everything still works in the source version), with:


app-i18n/scim-1.4.5-r1 USE="-doc gtk kde qt3"
app-i18n/scim-anthy-1.2.1 USE="nls"
app-i18n/anthy-8300 USE="-emacs ucs4"
app-i18n/skim-1.4.5
app-i18n/scim-qtimm-0.9.4 USE="-debug"
x11-libs/qt-3.3.6-r4 USE="cups -debug -doc -examples -firebird gif immqt -immqt-bc ipv6 mysql -nas -nis -odbc opengl -postgres -sqlite -xinerama"

... and either with:

www-client/mozilla-firefox-bin-2.0

... or:

www-client/mozilla-firefox-bin-1.5.0.8


Other informations:


~/.xprofile (loaded by .xinitrc):
################################################################

export XMODIFIERS="@im=SCIM"
export GTK_IM_MODULE="scim"
export QT_IM_MODULE="scim"

################################################################


`emerge --info`:
################################################################


Portage 2.1.1-r1 (default-linux/x86/2006.1, gcc-4.1.1, glibc-2.4-r3, 2.6.17-gentoo-r8 i686)
=================================================================
System uname: 2.6.17-gentoo-r8 i686 Intel(R) Pentium(R) 4 CPU 3.00GHz
Gentoo Base System version 1.12.6
Last Sync: Sun, 12 Nov 2006 05:30:01 +0000
ccache version 2.4 [enabled]
app-admin/eselect-compiler: [Not Present]
dev-java/java-config: 1.3.7, 2.0.30
dev-lang/python:     2.4.3-r4
dev-python/pycrypto: 2.0.1-r5
dev-util/ccache:     2.4-r6
dev-util/confcache:  [Not Present]
sys-apps/sandbox:    1.2.17
sys-devel/autoconf:  2.13, 2.60
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2
sys-devel/binutils:  2.16.1-r3
sys-devel/gcc-config: 1.3.13-r4
sys-devel/libtool:   1.5.22
virtual/os-headers:  2.6.17-r1
ACCEPT_KEYWORDS="x86"
AUTOCLEAN="yes"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-march=pentium4 -O2 -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/X11/xkb /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/"
CONFIG_PROTECT_MASK="/etc/env.d /etc/env.d/java/ /etc/gconf /etc/java-config/vms/ /etc/revdep-rebuild /etc/terminfo"
CXXFLAGS="-march=pentium4 -O2 -pipe"
DISTDIR="/usr/portage/distfiles"
EMERGE_DEFAULT_OPTS="--alphabetical"
FEATURES="autoconfig ccache collision-protect distlocks metadata-transfer nostrip parallel-fetch sandbox setid-control sfperms strict suidctl userfetch userpriv usersandbox"
GENTOO_MIRRORS=" ftp://ftp.proxad.net/mirrors/ftp.gentoo.org http://gentoo.mirror.sdv.fr http://mirrors.sec.informatik.tu-darmstadt.de/gentoo http://ftp.easynet.nl/mirror/gentoo"
LANG="en_US.UTF-8"
LC_ALL="en_US.UTF-8"
LINGUAS="en"
MAKEOPTS="-j3"
PKGDIR="/usr/portage/packages"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --delete-after --stats --timeout=180 --exclude='/distfiles' --exclude='/local' --exclude='/packages'"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="x86 X a52 aac aalib acpi alsa apache2 asf audiofile avi berkdb bitmap-fonts bzip2 bzlib cdr cjk cli cracklib crypt ctype cups curl dba dbx dga directfb divx dlloader dri dts dvd dvdr elibc_glibc exif fbcon ffmpeg flac flash foomaticdb freewnn ftp gd gdbm gif gmedia gmp gnutls gpm gtk gtk2 iconv imagemagick imlib innodb input_devices_keyboard input_devices_mouse ipv6 isdnlog java jikes jpeg kde kdeenablefinal kerberos kernel_linux krb4 ldap libcaca libg++ libwww linguas_en m17n-lib mad maildir matroska memlimit mhash mikmod mime ming mmx mng mp3 mpeg mysql ncurses nls nptl nptlonly ogg oggvorbis openal opengl oss pam pcre pdflib perl php pic png posix ppds pppd python qt qt3 qt4 quicktime readline realmedia reflection sasl scanner sdl session simplexml sndfile soap sockets socks5 speex spell spl sse sse2 ssl svg svga tcltk tcpd theora tidy tiff tokenizer truetype truetype-fonts type1-fonts udev unicode usb userland_GNU vcd vhosts video_cards_fbdev video_cards_fglrx video_cards_radeon video_cards_vesa video_cards_vga vorbis win32codecs wmf wmp wxwindows xml xml2 xorg xosd xpm xprint xsl xv xvid zlib {USE}"
Unset:  CTARGET, INSTALL_MASK, LDFLAGS, PORTAGE_RSYNC_EXTRA_OPTS


################################################################


Maybe at least someone else could test, but this problem seems to be fixed.


Thanks Shunichi Fuji, for the information about the "--enable-ld-version-script" switch :)
Comment 9 Christian Marie (RETIRED) gentoo-dev 2006-12-18 19:13:48 UTC
Fixed with scim's new ebuild via Anarchy.