Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 64981 - Eclipse 3 hangs in combination with gtk+ 2.4 (possibly others) and the CFLAG pentium4
Summary: Eclipse 3 hangs in combination with gtk+ 2.4 (possibly others) and the CFLAG ...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Development (show other bugs)
Hardware: x86 Linux
: High normal
Assignee: Please assign to toolchain
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-09-22 08:45 UTC by Niko
Modified: 2004-12-06 20:30 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 Niko 2004-09-22 08:45:30 UTC
I am on a pentium4 so I have set march=pentium4 in my cflags. I updated gtk+ (in combination with upgrading to gnome 2.8) und found my eclipse not to work any more (It just hangs as soon as I try changing anything in a .java file, eating up all CPU). From the forum I got the information to try remerging some stuff with march=pentium3 set. Done that and remerged gtk+ (gtk+-2.4.9-r1 to be exact) and everything works again. Don't know if this should be set in an ebuild or forewarded to the gtk or eclipse dev-team

Reproducible: Always
Steps to Reproduce:
1. use a pentium4 in your cflags
2. emerge gtk+
3. emerge eclipse-sdk
4. run eclipse, open a java file (maybe try to edit it)

Actual Results:  
Computer just hangs eating up all CPU 

Expected Results:  
Let me work :(
Comment 1 Pekka Enberg 2004-09-24 13:30:48 UTC
I can reproduce this bug too.  When gtk+ is emerged with -mpentium4, Eclipse 3.0 just hangs.  It works when I re-emerge with -mpentium3.  I have attached part of strace while Eclipse splash screen is frozen (it keeps getting SIGSEGV over and over).  I tested with Linux 2.6.7 and 2.6.9-rc2, GCC 3.4.2, and Sun JDK 1.4.2_05.

$ strace -p15265

rt_sigreturn(0x4d7760f8)                = 139637952
--- SIGSEGV (Segmentation fault) @ 0 (0) ---
rt_sigreturn(0x4d7760f8)                = 139637952
--- SIGSEGV (Segmentation fault) @ 0 (0) ---
rt_sigreturn(0x4d7760f8)                = 139637952
--- SIGSEGV (Segmentation fault) @ 0 (0) ---
rt_sigreturn(0x4d7760f8)                = 139637952
--- SIGSEGV (Segmentation fault) @ 0 (0) ---
rt_sigreturn(0x4d7760f8)                = 139637952
--- SIGSEGV (Segmentation fault) @ 0 (0) ---
rt_sigreturn(0x4d7760f8)                = 139637952
--- SIGSEGV (Segmentation fault) @ 0 (0) ---
rt_sigreturn(0x4d7760f8)                = 139637952
--- SIGSEGV (Segmentation fault) @ 0 (0) ---
rt_sigreturn(0x4d7760f8)                = 139637952
--- SIGSEGV (Segmentation fault) @ 0 (0) ---
rt_sigreturn(0x4d7760f8)                = 139637952
--- SIGSEGV (Segmentation fault) @ 0 (0) ---
rt_sigreturn(0x4d7760f8)                = 139637952
--- SIGSEGV (Segmentation fault) @ 0 (0) ---
rt_sigreturn(0x4d7760f8)                = 139637952
--- SIGSEGV (Segmentation fault) @ 0 (0) ---
rt_sigreturn(0x4d7760f8)                = 139637952
--- SIGSEGV (Segmentation fault) @ 0 (0) ---

$ uname -a
Linux raquel 2.6.7 #4 Thu Jul 22 18:45:39 Local time zone must be set--see zic manu i686 Intel(R) Celeron(R) CPU 2.80GHz GenuineIntel GNU/Linux                                                                                                                                                                                                                                                                                           $ gcc -v
Reading specs from /usr/lib/gcc/i686-pc-linux-gnu/3.4.2/specs
Configured with: /var/tmp/portage/gcc-3.4.2-r2/work/gcc-3.4.2/configure --enable-version-specific-runtime-libs --prefix=/usr --bindir=/usr/i686-pc-linux-gnu/gcc-bin/3.4 --includedir=/usr/lib/gcc/i686-pc-linux-gnu/3.4.2/include --datadir=/usr/share/gcc-data/i686-pc-linux-gnu/3.4 --mandir=/usr/share/gcc-data/i686-pc-linux-gnu/3.4/man --infodir=/usr/share/gcc-data/i686-pc-linux-gnu/3.4/info --with-gxx-include-dir=/usr/lib/gcc/i686-pc-linux-gnu/3.4.2/include/g++-v3 --host=i686-pc-linux-gnu --enable-nls --without-included-gettext --enable-__cxa_atexit --enable-clocale=gnu --enable-shared --with-system-zlib --disable-checking --disable-werror --disable-libunwind-exceptions --with-gnu-ld --enable-threads=posix --disable-multilib --disable-libgcj --enable-languages=c,c++
Thread model: posix
gcc version 3.4.2  (Gentoo Linux 3.4.2-r2, ssp-3.4.1-1, pie-8.7.6.5)

$ java -version
java version "1.4.2_05"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.2_05-b04)
Java HotSpot(TM) Client VM (build 1.4.2_05-b04, mixed mode)
Comment 2 José Mata Fernandes 2004-09-27 07:34:32 UTC
Same here!

