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 269113 - Stable java.lang.ArrayIndexOutOfBoundsException exception on Sparc Solaris in QA tests
Summary: Stable java.lang.ArrayIndexOutOfBoundsException exception on Sparc Solaris in...
Status: RESOLVED DUPLICATE of bug 268301
Alias: None
Product: cnd
Classification: Unclassified
Component: -- Other -- (show other bugs)
Version: Dev
Hardware: Sun Solaris
: P2 normal (vote)
Assignee: Vladimir Voskresensky
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-11-25 09:40 UTC by soldatov
Modified: 2016-12-03 03:04 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
diff (725 bytes, patch)
2016-11-28 16:44 UTC, Vladimir Voskresensky
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description soldatov 2016-11-25 09:40:06 UTC
Stable exception on Sparc Solaris in QA tests (~10 tests). I can't localize bug, but I see such behavior.

Open Project
Clean&Build project
Call Step Into in context menu in Projects tab
==> debugger stopped, empty Navigator tab
Select editor's tab
==> I see exception without stacktrace. In log I see:

INFO [org.netbeans.modules.parsing.impl.indexing.RepositoryUpdater]: Complete indexing of 2 source roots took: 2,780 ms (New or modified files: 11, Deleted files: 0) [Adding listeners took: 11 ms]
INFO [org.netbeans.modules.cnd.discovery.projectimport.ImportProject]: Start fixing of excluded header files for project c++testdbxGUI.breakpoint.FunctionBkptReturn.testFunctionBkptReturn org.netbeans.modules.cnd.modelimpl.csm.core.ProjectImpl @1934200123:1934200123
java.lang.ArrayIndexOutOfBoundsException
java.lang.ArrayIndexOutOfBoundsException
java.lang.ArrayIndexOutOfBoundsException at parsing file /export/hudson/workspace/ss-test-sparc-S11-5/tests/build/test/qa-functional/data/dbxGUI/breakpoint/FunctionBkptReturn/testFunctionBkptReturn/c++test/c++test.cc
SEVERE [org.openide.util.RequestProcessor]: Error in RequestProcessor org.netbeans.modules.cnd.highlight.semantic.SemanticHighlighter$TaskContext
java.lang.ArrayIndexOutOfBoundsException
INFO [org.netbeans.modules.cnd.api.project.NativeProjectRegistry]: Close native project c++testdbxGUI.breakpoint.FunctionBkptReturn.testFunctionBkptReturn /export/hudson/workspace/ss-test-sparc-S11-5/tests/build/test/qa-functional/data/dbxGUI/breakpoint/FunctionBkptReturn/testFunctionBkptReturn/c++testdbxGUI.breakpoint.FunctionBkptReturn.testFunctionBkptReturn
Comment 1 soldatov 2016-11-25 10:12:38 UTC
I can't reproduce exception if I use -J-ea (or -ea in tests) flag.
Comment 2 Alexander Simon 2016-11-28 12:38:36 UTC
Exception from code model parser.
Comment 3 Vladimir Voskresensky 2016-11-28 13:39:51 UTC
(In reply to Alexander Simon from comment #2)
> Exception from code model parser.
How can I see it?
Is it possible to insert here stack trace, please?
Comment 4 Alexander Simon 2016-11-28 13:49:34 UTC
(In reply to Vladimir Voskresensky from comment #3)
> (In reply to Alexander Simon from comment #2)
> > Exception from code model parser.
> How can I see it?
> Is it possible to insert here stack trace, please?

Please search for "at parsing file" in code model and make sure that code prints stack.
Comment 5 Vladimir Voskresensky 2016-11-28 14:09:56 UTC
pushed changeset: 313457:f8321cb00aa7 [release82]  on enum.
Will wait for the stack trace.
Could it be https://netbeans.org/bugzilla/show_bug.cgi?id=268301?
Comment 6 Vladimir Voskresensky 2016-11-28 16:44:34 UTC
Created attachment 163057 [details]
diff
Comment 7 Vladimir Voskresensky 2016-11-28 16:47:03 UTC
I was able to reproduce the messages in log.
It looks like JIT bug.
when apply the attached diff, then I can see a lot of exceptions with empty stack trace info
java.lang.ArrayIndexOutOfBoundsException:null:java.lang.ArrayIndexOutOfBoundsException:null:0 in onID 
java.lang.ArrayIndexOutOfBoundsException:null:java.lang.ArrayIndexOutOfBoundsException:null:0 in onID 
java.lang.ArrayIndexOutOfBoundsException:null:java.lang.ArrayIndexOutOfBoundsException:null:0 in onID 
java.lang.ArrayIndexOutOfBoundsException:null:java.lang.ArrayIndexOutOfBoundsException:null:0 in onID 
java.lang.ArrayIndexOutOfBoundsException:null:java.lang.ArrayIndexOutOfBoundsException:null:0 in onID 
java.lang.ArrayIndexOutOfBoundsException:null:java.lang.ArrayIndexOutOfBoundsException:null:0 in onID 
java.lang.ArrayIndexOutOfBoundsException:null:java.lang.ArrayIndexOutOfBoundsException:null:0 in onID 
java.lang.ArrayIndexOutOfBoundsException:null:java.lang.ArrayIndexOutOfBoundsException:null:0 in onID 
java.lang.ArrayIndexOutOfBoundsException:null:java.lang.ArrayIndexOutOfBoundsException:null:0 in onID 
java.lang.ArrayIndexOutOfBoundsException:null:java.lang.ArrayIndexOutOfBoundsException:null:0 in onID 
java.lang.ArrayIndexOutOfBoundsException:null:java.lang.ArrayIndexOutOfBoundsException:null:0 in onID 
java.lang.ArrayIndexOutOfBoundsException:null:java.lang.ArrayIndexOutOfBoundsException:null:0 in onID 
java.lang.ArrayIndexOutOfBoundsException:null:java.lang.ArrayIndexOutOfBoundsException:null:0 in onID 
java.lang.ArrayIndexOutOfBoundsException:null:java.lang.ArrayIndexOutOfBoundsException:null:0 in onID
Comment 8 Vladimir Voskresensky 2016-11-28 16:47:38 UTC
so this bug is the same as https://netbeans.org/bugzilla/show_bug.cgi?id=268301

I need to change code to workaround Java bug

*** This bug has been marked as a duplicate of bug 268301 ***
Comment 9 Quality Engineering 2016-12-03 03:04:18 UTC
Integrated into 'main-silver', will be available in build *201612030001* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)

Changeset: http://hg.netbeans.org/main-silver/rev/27902794e77e
User: Alexander Simon <alexvsimon@netbeans.org>
Log: investigate Bug #269113 Stable java.lang.ArrayIndexOutOfBoundsException exception on Sparc Solaris in QA tests
- catch exception and print stack.
(transplanted from a4be0009ac984dda23d5faa9fee09d5b4d414394)