Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 52263 - First launch of eclipse-sdk-3.0.0_pre8-r3 crashes
Summary: First launch of eclipse-sdk-3.0.0_pre8-r3 crashes
Status: RESOLVED NEEDINFO
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Development (show other bugs)
Hardware: x86 Linux
: High normal (vote)
Assignee: Karl Trygve Kalleberg (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-05-28 07:27 UTC by Alan Schmitt
Modified: 2004-08-01 12:24 UTC (History)
0 users

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


Attachments
error log of eclipse crash (hs_err_pid22840.log,18.42 KB, text/plain)
2004-05-28 07:30 UTC, Alan Schmitt
Details
modified launcher (eclipse-2,1.58 KB, text/plain)
2004-08-01 12:24 UTC, Dan Clemmensen
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Alan Schmitt 2004-05-28 07:27:51 UTC
After installing eclipse-sdk-3.0.0_pre8-r3, the first launch results in a crash (this always occurs when the ".eclipse" directory is not present)

Reproducible: Always
Steps to Reproduce:
1. rm -rf ~/.eclipse
2. eclipse-3
3.

Actual Results:  
Eclipse crashes

Expected Results:  
Eclipse should start

I'm using blackdown-jdk 1.4.1
The error does not occur for the second launch (at this point the .eclipse dir
exist). Removing the .eclipse directory triggers the crash again.

The window that appears at the crash says:
"JVM terminated. Exit code=1
/opt/blackdown-jdk-1.4.1/bin/java
-cp /usr/lib/eclipse-3/startup.jar org.eclipse.core.launcher.Main
-os linux
-ws gtk
-arch x86
-showsplash /usr/lib/eclipse-3/eclipse-gtk -showsplash 600
-exitdata /usr/lib/eclipse-3/eclipse-gtk -exitdata 4b00000a
-vm /opt/blackdown-jdk-1.4.1/bin/java
-vmargs
-cp /usr/lib/eclipse-3/startup.jar org.eclipse.core.launcher.Main"

The terminal has the additional dump that I attach.
Comment 1 Alan Schmitt 2004-05-28 07:30:53 UTC
Created attachment 32205 [details]
error log of eclipse crash

This is the log dumped by eclipse when it crashes.
Comment 2 Karl Trygve Kalleberg (RETIRED) gentoo-dev 2004-05-28 17:05:34 UTC
I cannot reproduce this.

I have compiled my eclipse-sdk-3.0.0_pre8-r3 with both blackdown-jdk and
sun-jdk, and I have run it on blackdown-jdk irrespective of which VM was
used, but I cannot reproduce your problem.

I did see similar behaviour with M9, though, but that was a result of
insufficient disk space at compilation time, which was not caught by the
eclipse build process.

I need to know
1) which VM you used to compile eclipse with
2) which USE flags did you have
3) did you compile with jikes
Comment 3 Alan Schmitt 2004-05-28 23:28:25 UTC
I did a few more tests (every time with no .eclipse, simulating the first start):

- compile M8 and run M8 with blackdown 1.4.1 -> crashes
- compile M9 and run M9 with blackdown 1.4.1 -> crashes (to finish compilation, I had to kill the javadoc process after a while)
- compile M9 with sun 1.4.2 and run with blackdown 1.4.1 -> crashes
- compile M9 and run M9 with sun -> works

My USE flags:
dev-util/eclipse-sdk-3.0.0_pre9  +gnome +gtk -jikes -kde -motif -mozilla

I did not use jikes
Comment 4 Dan Clemmensen 2004-08-01 12:24:47 UTC
Created attachment 36596 [details]
modified launcher

I encountered this same bug and did some research on the net. The bug is not an
eclipse bug. It happens when Java loads the wrong zip library. Look at the
top of the attachment provided by Alan in "Additional comment #1" below.

The workaround for this is to force the correct library usage. I did this by
modifying /usr/bin/eclipse-2, following a (slightly adapted) recipe from
a debian forum. Look at the bottom of the attached file. It might be better to
derive JAVA_HOME from the location of the Java binary, but I'm not a true shell
script hacker.