Maybe with gtk+-2.4.10 it will be fixed.
Comment 3 Niko 2004-09-27 10:13:46 UTC
I reassigned to gnome@gentoo.org since I doubt it is a java error (Same bug for different Eclipse Versions and JDKs, and remerge of GTK fixes it)
Comment 4 foser (RETIRED) gentoo-dev 2004-09-27 10:28:06 UTC
thats all nice, but if you recompile with all different CFLAGS that would point at a gcc thing, not gnome. And since you are running a known problematic gcc, I'm not surprised things don't work.

And noone here posted 'emerge info' like always should be done.
Comment 5 José Mata Fernandes 2004-09-27 14:41:58 UTC
hey, ok, "emerge info", sory

Portage 2.0.51_rc6 (default-x86-2004.0, gcc-3.4.2, glibc-2.3.4.20040808-r0, 2.6.8-gentoo-r4 i686)
=================================================================
System uname: 2.6.8-gentoo-r4 i686 Intel(R) Pentium(R) 4 Mobile CPU 1.60GHz
Gentoo Base System version 1.5.3
Autoconf: sys-devel/autoconf-2.59-r4
Automake: sys-devel/automake-1.8.5-r1
Binutils: sys-devel/binutils-2.15.90.0.1.1-r3
Headers:  sys-kernel/linux-headers-2.4.22
Libtools: sys-devel/libtool-1.5.2-r5
ACCEPT_KEYWORDS="x86 ~x86"
AUTOCLEAN="yes"
CFLAGS="-O3 -march=pentium4 -fomit-frame-pointer -pipe"
CHOST="i686-pc-linux-gnu"
COMPILER=""
CONFIG_PROTECT="/etc /usr/X11R6/lib/X11/xkb /usr/kde/2/share/config /usr/kde/3/share/config /usr/share/config /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d"
CXXFLAGS="-O3 -march=pentium4 -fomit-frame-pointer -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoaddcvs ccache distlocks sandbox"
GENTOO_MIRRORS="ftp://mirrors1.netvisao.pt/gentoo/ ftp://ftp.gentoo-pt.org/pub/gentoo/ ftp://ftp.tu-clausthal.de/pub/linux/gentoo/ ftp://ftp.wh2.tu-dresden.de/pub/mirrors/gentoo ftp://mirror.switch.ch/mirror/gentoo/"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="X alsa apache2 apm avi berkdb bitmap-fonts bonobo bzlib crypt ctype cups dba directfb divx4linux doc dvd dvdread encode esd foomaticdb gd gdbm gif gnome gpm gtk gtk2 imlib java jpeg junit libg++ libwww live mad matroska mikmod mmx mmx2 motif mpeg msn mysql mysqli nas ncurses network nls nvidia oggvorbis opengl pam pcmcia pdflib perl png pnp posix python quicktime readline rtc sdl slang soap sockets spell sqlite sse sse2 ssl svga tcpd truetype trusted usb x86 xinerama xml2 xmlrpc xmms xorg-x11 xprint xsl xv xvid zlib"
Comment 6 foser (RETIRED) gentoo-dev 2004-09-28 08:28:18 UTC
maybe the gcc porting team can have a look & make a statement on reliability on gcc-3.4.2 & pentium 4 ?
Comment 7 Niko 2004-10-05 12:46:31 UTC
Since my info was missing:

