Bug 236195 - Eclipse crashes on every 3rd of 4th save
Summary: Eclipse crashes on every 3rd of 4th save
Status: RESOLVED NOT_ECLIPSE
Alias: None
Product: Platform
Classification: Eclipse Project
Component: Runtime (show other bugs)
Version: 3.3   Edit
Hardware: PC Linux
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: platform-runtime-inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords: vm
Depends on:
Blocks:
 
Reported: 2008-06-08 14:30 EDT by Szõts Ákos CLA
Modified: 2008-06-16 09:19 EDT (History)
5 users (show)

See Also:


Attachments
It contains 37 Eclipse generated log files. (199.40 KB, application/bzip2)
2008-06-08 14:30 EDT, Szõts Ákos CLA
no flags Details
Eclipse crash log file with Java 1.7.0 (66.42 KB, text/plain)
2008-06-13 06:08 EDT, Szõts Ákos CLA
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Szõts Ákos CLA 2008-06-08 14:30:39 EDT
Created attachment 104110 [details]
It contains 37 Eclipse generated log files.

Build ID: I20070625-1500

Steps To Reproduce:
1. Develop something in CDT (I'm not sure if it a CDT-specific bug)
2. Save. Modify something and save again and again.
3. Eclipse will quit and left a log in my home folder.

I'll attach 37 (!) .log files. I hope, those will help you.

More information:
I'm on openSUSE 11.
uname -a: Linux 2.6.25.4-10-pae #1 SMP

java -version:
java version "1.6.0_06"
Java(TM) SE Runtime Environment (build 1.6.0_06-b02)
Java HotSpot(TM) Server VM (build 10.0-b22, mixed mode)
Comment 1 Benjamin Cabé CLA 2008-06-08 14:38:19 EDT
Could you please try to launch Eclipse with another JVM?

Your crash logs indicate that the JVM used is Java VM: OpenJDK Server VM (1.6.0-b09 mixed mode linux-x86)
 (icedtea).
Comment 2 Remy Suen CLA 2008-06-08 17:58:54 EDT
I went through a few of these, sounds like a duplicate of everyone's favourite bug 214092.
Comment 3 Szõts Ákos CLA 2008-06-09 04:31:03 EDT
As the comments in the fixed bug recommended, I add the following two lines into eclipse.ini:
-XX:CompileCommand=exclude,org/eclipse/core/internal/dtree/DataTreeNode,forwardDeltaWith
-XX:CompileCommand=exclude,org/eclipse/jdt/internal/compiler/lookup/ParameterizedMethodBinding,<init>

But Eclipse freezes as it did before.
I don't know exactly whether the fix has a connection between these two lines but if it relies on these, it doesn't work, I'm afraid of.
So maybe isn't it a duplicate?

Comment 4 Remy Suen CLA 2008-06-09 08:13:48 EDT
(In reply to comment #3)
> But Eclipse freezes as it did before.

You did not mention Eclipse ever freezing in your original comment. You only noted that Eclipse crashed.

When does it freeze? Is it consistently reproducible?
Comment 5 Szõts Ákos CLA 2008-06-09 08:27:13 EDT
I'm sorry, I meant Eclipse crashes, not freezes.

After a crash it shows a dialogue with these parameters:

JVM terminated. Exit code=1
/usr/lib/jvm/java-1.6.0-sun-1.6.0.u6/jre/bin/java
-jar /usr/share/eclipse/./plugins/org.eclipse.equinox.launcher_1.0.0.v20070606.jar
-os linux
-ws gtk
-arch x86
-showsplash
-launcher /usr/lib/eclipse/eclipse
-name Eclipse
--launcher.library /usr/lib/eclipse/plugins/org.eclipse.equinox.launcher.gtk.linux.x86_1.0.0.v20070606/eclipse_1017a.so
-startup /usr/share/eclipse/./plugins/org.eclipse.equinox.launcher_1.0.0.v20070606.jar
-exitdata 18b8007
-vm /usr/lib/jvm/java-1.6.0-sun-1.6.0.u6/jre/bin/java
-vmargs
-jar /usr/share/eclipse/./plugins/org.eclipse.equinox.launcher_1.0.0.v20070606.jar 

It doesn't contain the 2 "-XX:CompileCommand=" lines (don't know if it is an error).
Comment 6 Remy Suen CLA 2008-06-09 08:30:39 EDT
(In reply to comment #5)
> It doesn't contain the 2 "-XX:CompileCommand=" lines (don't know if it is an
> error).

You want those lines _after_ the -vm argument in the eclipse.ini. Also taking care that it has to be on its own line. Alternatively, I could also suggest trying to start Eclipse with a Java 5 JRE. That should also prevent this bug as it is a problem with the Java 6 line.
Comment 7 John Arthorne CLA 2008-06-09 10:28:51 EDT
Remy, is there a reason you made this bug viewable by committers only?
Comment 8 Remy Suen CLA 2008-06-09 10:33:12 EDT
(In reply to comment #7)
> Remy, is there a reason you made this bug viewable by committers only?

I think I might've been tabbing around and accidentally hit the space bar while focus was on the checkbox or I might've clicked it by mistake. No, this was not intentional.

Please remove it if you agree that there is no reason for this to be hidden, John.
Comment 9 Remy Suen CLA 2008-06-09 10:34:56 EDT
(In reply to comment #6)
> You want those lines _after_ the -vm argument in the eclipse.ini. Also taking
> care that it has to be on its own line. Alternatively, I could also suggest
> trying to start Eclipse with a Java 5 JRE. That should also prevent this bug as
> it is a problem with the Java 6 line.

Sorry, this should be _after_ the -vmargs argument. Are you following the sample config file in bug 214092 comment 13?
Comment 10 Andrew Niefer CLA 2008-06-09 10:54:44 EDT
Remy, did you intend to check the security advisory box?  Or am I missing something here that makes this a security issue?
Comment 11 Andrew Niefer CLA 2008-06-09 10:56:10 EDT
(In reply to comment #10)
> Remy, did you intend to check the security advisory box?  Or am I missing
> something here that makes this a security issue?
> 
Sorry :)  I should have refreshed the bug to see this asked and answered. 
Comment 12 Szõts Ákos CLA 2008-06-13 06:08:24 EDT
Created attachment 104835 [details]
Eclipse crash log file with Java 1.7.0

I installed the newest Java:
java version "1.7.0"
IcedTea Runtime Environment (build 1.7.0-b24)
IcedTea Server VM (build 1.7.0-b24, mixed mode)

But nothing changed.
I'll attach the generated log file.
Comment 13 Remy Suen CLA 2008-06-13 08:14:20 EDT
(In reply to comment #12)
> Created an attachment (id=104835) [details]
> Eclipse crash log file with Java 1.7.0
> 
> I installed the newest Java:
> java version "1.7.0"
> IcedTea Runtime Environment (build 1.7.0-b24)
> IcedTea Server VM (build 1.7.0-b24, mixed mode)
> 
> But nothing changed.
> I'll attach the generated log file.

I see two potential problems here, a) this is an IcedTea problem and you need to talk to them about this or b) your edited eclipse.ini is incorrect for whatever reasons.

I strongly recommend you try to run Eclipse with Java 5 from Sun (which will _not_ require the -XX workarounds) and see the behaviour of that.
Comment 14 Szõts Ákos CLA 2008-06-13 09:27:41 EDT
I switched the JVM (update-alternatives --config java) to /usr/lib/jvm/jre-1.5.0-sun/bin/java, but in that case Eclipse doesn't want to start. It crashes with the following:

JVM terminated. Exit code=1
/usr/lib/jvm/java-1.5.0-sun-1.5.0_update15/jre/bin/java
-jar /usr/share/eclipse/./plugins/org.eclipse.equinox.launcher_1.0.0.v20070606.jar
-os linux
-ws gtk
-arch x86
-showsplash
-launcher /usr/lib/eclipse/eclipse
-name Eclipse
--launcher.library /usr/lib/eclipse/plugins/org.eclipse.equinox.launcher.gtk.linux.x86_1.0.0.v20070606/eclipse_1017a.so
-startup /usr/share/eclipse/./plugins/org.eclipse.equinox.launcher_1.0.0.v20070606.jar
-exitdata 307800a
-vm /usr/lib/jvm/java-1.5.0-sun-1.5.0_update15/jre/bin/java
-vmargs
-jar /usr/share/eclipse/./plugins/org.eclipse.equinox.launcher_1.0.0.v20070606.jar 

Then I'd switched back to JVM 1.7.0 and deleted /usr/share/eclipse/eclipse.ini (with all of hack in it).
After a short usage Eclipse crashed.

To sum up, with 1.5.0 Eclipse doesn't start and both with 1.6.0 and 1.7.0 it crashes.
Comment 15 Remy Suen CLA 2008-06-13 16:59:37 EDT
/usr/share? /usr/lib? Are you on Ubuntu? Are you using Ubuntu's eclipse builds?
Comment 16 Szõts Ákos CLA 2008-06-13 17:07:55 EDT
As you(In reply to comment #15)
> /usr/share? /usr/lib? Are you on Ubuntu? Are you using Ubuntu's eclipse builds?
> 

As you can see from my first comment (and from the end of the log files) I'm on openSUSE 11.
Yes, I'm using the following rpm-s:
eclipse-3.3-150
eclipse-archdep-platform-commons-3.3-143
eclipse-archdep-gtk2-3.3-143
eclipse-archdep-scripts-3.3-143
eclipse-archdep-platform-3.3-143
Comment 17 Remy Suen CLA 2008-06-13 17:11:08 EDT
(In reply to comment #16)
> As you can see from my first comment (and from the end of the log files) I'm on
> openSUSE 11.
> Yes, I'm using the following rpm-s:
> eclipse-3.3-150
> eclipse-archdep-platform-commons-3.3-143
> eclipse-archdep-gtk2-3.3-143
> eclipse-archdep-scripts-3.3-143
> eclipse-archdep-platform-3.3-143

Sorry about that. Anyway, can you please try using an Eclipse build from eclipse.org? Please try 3.3.2 or 3.4RC4, thanks.

http://download.eclipse.org/eclipse/downloads/
Comment 18 Szõts Ákos CLA 2008-06-13 17:58:29 EDT
I downloaded Eclipse 3.4.0 RC4 (newer is better for me :), and CDT 5.0.0.
Then I opened my project and saved it a lot of times. Tried to insert and delete lines then save again but nothing special happened :]

So, I couldn't make Eclipse crash, neither with JVM 1.6.0 and 1.7.0!

And I feel it a bit faster, so I like it.
Thank you for the tip.
Comment 19 Remy Suen CLA 2008-06-13 18:00:23 EDT
(In reply to comment #18)
> I downloaded Eclipse 3.4.0 RC4 (newer is better for me :), and CDT 5.0.0.
> Then I opened my project and saved it a lot of times. Tried to insert and
> delete lines then save again but nothing special happened :]
> 
> So, I couldn't make Eclipse crash, neither with JVM 1.6.0 and 1.7.0!

That's odd, did you change the eclipse.ini file to add the workaround? Technically, it should still be crashing on Java 6.

I suggest you file a bug to the SuSE team as I am sure they would like to investigate the crashes.
Comment 20 Szõts Ákos CLA 2008-06-14 04:23:38 EDT
No, I didn't change anything in the .ini file.

I've reported this bug to the Novell team: https://bugzilla.novell.com/show_bug.cgi?id=400366
I hope, they track down what was the error.
Comment 21 John Arthorne CLA 2008-06-16 09:19:31 EDT
Closing as VM error.