Each time eclipse 3.1M4 tries to create a gtk file chooser dialog, it crashes with the message below. This happens with sun-jdk-1.5.0 and blackdown-1.4.2.01 as well. Unhandled exception Type=GPF vmState=0x00000000 Target=2_20_20040916_0916_LHdSMr (Linux 2.6.8-gentoo-r4) CPU=amd64 (1 logical CPUs) (0x3e86b000 RAM) rdi=0000002ab98c7520 rsi=0000000000000000 rax=0000000042513680 rbx=000000004028edf8 rcx=0000000000000001 rdx=747845206e65704f rbp=0000002a990ffd50 r8=0000002a95759320 r9=0000000042eded01 r10=0000000000000001 r11=0000000000000001 r12=000000004028edf8 r13=0000000000000000 r14=0000002ab87223bc r15=0000000000000000 rip=0000002ab890972e rsp=0000007fbfffdee0 eflags=0000000000010202 cs=0000edf8 fs=00000000 gs=00000000 Module=/usr/lib/libgtk-x11-2.0.so.0 Module_base_address=0000002ab8832000 Symbol=(null) Symbol_address=0000000000000000 trapno=000000000000000d err=0000000000000000 cr2=0000000000000000 Old_mask=0000000080000000 JVMDUMP006I Processing Dump Event "gpf", detail "" - Please Wait. JVMDUMP007I JVM Requesting System Dump using '/opt/eclipse-3.1/core.20050130.005535.17428.dmp' JVMDUMP012E Error in System Dump: cannot find core file, check "ulimit -c" is set high enough >> head of javacore dump 0SECTION TITLE subcomponent dump routine NULL =============================== 1TISIGINFO Dump Event "gpf" (00002000) received 1TIDATETIME Date: 2005/01/30 at 00:55:35 1TIFILENAME Javacore filename: /opt/eclipse-3.1/javacore.20050130.005535.17428.txt NULL ------------------------------------------------------------------------ 0SECTION GPINFO subcomponent dump routine NULL ================================ 2XHOSLEVEL OS Level : Linux 2.6.8-gentoo-r4 2XHCPUS Processors - 3XHCPUARCH Architecture : amd64 3XHNUMCPUS How Many : 1 NULL NULL 1XHEXCPMODULE Module: /usr/lib/libgtk-x11-2.0.so.0 1XHEXCPMODULE Module_base_address: 0000002AB8832000 1XHEXCPMODULE Symbol: [unknown] 1XHEXCPMODULE Symbol_address: 0000000000000000 NULL 1XHREGISTERS Registers: 2XHREGISTER rdi:0000002AB98C7520 2XHREGISTER rsi:0000000000000000 2XHREGISTER rax:0000000042513680 2XHREGISTER rbx:000000004028EDF8 2XHREGISTER rcx:0000000000000001 2XHREGISTER rdx:747845206E65704F 2XHREGISTER rbp:0000002A990FFD50 2XHREGISTER r8:0000002A95759320 2XHREGISTER r9:0000000042EDED01 2XHREGISTER r10:0000000000000001 2XHREGISTER r11:0000000000000001 2XHREGISTER r12:000000004028EDF8 2XHREGISTER r13:0000000000000000 2XHREGISTER r14:0000002AB87223BC 2XHREGISTER r15:0000000000000000 2XHREGISTER rip:0000002AB890972E 2XHREGISTER rsp:0000007FBFFFDEE0 2XHREGISTER eflags:0000000000010202 2XHREGISTER cs:000000000000EDF8 2XHREGISTER fs:0000000000000000 2XHREGISTER gs:0000000000000000 NULL 1XHFLAGS VM flags:00000000 NULL NULL ------------------------------------------------------------------------ 0SECTION ENVINFO subcomponent dump routine NULL ================================= 1CIJAVAVERSION J2RE 1.4.2 IBM J9 2.2 Linux amd64-64 build 20040916_0916_LHdSMr (JIT enabled - r7_level20040915_1801) 1CIRUNNINGAS Running as a standalone JVM 1CICMDLINE /opt/ibm-jdk-bin-1.4.2/bin/java -cp /opt/eclipse-3.1/./eclipse/startup.jar org.eclipse.core.launcher.Main -os linux -ws gtk -arch amd64 -showsplash /opt/eclipse-3.1/./eclipse/eclipse -showsplash 600 -exitdata /opt/eclipse-3.1/./eclipse/eclipse -exitdata e50002 -vm /opt/ibm-jdk-bin-1.4.2/bin/java -vmargs -cp /opt/eclipse-3.1/./eclipse/startup.jar org.eclipse.core.launcher.Main 1CIJAVAHOMEDIR Java Home Dir: /opt/ibm-jdk-bin-1.4.2/jre 1CIJAVADLLDIR Java DLL Dir: /opt/ibm-jdk-bin-1.4.2/jre/bin 1CISYSCP Sys Classpath: /opt/ibm-jdk-bin-1.4.2/jre/lib/jclSC14/classes.zip;/opt/ibm-jdk-bin-1.4.2/jre/lib/core.jar;/opt/ibm-jdk-bin-1.4.2/jre/lib/charsets.jar;/opt/ibm-jdk-bin-1.4.2/jre/lib/graphics.jar;/opt/ibm-jdk-bin-1.4.2/jre/lib/security.jar;/opt/ibm-jdk-bin-1.4.2/jre/lib/ibmpkcs.jar;/opt/ibm-jdk-bin-1.4.2/jre/lib/ibmorb.jar;/opt/ibm-jdk-bin-1.4.2/jre/lib/ibmorbapi.jar;/opt/ibm-jdk-bin-1.4.2/jre/lib/ibmjcefw.jar;/opt/ibm-jdk-bin-1.4.2/jre/lib/ibmjssefips.jar;/opt/ibm-jdk-bin-1.4.2/jre/lib/ibmjgssprovider.jar;/opt/ibm-jdk-bin-1.4.2/jre/lib/ibmjsseprovider.jar;/opt/ibm-jdk-bin-1.4.2/jre/lib/ibmjaaslm.jar;/opt/ibm-jdk-bin-1.4.2/jre/lib/ibmjaasactivelm.jar;/opt/ibm-jdk-bin-1.4.2/jre/lib/ibmcertpathprovider.jar;/opt/ibm-jdk-bin-1.4.2/jre/lib/server.jar;/opt/ibm-jdk-bin-1.4.2/jre/lib/xml.jar; 1CIUSERARGS UserArgs: 2CIUSERARG -Xjcl:jclscar_22 2CIUSERARG -Dcom.ibm.oti.vm.bootstrap.library.path=/opt/ibm-jdk-bin-1.4.2/jre/bin 2CIUSERARG -Dsun.boot.library.path=/opt/ibm-jdk-bin-1.4.2/jre/bin 2CIUSERARG -Djava.library.path=/opt/ibm-jdk-bin-1.4.2/jre/bin:/opt/ibm-jdk-bin-1.4.2/bin/../jre/bin:/opt/ibm-jdk-bin-1.4.2/jre/bin/j9vm:/opt/ibm-jdk-bin-1.4.2/jre/bin:/usr/lib:/usr/lib/mozilla:/usr/lib 2CIUSERARG -Djava.home=/opt/ibm-jdk-bin-1.4.2/jre 2CIUSERARG -Djava.ext.dirs=/opt/ibm-jdk-bin-1.4.2/jre/lib/ext 2CIUSERARG -Duser.dir=/opt/eclipse-3.1 2CIUSERARG _j2se_j9 2CIUSERARG vfprintf 0x00000000400036A0 2CIUSERARG -Dinvokedviajava 2CIUSERARG -Djava.class.path=/opt/eclipse-3.1/./eclipse/startup.jar 2CIUSERARG vfprintf 2CIUSERARG -Xdump NULL 1CIJVMMI JVM Monitoring Interface (JVMMI) NULL ------------------------ 2CIJVMMIOFF [not available] NULL NULL ------------------------------------------------------------------------ 0SECTION MEMINFO subcomponent dump routine Reproducible: Always Steps to Reproduce: 1. Start eclipse 3.1 2. Click on "Open External File" 3. Actual Results: JVM crash (SIGILL from libgtk-x11) Expected Results: Showing a file chooser dialog. Portage 2.0.51-r15 (default-linux/amd64/2004.3, gcc-3.3.4, glibc-2.3.4.20040605-r0, 2.6.8-gentoo-r4 x86_64) ================================================================= System uname: 2.6.8-gentoo-r4 x86_64 12 Gentoo Base System version 1.6.6 Python: dev-lang/python-2.3.3-r1 [2.3.3 (#1, Jul 17 2004, 04:38:02)] dev-lang/python: 2.3.3-r1 sys-devel/autoconf: 2.59-r5 sys-devel/automake: 1.8.3 sys-devel/binutils: 2.15.90.0.1.1-r3 sys-devel/libtool: 1.5.2-r5 virtual/os-headers: 2.6.8.1-r1 ACCEPT_KEYWORDS="amd64" AUTOCLEAN="yes" CFLAGS="-O3 -ffast-math -funroll-all-loops" CHOST="x86_64-pc-linux-gnu" 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/control" CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d" CXXFLAGS="-O3 -ffast-math -funroll-all-loops" DISTDIR="/usr/portage/distfiles" FEATURES="autoaddcvs autoconfig ccache distlocks sandbox" GENTOO_MIRRORS="http://distfiles.gentoo.org http://distro.ibiblio.org/pub/Linux/distributions/gentoo" MAKEOPTS="-j2" PKGDIR="/usr/portage/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" PORTDIR_OVERLAY="/usr/local/portage" SYNC="rsync://rsync.gentoo.org/gentoo-portage" USE="amd64 X Xaw3d acpi alsa apache2 berkdb bitmap-fonts bonobo calendar cdb cdr crypt cups directfb divx4linux doc dvd dvdr emacs esd f77 faad fam flac font-server foomaticdb fortran gdbm gimp gnome gpm gstreamer gtk gtk2 gtkhtml hal icq imagemagick imlib ipv6 java joystick jp2 jpeg junit libwww lzw lzw-tiff mad mbox mcal mikmod motif mozilla mule multilib nas ncurses nls oggvorbis opengl oss pam pcre pda pdflib perl png qt readline ruby samba scanner sdl slang soap speex sqlite ssl svg tcpd tetex tidy tiff truetype truetype-fonts type1-fonts unicode usb userlocales videos wmf xml xml2 xmms xpm xrandr xv xvid zlib" Unset: ASFLAGS, CBUILD, CTARGET, LANG, LC_ALL, LDFLAGS
Please recompile at least gtk+ and glib without "-ffast-math -funroll-all-loops" and see if the problem persists. The gtk+<->SWT interaction seems fairly sensitive to optimization issues.
Recompiled glibc,glib,gtk+,pango and gdm with CFLAGS="" Problem remains the same - I have no idea what causes this problem. # SIGSEGV (0xb) at pc=0x0000002ae703ae55, pid=21386, tid=16384 # # Java VM: Java HotSpot(TM) 64-Bit Server VM (1.5.0-b64 mixed mode) # Problematic frame: # C [libgtk-x11-2.0.so.0+0xe5e55] j org.eclipse.swt.internal.gtk.OS.gtk_file_chooser_dialog_new << emerge pretend output: [ebuild R ] sys-libs/glibc-2.3.4.20041102 -build -debug -erandom -hardened +multilib +nls -nomalloccheck -nptl -nptlonly -pic +userlocales 0 kB [ebuild R ] dev-libs/glib-2.4.8 +doc 0 kB [ebuild R ] x11-libs/gtk+-2.4.13-r1 -debug +doc +jpeg +tiff 0 kB [ebuild R ] x11-libs/pango-1.6.0 -debug +doc 0 k
You are experiencing this bug: https://bugs.eclipse.org/bugs/show_bug.cgi?id=78295 It is fixed in eclipse builds later than 20041222. The problem is specific to 64 bit machines which have GTK+ 2.4.10 or higher and had to do with the way we set up the function pointer to the method for creating one of those fancy new GTK+ file chooser dialogs.
Thank you, Billy Biggs, you're right. I tried the Integration build I20050202, it works. But as you noted, for all milestones (M1,M2,M3,M4) of eclipse 3.1, amd64 ? ( ! >=x11-libs/gtk+-2.4.10 ). I didn't found a dependency on >=gtk+-2.4.10 in my edb cache, so probably this may not be a problem. The gentoo eclipse (3.1) ebuilds do not compile on my system anyway, so I cannot provide further test results. Thanks again for the hint.
3.1M4 (or M3?) is when Eclipse started using the new GTK+ file chooser widget. However, we only use the new chooser if you have GTK+ 2.4.10 or later, since there were too many bugs in previous releases of GTK+.
Please test M6 and see if the problem persist. Then reopen this bug.