Portage 2.0.51_rc7 (default-x86-2004.0, gcc-3.4.2, glibc-2.3.4.20040808-r0, 2.6.8-gentoo-r4 i686)
=================================================================
System uname: 2.6.8-gentoo-r4 i686 Intel(R) Pentium(R) 4 CPU 2.66GHz
Gentoo Base System version 1.5.3
Autoconf: sys-devel/autoconf-2.59-r4
Automake: sys-devel/automake-1.8.5-r1
Binutils: sys-devel/binutils-2.15.90.0.1.1-r3
Headers:  sys-kernel/linux26-headers-2.6.8.1
Libtools: sys-devel/libtool-1.5.2-r5
ACCEPT_KEYWORDS="x86 ~x86"
AUTOCLEAN="yes"
CFLAGS="-O3 -march=pentium4 -fomit-frame-pointer"
CHOST="i686-pc-linux-gnu"
COMPILER=""
CONFIG_PROTECT="/etc /usr/X11R6/lib/X11/xkb /usr/kde/2/share/config /usr/kde/3.2/share/config /usr/kde/3.3/share/config:/usr/kde/3.3/env:/usr/kde/3.3/shutdown /usr/kde/3/share/config /usr/lib/mozilla/defaults/pref /usr/share/config /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d"
CXXFLAGS="-O3 -march=pentium4 -fomit-frame-pointer"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoaddcvs ccache distlocks sandbox"
GENTOO_MIRRORS="http://gentoo.inode.at"
MAKEOPTS="-j2"
PKGDIR="/home/portage/"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/overlays/gargan"
SYNC="rsync://www.corinis.com/portage"
USE="X aalib alsa apm avi berkdb bitmap-fonts bluetooth bzlib cairo cddb cdparanoia cdr cdrom crypt cups devfs26 divx4linux dvd dvdr dvdread eds encode evo exif faac faad foomaticdb gdbm gif gimp gimpprint gnome gpm gtk gtk2 ieee1394 imagemagick imlib imlib2 java jpeg kde ldap libg++ libwww mad mikmod mmx motif mozilla moznoirc mozsvg mp3 mpeg mpeg4 msdav mysql ncurses nls nvidia oggvorbis opengl pam pcmcia pdf pdflib perl png python quicktime readline samba sdl slang spell sse sse2 ssl svga tcpd theora tidy transcode truetype usb wifi wmf x86 xine xinerama xml2 xmms xprint xv xvid zlib"
Comment 8 Karl Trygve Kalleberg (RETIRED) gentoo-dev 2004-10-12 15:28:34 UTC
Mine.
Comment 9 Karl Trygve Kalleberg (RETIRED) gentoo-dev 2004-11-01 18:13:52 UTC
Can you have a look at this? It works nicely with 3.3
Comment 10 Torsten Kurbad 2004-11-26 08:49:38 UTC
Same here with a Pentium M (Centrino):

Splash screen appears, eclipse asks for a workspace location, then hangs on Sun 1.4 and Blackdown JDKs, while Sun 1.5 and IBM exit with a JVM exception.

