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 270947 - ArrayIndexOutOfBoundsException: -1
Summary: ArrayIndexOutOfBoundsException: -1
Status: NEW
Alias: None
Product: cnd
Classification: Unclassified
Component: Debugger (show other bugs)
Version: 8.2
Hardware: All All
: P3 normal (vote)
Assignee: Maria Tishkova
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2017-06-23 14:28 UTC by mne
Modified: 2017-06-23 14:28 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter: 229530


Attachments
stacktrace (1.73 KB, text/plain)
2017-06-23 14:28 UTC, mne
Details

Note You need to log in before you can comment on or make changes to this bug.
Description mne 2017-06-23 14:28:44 UTC
Build: NetBeans IDE 8.2 (Build 201705191307)
VM: Java HotSpot(TM) 64-Bit Server VM, 25.131-b11, Java(TM) SE Runtime Environment, 1.8.0_131-b11
OS: Linux

User Comments:
mne: I was debugging a preety complex C++ projects with templates. 

I think the problem relates with the Auto variables being displayed (if they are hidden then it doesn't reproduces) and that some frames in the stack doesn't have debug symbols (for instance libstdc++.so). The ui behaves like "Continue" was pressed and it hangs. After hitting the "Terminate" butten then a error window is displayed with various messages. Here are two examples:
Two messages examples:
--8<
The program is not being run.
The program is not being run.
The program is not being run.
The program is not being run.
>8--

and

--8<
The program is not being run.
No registers.
No registers.
No registers.
>8--




Stacktrace: 
java.lang.ArrayIndexOutOfBoundsException: -1
   at java.util.concurrent.CopyOnWriteArrayList.get(CopyOnWriteArrayList.java:387)
   at java.util.concurrent.CopyOnWriteArrayList.remove(CopyOnWriteArrayList.java:494)
   at org.netbeans.modules.cnd.debugger.common2.debugger.breakpoints.NativeBreakpoint.removeChild(NativeBreakpoint.java:530)
   at org.netbeans.modules.cnd.debugger.common2.debugger.breakpoints.NativeBreakpoint.primDelete(NativeBreakpoint.java:1751)
   at org.netbeans.modules.cnd.debugger.common2.debugger.breakpoints.BreakpointManager.deleteHandler(BreakpointManager.java:1487)
   at org.netbeans.modules.cnd.debugger.common2.debugger.NativeDebuggerImpl.preKill(NativeDebuggerImpl.java:1280)
Comment 1 mne 2017-06-23 14:28:46 UTC
Created attachment 164612 [details]
stacktrace