Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 215150 - >=dev-java/sun-jdk-1.6.0.05 has a crashing bug with dev-util/eclipse-sdk
Summary: >=dev-java/sun-jdk-1.6.0.05 has a crashing bug with dev-util/eclipse-sdk
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Java (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Java team
URL:
Whiteboard:
Keywords: STABLEREQ
: 215301 215680 (view as bug list)
Depends on:
Blocks:
 
Reported: 2008-03-28 07:02 UTC by wyvern5
Modified: 2008-12-20 19:30 UTC (History)
14 users (show)

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


Attachments
Generated by gnome (Eclipse-bugreport.txt,43.93 KB, text/plain)
2008-04-02 12:26 UTC, James A Shepherd
Details
hostspot dump (hs_err_pid32320.log,103.69 KB, text/plain)
2008-04-02 12:27 UTC, James A Shepherd
Details
repeated crashing in workspace/.metadata/.log (eclipse.log,124.18 KB, text/plain)
2008-04-02 12:31 UTC, James A Shepherd
Details
fix (.hotspot_compiler,71 bytes, text/plain)
2008-04-03 08:04 UTC, James A Shepherd
Details
/usr/bin/eclipse-3.3 fix candidate (eclipse-3.3,1.65 KB, text/plain)
2008-04-03 10:09 UTC, Vlastimil Babka (Caster) (RETIRED)
Details
java log while crash (hs_err_pid15420.log,60.65 KB, text/plain)
2008-07-08 10:59 UTC, Albert Zeyer
Details
java crash log with fix (hs_err_pid15603.log,60.60 KB, text/plain)
2008-07-08 11:08 UTC, Albert Zeyer
Details
eclipse 3.3 crash log with fix (hs_err_pid11331.log,56.13 KB, text/plain)
2008-07-08 16:27 UTC, Albert Zeyer
Details
Eclipse crash report (Eclipse-bugreport.txt,3.14 KB, text/plain)
2008-07-26 10:13 UTC, Robert Burrell Donkin
Details
Eclipse crash log (hs_err_pid10154.log,137.00 KB, text/plain)
2008-07-26 10:13 UTC, Robert Burrell Donkin
Details
updated fix (eclipse-3.3,1.74 KB, text/plain)
2008-07-27 22:41 UTC, David Sveningsson
Details

Note You need to log in before you can comment on or make changes to this bug.
Description wyvern5 2008-03-28 07:02:58 UTC
Eclipse has a crashing bug on 1.6.0_05. See http://blog.gleamynode.net/2008/03/workarounds-for-eclipse-crash-with-jdk.html

Without that .hotspot_compiler tweak, it crashes as soon as it's starting to update the workspace after launching.

Reproducible: Always

Steps to Reproduce:
1. Update to 1.6.0_05
2. Start eclipse 3.3 (subversive may be necessary to trigger the crash; not sure)
3. Watch it crash
Comment 1 nebojsa 2008-03-28 11:27:40 UTC
Have same problem.
It is related to compiling code.
It started to happen as of 1.6.0_04 (with 1.6.0_03 and 1.5.* worked just fine)
Comment 2 wyvern5 2008-03-28 17:04:03 UTC
I've submitted a bug with Sun for this crash.
Comment 3 Alistair Bush (RETIRED) gentoo-dev 2008-03-28 20:57:08 UTC
linky please so we can monitor it.
Comment 4 wyvern5 2008-03-29 19:31:31 UTC
This isn't actually my submitted bug but it's the same problem as my bug, and has a lot more activity:

http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=6614100
Comment 5 Petteri Räty (RETIRED) gentoo-dev 2008-03-29 20:05:13 UTC
*** Bug 215301 has been marked as a duplicate of this bug. ***
Comment 6 Vlastimil Babka (Caster) (RETIRED) gentoo-dev 2008-04-02 09:35:58 UTC
*** Bug 215680 has been marked as a duplicate of this bug. ***
Comment 7 James A Shepherd 2008-04-02 12:26:07 UTC
me too, Eclipse 3.3.1.1 ('basic' download from the eclipse site, I keep plug-ins in /opt) Fires up and works mostly OK, but about 1 in every 4 saves it crashes.

a gnome bug report and hotspot dump are attached
Comment 8 James A Shepherd 2008-04-02 12:26:50 UTC
Created attachment 148071 [details]
Generated by gnome
Comment 9 James A Shepherd 2008-04-02 12:27:47 UTC
Created attachment 148073 [details]
hostspot dump
Comment 10 James A Shepherd 2008-04-02 12:31:21 UTC
Created attachment 148074 [details]
repeated crashing in workspace/.metadata/.log
Comment 11 Petteri Räty (RETIRED) gentoo-dev 2008-04-02 13:45:01 UTC
(In reply to comment #8)
> Created an attachment (id=148071) [edit]
> Generated by gnome
> 

That's bug 215318.
Comment 12 James A Shepherd 2008-04-02 14:02:49 UTC
Petteri Räty:

I do not have crashing on startup - I get crashing when saving (may be building).

The fix mentioned by the initial reporter at:

http://blog.gleamynode.net/2008/03/workarounds-for-eclipse-crash-with-jdk.html

appears to have stopped my crashing.

FYI, the gnome bug buddy thing does not always appear when my eclipse crashes out, and often it appears *before* eclipse crashes out --- I can see output in the eclipse console scrolling by when the gnome bug window pops up.

Also, I am running x11-libs/gtk+-2.12.8 :-)







Portage 2.1.4.4 (default-linux/amd64/2007.0, gcc-4.1.2, glibc-2.6.1-r0, 2.6.23-tuxonice-r11-11 x86_64)
=================================================================
System uname: 2.6.23-tuxonice-r11-11 x86_64 Intel(R) Core(TM)2 Quad CPU Q6600 @ 2.40GHz
Timestamp of tree: Wed, 02 Apr 2008 12:16:01 +0000
ccache version 2.4 [enabled]
app-shells/bash:     3.2_p17-r1
dev-java/java-config: 1.3.7, 2.1.4
dev-lang/python:     2.4.4-r9
dev-python/pycrypto: 2.0.1-r6
dev-util/ccache:     2.4-r7
sys-apps/baselayout: 1.12.11.1
sys-apps/sandbox:    1.2.18.1-r2
sys-devel/autoconf:  2.13, 2.61-r1
sys-devel/automake:  1.4_p6, 1.5, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10
sys-devel/binutils:  2.18-r1
sys-devel/gcc-config: 1.4.0-r4
sys-devel/libtool:   1.5.26
virtual/os-headers:  2.6.23-r3
ACCEPT_KEYWORDS="amd64"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=nocona -O2 -pipe"
CHOST="x86_64-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/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /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="-march=nocona -O2 -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="ccache distlocks fixpackages metadata-transfer parallel-fetch sandbox sfperms strict unmerge-orphans userfetch"
GENTOO_MIRRORS="ftp://ftp.uni-erlangen.de/pub/mirrors/gentoo ftp://ftp.tu-clausthal.de/pub/linux/gentoo/ ftp://pandemonium.tiscali.de/pub/gentoo/"
LANG="en_GB.UTF-8"
LINGUAS="en_GB"
MAKEOPTS="-j6"
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="X a52 aac acl alsa amd64 apache2 avahi bash-completion berkdb bogofilter branding bzip2 cddb cdr cli cracklib crypt css cups dbus divx dri dvd dvdr dvdread encode esd fam fat ffmpeg flac fortran gd gdbm gimp gmedia gnome gpm gstreamer gtk hal hfs howl iconv imagemagick ipod ipv6 isdnlog java javascript jpeg latex lm_sensors mad midi mmx mp3 mp4 mpeg mudflap mysql mysqli ncurses nls nptl nptlonly nsplugin ntfs ogg opengl openmp pam pcre pdf perl plotutils png postgres postscript pppd python quicktime readline realmedia reflection samba session spamassassin spell spl sse sse2 ssl stream tcpd tetex tiff tk truetype type1 unicode usb vim-syntax vorbis wddx wmp wxwindows x264 xorg xv xvmci zip zlib" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci 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 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" FOO2ZJS_DEVICES="hp1020" INPUT_DEVICES="keyboard mouse evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="en_GB" USERLAND="GNU" VIDEO_CARDS="nvidia"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LC_ALL, LDFLAGS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS

CompilerOracle: exclude org/eclipse/core/internal/dtree/DataTreeNode.forwardDeltaWith
java version "1.6.0_05"
Java(TM) SE Runtime Environment (build 1.6.0_05-b13)
Java HotSpot(TM) 64-Bit Server VM (build 10.0-b19, mixed mode)
Comment 13 Vlastimil Babka (Caster) (RETIRED) gentoo-dev 2008-04-02 20:02:15 UTC
I can't seem to reproduce it. Is there a specific project which building triggers it? Using the eclipse-sdk-3.3.1.1 package from portage? Where should the hotspot file go for the package, to /usr/lib/eclipse-3.3/ ?

Note that this is probably the only thing we can do about this - workaround in our eclipse ebuild. If you are just reporting crashes with manually downloaded eclipse from their web, then you have to workaround it yourself. Only upstream can fix the JDK...
Comment 14 wyvern5 2008-04-03 04:31:17 UTC
The subversive plugin seems to increase the frequency of the problem, so try installing that (and checking out a big project).
Comment 15 James A Shepherd 2008-04-03 07:00:20 UTC
.hotspot_compiler needs to be in the current working directory when you call java I think. Putting it on the classpath doesn't work for me. Not that I've found any documentation, but it's easy to test:

My previous posting shows the output from 

java -version

when the file is found.

I read somewhere that it is a sun 1.6.0.05 on amd64 problem.

I have put the hotspot file in ~/.hotspot_compiler so my gnome launcher picks it up, or seems to, the difference is night and day.

I do run the subversion plug in, and I would tend to believe it is something to do with file monitoring of some kind.

The following explains some of the incantation:

http://www.jguru.com/faq/view.jsp?EID=710838

http://java.sun.com/javase/6/webnotes/trouble/TSG-VM/html/gbyzo.html
Comment 16 Heinrich Nirschl 2008-04-03 08:02:18 UTC
(In reply to comment #13)
> I can't seem to reproduce it. Is there a specific project which building
> triggers it? Using the eclipse-sdk-3.3.1.1 package from portage? Where should
> the hotspot file go for the package, to /usr/lib/eclipse-3.3/ ?
> 

A better workaround is probably to put

-XX:CompileCommand=exclude,org/eclipse/core/internal/dtree/DataTreeNode,forwardDeltaWith

into eclipse.ini
Comment 17 James A Shepherd 2008-04-03 08:04:52 UTC
Created attachment 148182 [details]
fix

I believe this may be the answer:

http://forum.java.sun.com/thread.jspa?threadID=417123&messageID=4273845

so in eclipse.ini add

-XX:CompileCommandFile=/usr/lib/eclipse-3.3/.hotspot_compiler

after -vmargs

with /usr/lib/eclipse-3.3/.hotspot_compiler being the attached file.
Comment 18 Eric Chatellier 2008-04-03 08:12:29 UTC
(In reply to comment #16)
> (In reply to comment #13)
> > I can't seem to reproduce it. Is there a specific project which building
> > triggers it? Using the eclipse-sdk-3.3.1.1 package from portage? Where should
> > the hotspot file go for the package, to /usr/lib/eclipse-3.3/ ?
> > 
> 
> A better workaround is probably to put
> 
> -XX:CompileCommand=exclude,org/eclipse/core/internal/dtree/DataTreeNode,forwardDeltaWith
> 
> into eclipse.ini
> 

Tested this option on eclipse.ini.
Seems to work :)
Comment 19 Vlastimil Babka (Caster) (RETIRED) gentoo-dev 2008-04-03 10:09:19 UTC
Created attachment 148198 [details]
/usr/bin/eclipse-3.3 fix candidate

Please try replacing your /usr/bin/eclipse-3.3 with this and report if it fixes the issue. Tries to apply the workaround only for JVM's that really need it.
Comment 20 Robert Burrell Donkin 2008-04-04 19:00:42 UTC
Vlastimil Babka (Caster)'s fix works for me :-)

(Note that this crash also happens for me on Eclipse 3.2.1 which is the latest stable for AMD64 so might need backporting...)
Comment 21 Vlastimil Babka (Caster) (RETIRED) gentoo-dev 2008-04-06 19:15:52 UTC
Revbumped 3.2.1 with the workaround.
Arches please stabilize: (no 30 days wait, as 1.6.0.05 had to go stable immediately for security reasons)
dev-util/eclipse-sdk-3.2.1-r3

That it works should be indicated the following when using sun-jdk-1.6.0.05 (or sun-jre-bin) and not appear if using other JDK
$ eclipse-3.2
Performing workaround for bug #215150
CompilerOracle: exclude org/eclipse/core/internal/dtree/DataTreeNode.forwardDeltaWith

You don't need to verify that -r2 crashes and -r3 not. I myself couldn't reproduce the crash.
Comment 22 Vlastimil Babka (Caster) (RETIRED) gentoo-dev 2008-04-06 21:15:52 UTC
3.3 is fixed in 3.3.1.1-r1 in CVS. This slot is not yet stable, so no stabilization here.
Comment 23 Markus Meier gentoo-dev 2008-04-10 19:41:32 UTC
amd64/x86 stable
Comment 24 Vlastimil Babka (Caster) (RETIRED) gentoo-dev 2008-04-17 08:44:42 UTC
1.6.0.06 was released which AFAIK is not yet fixed, so I updated the scripts to detect also this version. Decided not to do another revbump, please just remerge eclipse-sdk if you hit the bug.

Removing stabilization request for ppc, realized there's no sun-jdk anyway.
Comment 25 Kal Nambar Bargifsach 2008-04-21 21:23:21 UTC
(In reply to comment #18)
> (In reply to comment #16)
> > (In reply to comment #13)
> > > I can't seem to reproduce it. Is there a specific project which building
> > > triggers it? Using the eclipse-sdk-3.3.1.1 package from portage? Where should
> > > the hotspot file go for the package, to /usr/lib/eclipse-3.3/ ?
> > > 
> > 
> > A better workaround is probably to put
> > 
> > -XX:CompileCommand=exclude,org/eclipse/core/internal/dtree/DataTreeNode,forwardDeltaWith
> > 
> > into eclipse.ini
> > 
> 
> Tested this option on eclipse.ini.
> Seems to work :)
> 

Worked for me as well. I am using subclipse. Eclipse crashed on about every third saving action _AFTER_ saving the file and on every second program execution.

On my projects I use subclipse, checkstyle and maven. All may execute some actions on saving or execution.
Comment 26 amitds 2008-05-28 06:26:32 UTC
I'm experiencing crashes, with the proposed workaround:

amit0 eclipse-3.2 # java-config -L
The following VMs are available for generation-2:
1)      Blackdown JDK 1.4.2.03 [blackdown-jdk-1.4.2]
2)      Sun JDK 1.5.0.15 [sun-jdk-1.5]
*)      Sun JDK 1.6.0.06 [sun-jdk-1.6]

amit0 eclipse-3.2 # equery l eclipse-sdk
[ Searching for package 'eclipse-sdk' in all categories among: ]
 * installed packages
[I--] [  ] dev-util/eclipse-sdk-3.2.1-r3 (3.2)


amit0 workspace # /usr/lib/eclipse-3.2/eclipse -debug .eclipse/debug_options -consoleLog -vmargs -XX:CompileCommand=exclude,org/eclipse/core/internal/dtree/DataTreeNode,forwardDeltaWith
Start VM: /usr/bin/java
-XX:CompileCommand=exclude,org/eclipse/core/internal/dtree/DataTreeNode,forwardDeltaWith
-jar /usr/lib/eclipse-3.2/startup.jar
-os linux
-ws gtk
-arch x86_64
-launcher /usr/lib/eclipse-3.2/eclipse
-name Eclipse
-showsplash 600
-exitdata 300006
-debug .eclipse/debug_options
-consoleLog
-vm /usr/bin/java
-vmargs
-XX:CompileCommand=exclude,org/eclipse/core/internal/dtree/DataTreeNode,forwardDeltaWith
-jar /usr/lib/eclipse-3.2/startup.jar
CompilerOracle: exclude org/eclipse/core/internal/dtree/DataTreeNode.forwardDeltaWith
Install location:
    file:/usr/lib64/eclipse-3.2/
Configuration file:
    file:/usr/lib64/eclipse-3.2/configuration/config.ini loaded
Configuration location:
    file:/usr/lib64/eclipse-3.2/configuration/
Framework located:
    file:/usr/lib64/eclipse-3.2/plugins/org.eclipse.osgi_3.2.1.R32x_v20060919.jar
Framework classpath:
    file:/usr/lib64/eclipse-3.2/plugins/org.eclipse.osgi_3.2.1.R32x_v20060919.jar
Splash location:
    /usr/lib64/eclipse-3.2/plugins/org.eclipse.platform_3.2.0.v20060601/splash.bmp
runCommand:
    </usr/lib/eclipse-3.2/eclipse><-name><Eclipse><-showsplash><600></usr/lib64/eclipse-3.2/plugins/org.eclipse.platform_3.2.0.v20060601/splash.bmp>
Debug options:
    file:/root/workspace/.eclipse/debug_options not found
Time to load bundles: 21
Starting application: 3277
!SESSION 2008-05-27 09:02:23.475 -----------------------------------------------
...
<BLA, BLA, BLA, takes some time till it actually crashes>
...
!ENTRY org.eclipse.core.jobs 4 2 2008-05-27 13:06:52.153
!MESSAGE An internal error occurred during: "Synchronizing".
!STACK 0
java.lang.OutOfMemoryError: PermGen space
Java HotSpot(TM) 64-Bit Server VM warning: Exception java.lang.OutOfMemoryError occurred dispatching signal SIGTERM to handler- the VM may need to be forcibly terminated
java.lang.OutOfMemoryError: PermGen space
Comment 27 Heinrich Nirschl 2008-05-28 07:00:47 UTC
(In reply to comment #26)
> java.lang.OutOfMemoryError: PermGen space
> Java HotSpot(TM) 64-Bit Server VM warning: Exception java.lang.OutOfMemoryError
> occurred dispatching signal SIGTERM to handler- the VM may need to be forcibly
> terminated
> java.lang.OutOfMemoryError: PermGen space

This is a totally unrelated problem. You are simply running out of PermGen space. Please check the SUN documentation (watch out for the -XX:MaxPermSize option).
Comment 28 amitds 2008-05-28 07:25:04 UTC
(In reply to comment #27)
> (In reply to comment #26)
> > java.lang.OutOfMemoryError: PermGen space
> > Java HotSpot(TM) 64-Bit Server VM warning: Exception java.lang.OutOfMemoryError
> > occurred dispatching signal SIGTERM to handler- the VM may need to be forcibly
> > terminated
> > java.lang.OutOfMemoryError: PermGen space
> 
> This is a totally unrelated problem. You are simply running out of PermGen
> space. Please check the SUN documentation (watch out for the -XX:MaxPermSize
> option).
> 

Perhaps. Yet I wouldn't be 100% sure about this. Running out of PermGen space is  the terminal symptom indeed. I'm trying to ascertain the cause, based on the symptom. Many paths can lead to such a crash. I'm suggesting that this specific path is related to this bug. I didn't experience such crashes with java 1.5. Since crashes happen variably, I can't say for-certain. 
I'd be happy to further investigate this, pending the right tools. I'm not very familar with eclipse debugging. Whatever logs I managed to concoct weren't very helpful.
Comment 29 wyvern5 2008-05-28 17:00:19 UTC
(In reply to comment #28)
> (In reply to comment #27)
> > (In reply to comment #26)
> > > java.lang.OutOfMemoryError: PermGen space
> > > Java HotSpot(TM) 64-Bit Server VM warning: Exception java.lang.OutOfMemoryError
> > > occurred dispatching signal SIGTERM to handler- the VM may need to be forcibly
> > > terminated
> > > java.lang.OutOfMemoryError: PermGen space
> > 
> > This is a totally unrelated problem. You are simply running out of PermGen
> > space. Please check the SUN documentation (watch out for the -XX:MaxPermSize
> > option).
> > 
> 
> Perhaps. Yet I wouldn't be 100% sure about this. Running out of PermGen space
> is  the terminal symptom indeed. I'm trying to ascertain the cause, based on
> the symptom. Many paths can lead to such a crash. I'm suggesting that this
> specific path is related to this bug. I didn't experience such crashes with
> java 1.5. Since crashes happen variably, I can't say for-certain. 
> I'd be happy to further investigate this, pending the right tools. I'm not very
> familar with eclipse debugging. Whatever logs I managed to concoct weren't very
> helpful.
> 

No, Heinrich is right. This is an unrelated problem. Running out of memory is not the same as having the JVM itself crash from an internal bug. Increase your permgen space as Heinrich suggested.
Comment 30 Albert Zeyer 2008-07-08 10:59:09 UTC
Created attachment 159860 [details]
java log while crash

I have the same problem too. It happens more or less always after a few seconds of runtime, mostly directly after SVN syncing.
Comment 31 Albert Zeyer 2008-07-08 10:59:41 UTC
az@macbook ~ $ emerge --info
Portage 2.1.4.4 (default-linux/x86/2007.0, gcc-4.1.2, glibc-2.6.1-r0, 2.6.24-gentoo-r8 i686)
=================================================================
System uname: 2.6.24-gentoo-r8 i686 Intel(R) Core(TM)2 CPU T7400 @ 2.16GHz
Timestamp of tree: Sun, 06 Jul 2008 23:00:02 +0000
distcc 2.18.3 i686-pc-linux-gnu (protocols 1 and 2) (default port 3632) [disabled]
app-shells/bash:     3.2_p33
dev-java/java-config: 1.3.7, 2.1.6
dev-lang/python:     2.4.4-r13
dev-python/pycrypto: 2.0.1-r6
sys-apps/baselayout: 1.12.11.1
sys-apps/sandbox:    1.2.18.1-r2
sys-devel/autoconf:  2.13, 2.61-r1
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
sys-devel/binutils:  2.18-r1
sys-devel/gcc-config: 1.4.0-r4
sys-devel/libtool:   1.5.26
virtual/os-headers:  2.6.23-r3
ACCEPT_KEYWORDS="x86"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-O2 -march=nocona -pipe -ggdb"
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/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /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=nocona -pipe -ggdb"
DISTDIR="/usr/portage/distfiles"
FEATURES="distlocks metadata-transfer parallel-fetch sandbox sfperms splitdebug unmerge-orphans userfetch"
GENTOO_MIRRORS="http://linux.rz.ruhr-uni-bochum.de/download/gentoo-mirror/ ftp:///ftp-stud.fht-esslingen.de/pub/Mirrors/gentoo/ ftp://ftp6.uni-erlangen.de/pub/mirrors/gentoo ftp://vlaai.snt.ipv6.utwente.nl/pub/os/linux/gentoo/ ftp://mirror.nutsmaas.nl/gentoo/"
LANG="en_US.UTF-8"
LC_ALL="en_US.UTF-8"
LINGUAS="de"
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/private"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="7zip X a52 aac acl acpi alsa altenburgcards amarok amr amuled apm applet async asyncns atm automount avahi bash-completion berkdb bluetooth bonjour bookmarks bzip2 cairo cdr cisco cli cracklib crypt cups d dbus dedicated deskbar dga dhcp divx dri dv dvd dvdr dvdread dvi eap-tls enblend encode evo exif extra-algorithms fam fasttrack ffmpeg flac ftp galago gd gdbm german gif glib glitz gmedia gnome gnutella gnutls gphoto2 gpm gsf gtk h323 hal haskell hddtemp hfs iconv icu id3 id3tag ieee1394 imlib injection inkjar ipv6 irda isdnlog isight jabber java javascript jit joystick jpeg jpeg2k kde kig-scripting kqemu latex lcms libnotify lirc lm_sensors lua lzo macbook mad madwifi maps mdnsresponder-compat midi mmap mmx mng mozdevelop mp2 mp3 mp4 mpeg mplayer mtp mudflap music musicbrainz nautilus ncurses net network networking networkmanager njb nls nntp nptl nptlonly nsplugin ntfs ogg opengl openmp oss pam pascal pch pcre pdf perl pidgin plotutils pmu png pnm posix postgres postscript pptp ps pth pulseaudio python qt3support qt4 quicktime rar rc5 rdesktop readline real realmedia reflection reiser4 reiserfs rtc samba screen sdl sdl-image sdl-sound sdlaudio server session sftp sharedmem sift slp smp sockets socks5 solver sourceview speex spell spl sse sse2 ssl ssse3 startup-notification subversion svg tetex theora threads threadsafe tiff timidity tk trayicon truetype unicode unzip usb v4l2 valgrind vcd video voice vorbis weak-algorithms wifi win32codecs wma wmp wxwindows x264 x86 xanim xattr xcomposite xext xface xine xml xmlreader xorg xrandr xscreensaver xulrunner xv xvid zip zlib zsh-completion" ALSA_CARDS="hda-intel" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter 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="sony_dscf1 sony_dscf55" ELIBC="glibc" INPUT_DEVICES="keyboard mouse synaptics evdev wacom" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="de" LIRC_DEVICES="inputlirc macmini" USERLAND="GNU" VIDEO_CARDS="i810 vesa"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LDFLAGS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS

Comment 32 Albert Zeyer 2008-07-08 11:05:43 UTC
But I have the problem with Eclipse 3.2.1-r3.
Comment 33 Albert Zeyer 2008-07-08 11:08:08 UTC
Created attachment 159862 [details]
java crash log with fix

It crashes also with Vlastimil Babka's fix (which I modified slightly to run with Eclipse 3.2).

az@macbook ~ $ eclipse-3.2
#
# An unexpected error has been detected by Java Runtime Environment:
#
#  SIGSEGV (0xb) at pc=0x0625665c, pid=15603, tid=2433293200
#
# Java VM: Java HotSpot(TM) Server VM (10.0-b22 mixed mode linux-x86)
# Problematic frame:
# V  [libjvm.so+0x25665c]
#
# An error report file with more information is saved as:
# /home/az/hs_err_pid15603.log
#
# If you would like to submit a bug report, please visit:
#   http://java.sun.com/webapps/bugreport/crash.jsp
# The crash happened outside the Java Virtual Machine in native code.
# See problematic frame for where to report the bug.
#
Comment 34 Albert Zeyer 2008-07-08 16:27:53 UTC
Created attachment 159886 [details]
eclipse 3.3 crash log with fix

I tried with Eclipse 3.3 now and I get again a crash.

az@macbook ~/Programmierung/EclipseWorkspace/Ilias $ eclipse-3.3.fixed
#
# An unexpected error has been detected by Java Runtime Environment:
#
#  SIGSEGV (0xb) at pc=0x0625665c, pid=11331, tid=2690390928
#
# Java VM: Java HotSpot(TM) Server VM (10.0-b22 mixed mode linux-x86)
# Problematic frame:
# V  [libjvm.so+0x25665c]
#
# An error report file with more information is saved as:
# /home/az/Programmierung/EclipseWorkspace/Ilias/hs_err_pid11331.log
#
# If you would like to submit a bug report, please visit:
#   http://java.sun.com/webapps/bugreport/crash.jsp
# The crash happened outside the Java Virtual Machine in native code.
# See problematic frame for where to report the bug.
#
Comment 35 Emond Papegaaij 2008-07-10 06:48:29 UTC
1.6.0.07 is available now, and still has the same problem. This version also needs to be added to the startup script.
Comment 36 Robert Burrell Donkin 2008-07-26 10:12:56 UTC
After emerging, (and re-emerging java and eclipse) this problem is back again for me :-(

emerge --info
Portage 2.1.4.4 (default-linux/amd64/2007.0, gcc-4.1.2, glibc-2.6.1-r0, 2.6.25-gentoo-r7 x86_64)
=================================================================
System uname: 2.6.25-gentoo-r7 x86_64 AMD Athlon(tm) 64 X2 Dual Core Processor 5600+
Timestamp of tree: Sat, 26 Jul 2008 06:15:01 +0000
app-shells/bash:     3.2_p33
dev-java/java-config: 1.3.7, 2.1.6
dev-lang/python:     2.4.4-r13, 2.5.2-r5
dev-python/pycrypto: 2.0.1-r6
sys-apps/baselayout: 1.12.11.1
sys-apps/sandbox:    1.2.18.1-r2
sys-devel/autoconf:  2.13, 2.61-r2
sys-devel/automake:  1.4_p6, 1.5, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10.1
sys-devel/binutils:  2.18-r3
sys-devel/gcc-config: 1.4.0-r4
sys-devel/libtool:   1.5.26
virtual/os-headers:  2.6.23-r3
ACCEPT_KEYWORDS="amd64"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=athlon64 -O2 -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /var/lib/hsqldb"
CONFIG_PROTECT_MASK="/etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/revdep-rebuild /etc/terminfo /etc/udev/rules.d"
CXXFLAGS="-march=athlon64 -O2 -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="distlocks metadata-transfer sandbox sfperms strict unmerge-orphans userfetch"
GENTOO_MIRRORS="http://gentoo.virginmedia.com/ "
LANG="C"
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"
SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage"
USE="3dnow 3dnowext X a52 aac aalib acl alsa amd64 apache2 audacious avah avi berkdb bitmap-fonts cdparanoia cdr cli cracklib crypt cups dbus divxlinux dri dv dvd dvdr dvdread encode ffmpeg flac fortran gdbm gnome gpm gtk gtk2 hal iconv ipv6 isdnlog java jpeg lame live mad midi mjpeg mmx mmxext mudflap ncurses nls nptl nptlonly nvidia ogg opengl openmp pam pcre pdf perl png pppd python quicktime read readline reflection session spl sse sse2 ssl symlink tcpd theora truetype-fonts type1-fonts unicode vcd vorbix xine xorg xv xvid xvmc zlib" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci 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 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="keyboard mouse" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" USERLAND="GNU" VIDEO_CARDS="nvidia"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LC_ALL, LDFLAGS, LINGUAS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, PORTDIR_OVERLAY
Comment 37 Robert Burrell Donkin 2008-07-26 10:13:24 UTC
Created attachment 161397 [details]
Eclipse crash report
Comment 38 Robert Burrell Donkin 2008-07-26 10:13:43 UTC
Created attachment 161398 [details]
Eclipse crash log
Comment 39 David Sveningsson 2008-07-27 19:13:48 UTC
Vlastimil Babka's fix does not work for me either.

dev-java/sun-jdk-1.6.0.07
dev-util/eclipse-sdk-3.3.1.1-r1

Portage 2.2_rc3 (default/linux/amd64/2008.0, gcc-4.3.1, glibc-2.8_p20080602-r0, 2.6.25-gentoo-r4 x86_64)
=================================================================
System uname: Linux-2.6.25-gentoo-r4-x86_64-AMD_Phenom-tm-_9600_Quad-Core_Processor-with-glibc2.2.5
Timestamp of tree: Sun, 27 Jul 2008 01:00:01 +0000
distcc 2.18.3 x86_64-pc-linux-gnu (protocols 1 and 2) (default port 3632) [disabled]
ccache version 2.4 [enabled]
app-shells/bash:     3.2_p39
dev-java/java-config: 1.3.7, 2.1.6-r1
dev-lang/python:     2.5.2-r5
dev-python/pycrypto: 2.0.1-r6
dev-util/ccache:     2.4-r7
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.62-r1
sys-devel/automake:  1.5, 1.7.9-r1, 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.4
virtual/os-headers:  2.6.25-r4
ACCEPT_KEYWORDS="amd64 ~amd64"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=athlon64 -Os -pipe -msse3"
CHOST="x86_64-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/udev/rules.d"
CXXFLAGS="-march=athlon64 -Os -pipe -msse3"
DISTDIR="/usr/portage/distfiles"
FEATURES="ccache distlocks installsources parallel-fetch preserve-libs sandbox sfperms splitstrip strict unmerge-orphans userfetch"
GENTOO_MIRRORS="ftp.port80.se/gentoo/ "
LC_ALL="sv_SE.utf8"
LDFLAGS="-Wl,-O1"
LINGUAS="sv SE sv_SE en"
MAKEOPTS="-j5"
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://192.168.42.254/gentoo-portage"
USE="3dnow X aalib acl alsa amd64 bash-completion berkdb bzip2 cjk cli cracklib crypt cups dbus debug dri emacs exif ffmpeg firefox fortran gdbm gif glitz gpm gtk iconv ipv6 isdnlog java5 java6 jpeg jpeg2k latex lcms midi mmx mmxext mp3 mplayer mudflap multilib ncurses nls nptl nptlonly ogg opengl openmp pam paste64 pcre perl png pppd python readline reflection session spell spl sse sse2 ssl startup-notification svg tcpd threads tiff truetype unicode wmf xml xorg xpm xv zeroconf zlib zsh-completion" ALSA_CARDS="hda-intel" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter 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 auth_digest ident imagemap log_forensic" CAMERAS="canon ptp2" ELIBC="glibc" INPUT_DEVICES="mouse keyboard" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="sv SE sv_SE en" USERLAND="GNU" VIDEO_CARDS="nvidia"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LANG, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 40 David Sveningsson 2008-07-27 22:39:33 UTC
Updating the fix to include sun-jdk-1.6.0.07 solves the problem for me.
Comment 41 David Sveningsson 2008-07-27 22:41:41 UTC
Created attachment 161501 [details]
updated fix
Comment 42 Albert Zeyer 2008-09-03 11:34:29 UTC
Some hints by Theuns Cloete which received me by mail:

Hi,

I had the same problem discussed here:
http://bugs.gentoo.org/show_bug.cgi?id=215150 except that I needed
more exclusions:

VM_ARGS="${VM_ARGS}
-XX:CompileCommand=exclude,org/eclipse/core/internal/dtree/DataTreeNode,forwardDeltaWith
-XX:CompileCommand=exclude,org/eclipse/jdt/internal/compiler/lookup/ParameterizedTypeBinding,<init>
-XX:CompileCommand=exclude,org/eclipse/jdt/internal/compiler/lookup/ParameterizedMethodBinding,<init>"

I then read http://java.sun.com/javase/6/webnotes/trouble/TSG-VM/html/gbyzo.html
which states that one can run the VM with the -client argument.

Therefore, in /etc/eclipserc or $HOME/.gentoo/.eclipserc add:
VM_ARGS="${VM_ARGS} -client"

And run Eclipse in the normal way.

Alternatively, the /usr/bin/eclipse-3.4 script can be updated to use
the -client argument, although it might give slower performance than
with -server

Hope this helps
-- 
Theuns Cloete
Comment 43 Albert Zeyer 2008-09-03 16:06:28 UTC
Again a hint I received via mail from Wiehann Matthysen:


Hallo,

I found a fix for the eclipse-3.4 bug as discussed in 
http://bugs.gentoo.org/show_bug.cgi?id=215150.
I modified my path environment variable to only point to the latest java 
libraries and I also explicitly specified
the virtual machine with the -vm command line argument.

### Script to call eclipse-3.4 ###
#!/bin/bash
NEW_PATH=/usr/kde/3.5/bin:/usr/local/bin:/usr/bin:/bin:/opt/bin:/opt/sun-jdk-1.6.0.07/bin:/opt/sun-jdk-1.6.0.07/jre/bin:/opt/sun-jdk-1.6.0.07/jre/javaws:/usr/qt/3/bin
export PATH=$NEW_PATH
eclipse-3.4 -vm `java-config-2 -o`/bin -Xms256m -Xmx1000m

This seems to work on a couple of machines that I tested on.

Regards

Wiehann Matthysen
Comment 44 eaglex 2008-10-09 16:09:38 UTC
I'm not sure if this is going to help, but this bug appeared for me only after I added another GB of ram to my machine (totaling 2GB). If I remove that extra GB, all is well again. 

And no, the ram is not faulty.
Comment 45 Hanno Zysik (geki) 2008-10-15 08:52:33 UTC
JFYI, jdk6u10 build26 has the fix, see:
http://bugs.sun.com/view_bug.do?bug_id=6712328

The experimental rc2(build32) ebuild hidden as beta32 can be found here:
https://overlays.gentoo.org/proj/java/export/7091/java-experimental/dev-java/sun-jdk/sun-jdk-1.6.0.10_beta32.ebuild
Comment 46 Jean-Noël Rivasseau (RETIRED) gentoo-dev 2008-12-20 19:30:45 UTC
Closing now that sun-jdk-1.6.0.10+ is stable.