emerge info:

Portage 2.0.51-r3 (default-linux/x86/2004.3, gcc-3.4.3, glibc-2.3.4.20041102-r0, 2.6.9-gentoo-r6-mppe-supermount i686)
=================================================================
System uname: 2.6.9-gentoo-r6-mppe-supermount i686 Intel(R) Pentium(R) M processor 1.70GHz
Gentoo Base System version 1.6.6
Autoconf: sys-devel/autoconf-2.59-r5
Automake: sys-devel/automake-1.8.5-r1
Binutils: sys-devel/binutils-2.15.92.0.2-r1
Headers:  sys-kernel/linux26-headers-2.6.8.1-r1
Libtools: sys-devel/libtool-1.5.2-r7
ACCEPT_KEYWORDS="x86 ~x86"
AUTOCLEAN="yes"
CFLAGS="-march=pentium-m -O3 -msse2 -mmmx -mfpmath=sse,387 -pipe"
CHOST="i686-pc-linux-gnu"
COMPILER=""
CONFIG_PROTECT="/etc /usr/X11R6/lib/X11/xkb /usr/kde/2/share/config /usr/kde/3.3/env /usr/kde/3.3/share/config /usr/kde/3.3/shutdown /usr/kde/3/share/config /usr/lib/mozilla/defaults/pref /usr/share/config /usr/share/texmf/dvipdfm/config/ /usr/share/texmf/dvips/config/ /usr/share/texmf/tex/generic/config/ /usr/share/texmf/tex/platex/config/ /usr/share/texmf/xdvi/ /var/qmail/alias /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d"
CXXFLAGS="-march=pentium-m -O3 -msse2 -mmmx -mfpmath=sse,387 -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoaddcvs autoconfig ccache distlocks sandbox sfperms"
GENTOO_MIRRORS="ftp://ftp.informatik.rwth-aachen.de/pub/linux/gentoo http://gentoo.osuosl.org http://www.ibiblio.org/pub/Linux/distributions/gentoo"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://rsync.de.gentoo.org/gentoo-portage"
USE="X aalib acl acpi alsa apache2 apm arts avi bcmath berkdb bidi bitmap-fonts bzlib calendar cdr cpdflib crypt cups curl curlwrappers dba dga doc dts dvd dvdr encode esd extensions f77 faac faad fam fbcon fftw filepro flac flatfile foomaticdb fortran ftp gd gdbm ggi gif gmp gnome gpm gstreamer gtk gtk2 hbci iconv ieee1394 imagemagick imap imlib inifile ipv6 java jpeg junit kerberos lame ldap libg++ libwww lirc lufsusermount mad matroska mcve mikmod mime ming mmx motif mozilla mpeg mxhash mysql nas ncurses nfs nls odbc offensive oggvorbis opengl pam pcntl pcre pdf pdflib perl php pie png posix postgres python qt quicktime quota quotas quotes readline recode samba sane sasl sdl sensors session sharedmem slang slp snmp sockets speex spell squashfs sse2 ssl svga sysvipc tcltk tcpd tetex theora tidy tiff tokenizer transcode truetype ungif unicode usb v4l v4l2 vhosts wma wmv wxwindows x86 xfs xinerama xml xml2 xmlrpc xmms xosd xprint xsl xv zlib"


Will try remerging glib, gtk+ and eclipse with -march=pentium3 today, since gnome also doesn't work too stable.

Btw.
USE="-gtk motif" emerge eclipse-sdk
worked fine for me with openMotif. But who wants this crappy, outdated look? ;o)

Maybe we'll find out more about support gcc versions and CFLAGS on gnome.org?!

Regards,
Torsten 
Comment 11 SpanKY gentoo-dev 2004-12-06 20:30:12 UTC
gcc-3.4.x was so kind as to break sse2

our gcc-3.4 ebuilds disable sse2 so this should be fine (if you rebuild things)