Bug 13943 - Eclipse crashes when doing a "rebuild all"
Summary: Eclipse crashes when doing a "rebuild all"
Status: RESOLVED WONTFIX
Alias: None
Product: JDT
Classification: Eclipse Project
Component: Core (show other bugs)
Version: 2.0   Edit
Hardware: Other Linux-Motif
: P3 normal (vote)
Target Milestone: 2.0 M6   Edit
Assignee: Philipe Mulet CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2002-04-16 16:48 EDT by Jared Burns CLA
Modified: 2002-05-01 17:55 EDT (History)
1 user (show)

See Also:


Attachments
javacore.txt - the java core file generated when the VM crashes (23.51 KB, text/plain)
2002-04-16 16:49 EDT, Jared Burns CLA
no flags Details
javacore.20020416.171350.948.txt (8.31 KB, text/plain)
2002-04-16 18:07 EDT, Jed Anderson CLA
no flags Details
javacore.20020417.174216.1248.txt product of running test with -classic arg on Win2k (8.32 KB, text/plain)
2002-04-17 18:30 EDT, Jed Anderson CLA
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Jared Burns CLA 2002-04-16 16:48:48 EDT
Build 20020416
Linux-Motif
IBM 1.3.1 VM

This started with the 20020414 build. I created a workspace and all was going
well for almost two days. Then I chose to do a "rebuild all" for the first time
and Eclipse completely vanished out of nowhere. The bug has continued with the
20020416 build.

Every single time I select "rebuild all" on IBM 1.3.1 Eclipse completely dies.
I've verified that this doesn't happen on JDK 1.4.
Comment 1 Jared Burns CLA 2002-04-16 16:49:29 EDT
Created attachment 620 [details]
javacore.txt - the java core file generated when the VM crashes
Comment 2 Jed Anderson CLA 2002-04-16 18:05:31 EDT
This also occurs on Win2k with IBM JDK 1.3.1.

Comment 3 Jed Anderson CLA 2002-04-16 18:07:28 EDT
Created attachment 622 [details]
javacore.20020416.171350.948.txt
Comment 4 Jed Anderson CLA 2002-04-16 18:18:02 EDT
When I try this with Sun's 1.4.1 Beta VM, I get the following printout to the
console, but the workspace does come up.

Unable to restore mru list - cannot instantiate input element: org.eclipse.jdt.u
i.ClassFileEditorInputFactory
Unable to restore mru list - cannot instantiate input element: org.eclipse.jdt.u
i.ClassFileEditorInputFactory
Workspace zip available upon request (~20M).
Comment 5 Philipe Mulet CLA 2002-04-17 04:36:15 EDT
Could you make your win workspace available to us for reproducing this defect ?
Comment 6 Philipe Mulet CLA 2002-04-17 09:32:30 EDT
Can you also try to reproduce on IBM jre 1.3.1 with jit disabled ?
Comment 7 Jed Anderson CLA 2002-04-17 18:29:00 EDT
I ran with the -classic argument and encountered a crash.  The following is what
was printed to the console.

A dialog came up that said:

The instruction at "0x71b57acf" referenced memory at "0x0e6bfb70". The memory
could not be "read".

--- dump ---

Unable to restore mru list - cannot instantiate input element: org.eclipse.jdt.u
i.ClassFileEditorInputFactory
Unable to restore mru list - cannot instantiate input element: org.eclipse.jdt.u
i.ClassFileEditorInputFactory
java.lang.ClassCastException
        at org.eclipse.jdt.internal.core.search.indexing.AbstractIndexer.addSupe
rTypeReference(AbstractIndexer.java(Compiled Code))
        at org.eclipse.jdt.internal.core.search.indexing.AbstractIndexer.addSupe
rTypeReference(AbstractIndexer.java(Compiled Code))
        at org.eclipse.jdt.internal.core.search.indexing.AbstractIndexer.addSupe
rTypeReference(AbstractIndexer.java(Compiled Code))
        at org.eclipse.jdt.internal.core.search.indexing.AbstractIndexer.addSupe
rTypeReference(AbstractIndexer.java(Compiled Code))
        at org.eclipse.jdt.internal.core.search.indexing.AbstractIndexer.addClas
sDeclaration(AbstractIndexer.java:26)
        at org.eclipse.jdt.internal.core.search.indexing.BinaryIndexer.indexClas
sFile(BinaryIndexer.java(Compiled Code))
        at org.eclipse.jdt.internal.core.search.indexing.BinaryIndexer.indexFile
(BinaryIndexer.java:513)
        at org.eclipse.jdt.internal.core.search.indexing.AbstractIndexer.index(A
bstractIndexer.java:558)
        at org.eclipse.jdt.internal.core.index.impl.Index.add(Index.java:88)
        at org.eclipse.jdt.internal.core.search.indexing.AddJarFileToIndex.execu
te(AddJarFileToIndex.java:161)
        at org.eclipse.jdt.internal.core.search.processing.JobManager.run(JobMan
ager.java:298)
        at java.lang.Thread.run(Thread.java:512)
Writing Java core file ....
Written Java core to C:\eclipse0416\eclipse\javacore.20020417.174216.1248.txt
Comment 8 Jed Anderson CLA 2002-04-17 18:30:42 EDT
Created attachment 657 [details]
javacore.20020417.174216.1248.txt product of running test with -classic arg on Win2k
Comment 9 Philipe Mulet CLA 2002-04-18 07:49:31 EDT
In order to disable the jit run with "-Djava.compiler=false" argument.
Comment 10 Jed Anderson CLA 2002-04-18 12:51:58 EDT
Thanks for the tip on -Djava.compiler=false.

When I start Eclipse with "-Djava.compiler=false" the workbench comes up after 9
minutes.  The second time I start Eclipse it takes ~30 seconds.  I assume the
JDT core was reindexing (which is slow in interpreted mode).

I think the 04/16/02 18:07 java core file has a pointer to where the JIT code
fails in JDT Core code.  Maybe we could workaround this while IBM fixes the JIT
compiler.
Comment 11 Philipe Mulet CLA 2002-04-19 08:49:32 EDT
We are precisely working on improving the scenario when we silently handled 
such exception in SourceFile#getContents (used to ignore the issue and answer 
empty contents instead) to now stop the ongoing build process.

This could indeed change the JIT behavior, unclear...

Comment 12 Philipe Mulet CLA 2002-04-25 04:59:28 EDT
Closing as a JIT bug.
Comment 13 Jed Anderson CLA 2002-05-01 17:55:45 EDT
Do you want me to run this test with the new IBM JRE 1.3.1?