Bug 81388 - [Binary Parser] An error occured while traversing resource
Summary: [Binary Parser] An error occured while traversing resource
Status: NEW
Alias: None
Product: CDT
Classification: Tools
Component: cdt-core (show other bugs)
Version: 3.0   Edit
Hardware: PC Windows XP
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Project Inbox CLA
QA Contact: Jonah Graham CLA
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-12-16 08:30 EST by Cavit Cahit VURAL CLA
Modified: 2020-09-04 15:20 EDT (History)
0 users

See Also:


Attachments
CDT has problem with this EXE file (44.80 KB, application/octet-stream)
2004-12-18 05:03 EST, Cavit Cahit VURAL CLA
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Cavit Cahit VURAL CLA 2004-12-16 08:30:12 EST
Hi,

I use Eclipse 3.1M3 and CDT RC7 on WinXP SP1 , 3.0Gz,
512MB ram

One of my project  gives an error when i open it and
rebuild it.

Binary Search Thread

An error occured while traversing resource.

I tried to choose different binary parsers but nothing
changed. In my 
other projects, PE Windows Binary Parser is selected
and everythings are ok.

The difference of that project is linking with wsock32
library.


Here is the log file :

!ENTRY org.eclipse.core.resources 4 566 2004-12-16
13:49:30.671
!MESSAGE An error occurred while traversing resources.
!STACK 0
java.lang.ArrayIndexOutOfBoundsException: -1694695938
    at
org.eclipse.cdt.utils.coff.PE.getAttribute(PE.java:493)
    at 
org.eclipse.cdt.utils.coff.parser.PEParser.getBinary(PEParser.java:50)
    at 
org.eclipse.cdt.internal.core.model.CModelManager.createBinaryFile(CModelManager.java:577)
    at 
org.eclipse.cdt.internal.core.model.BinaryRunner.addChildIfBinary(BinaryRunner.java:116)
    at 
org.eclipse.cdt.internal.core.model.BinaryRunner$Visitor.visit(BinaryRunner.java:141)
    at 
org.eclipse.core.internal.resources.Resource$2.visit(Resource.java:108)
    at 
org.eclipse.core.internal.resources.Resource$1.visitElement(Resource.java:55)
    at 
org.eclipse.core.internal.watson.ElementTreeIterator.doIteration(ElementTreeIterator.java:81)
    at 
org.eclipse.core.internal.watson.ElementTreeIterator.doIteration(ElementTreeIterator.java:85)
    at 
org.eclipse.core.internal.watson.ElementTreeIterator.doIteration(ElementTreeIterator.java:85)
    at 
org.eclipse.core.internal.watson.ElementTreeIterator.doIteration(ElementTreeIterator.java:85)
    at 
org.eclipse.core.internal.watson.ElementTreeIterator.doIteration(ElementTreeIterator.java:85)
    at 
org.eclipse.core.internal.watson.ElementTreeIterator.iterate(ElementTreeIterator.java:126)
    at
org.eclipse.core.internal.resources.Resource.accept(Resource.java:65)
    at 
org.eclipse.core.internal.resources.Resource.accept(Resource.java:110)
    at
org.eclipse.core.internal.resources.Resource.accept(Resource.java:85)
    at 
org.eclipse.cdt.internal.core.model.BinaryRunner$1.run(BinaryRunner.java:59)
    at
org.eclipse.core.internal.jobs.Worker.run(Worker.java:66)


CC Vural
Comment 1 Cavit Cahit VURAL CLA 2004-12-16 08:31:22 EST
Compiler is cygwin gcc 3.3.3
Comment 2 Cavit Cahit VURAL CLA 2004-12-18 05:03:37 EST
Created attachment 16749 [details]
CDT has problem with this EXE file
Comment 3 Chris Recoskie CLA 2009-05-07 13:36:28 EDT
Moving to core, as that is where the binary parsers live.