This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 244788 - EOFException when IDE creates project from binary (easy import, Oracle Solaris Studio, static library)
Summary: EOFException when IDE creates project from binary (easy import, Oracle Solari...
Status: VERIFIED FIXED
Alias: None
Product: cnd
Classification: Unclassified
Component: -- Other -- (show other bugs)
Version: 8.0.1
Hardware: PC Solaris
: P3 normal (vote)
Assignee: Alexander Simon
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-05-29 11:10 UTC by soldatov
Modified: 2014-06-06 12:56 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
binary file (30.00 KB, application/octet-stream)
2014-05-29 11:10 UTC, soldatov
Details

Note You need to log in before you can comment on or make changes to this bug.
Description soldatov 2014-05-29 11:10:48 UTC
Created attachment 147499 [details]
binary file

Scenario:
- Select libsources3.a file in Favorites tab
- Drag&Drop into editor
- Create project
- Check log
===>

INFO [org.netbeans.modules.cnd.dwarfdiscovery.provider.DwarfSource]: Exception in file testCreateProject2/sources3/libsources3.a
java.io.EOFException
	at java.io.RandomAccessFile.readFully(RandomAccessFile.java:416)
	at org.netbeans.modules.cnd.dwarfdump.reader.ByteStreamReader.readNumber(ByteStreamReader.java:135)
	at org.netbeans.modules.cnd.dwarfdump.reader.ByteStreamReader.readShort(ByteStreamReader.java:157)
	at org.netbeans.modules.cnd.dwarfdump.section.DwarfNameLookupTableSection.readNameLookupTables(DwarfNameLookupTableSection.java:100)
	at org.netbeans.modules.cnd.dwarfdump.section.DwarfNameLookupTableSection.getNameLookupTables(DwarfNameLookupTableSection.java:78)
	at org.netbeans.modules.cnd.dwarfdump.section.DwarfNameLookupTableSection.getNameLookupTableFor(DwarfNameLookupTableSection.java:146)
	at org.netbeans.modules.cnd.dwarfdump.CompilationUnit.initPubnamesTable(CompilationUnit.java:578)
	at org.netbeans.modules.cnd.dwarfdump.CompilationUnit.getPubnamesTable(CompilationUnit.java:454)
	at org.netbeans.modules.cnd.dwarfdump.CompilationUnit.getTopLevelEntries(CompilationUnit.java:594)
	at org.netbeans.modules.cnd.dwarfdump.CompilationUnit.hasMain(CompilationUnit.java:729)
[catch] at org.netbeans.modules.cnd.dwarfdiscovery.provider.BaseDwarfProvider.sizeComilationUnit(BaseDwarfProvider.java:458)
	at org.netbeans.modules.cnd.dwarfdiscovery.provider.AnalyzeExecutable.canAnalyze(AnalyzeExecutable.java:282)
	at org.netbeans.modules.cnd.discovery.wizard.DiscoveryExtension.isApplicableDwarfExecutable(DiscoveryExtension.java:205)
	at org.netbeans.modules.cnd.discovery.wizard.DiscoveryExtension.isApplicable(DiscoveryExtension.java:147)
	at org.netbeans.modules.cnd.discovery.wizard.DiscoveryExtension.isApplicable(DiscoveryExtension.java:298)
	at org.netbeans.modules.cnd.discovery.projectimport.ImportExecutable$3.run(ImportExecutable.java:282)
	at org.openide.util.RequestProcessor$Task.run(RequestProcessor.java:1423)
	at org.openide.util.RequestProcessor$Processor.run(RequestProcessor.java:2033)
Comment 1 Alexander Simon 2014-05-29 12:21:32 UTC
fixed, change set:
http://hg.netbeans.org/cnd-main/rev/038d5c7b63c0
Comment 2 Quality Engineering 2014-05-30 02:23:00 UTC
Integrated into 'main-silver', will be available in build *201405300001* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)

Changeset: http://hg.netbeans.org/main-silver/rev/038d5c7b63c0
User: Alexander Simon <alexvsimon@netbeans.org>
Log: fixed Bug #244788 EOFException when IDE creates project from binary (easy import, Oracle Solaris Studio, static library)
Comment 3 Quality Engineering 2014-06-04 15:26:18 UTC
Integrated into 'releases/release80', will be available in build *201406041415* or newer. Wait for official and publicly available build.

Changeset: http://hg.netbeans.org/releases/rev/6d748e947022
User: Alexander Simon <alexvsimon@netbeans.org>
Log: fixed Bug #244788 EOFException when IDE creates project from binary (easy import, Oracle Solaris Studio, static library)
(transplanted from 038d5c7b63c0a53211176077d5b61dd2487a6c1c)
Comment 4 soldatov 2014-06-06 12:56:58 UTC
verified in NetBeans IDE 8.0 patch2 (Build 201406041415)