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.
I don't remember exactly what I did, unfortunately. But the collection NativeDebuggerManager.debuggerStateListeners is not synchronized at all, so we are doomed to get it from time to time. java.util.ConcurrentModificationException at java.util.HashMap$HashIterator.nextNode(HashMap.java:1429) at java.util.HashMap$KeyIterator.next(HashMap.java:1453) at org.netbeans.modules.cnd.debugger.common2.debugger.NativeDebuggerManager.notifyAttached(NativeDebuggerManager.java:2291) at org.netbeans.modules.cnd.debugger.common2.debugger.DebuggerSettingsBridge.noteAttached(DebuggerSettingsBridge.java:491) at org.netbeans.modules.cnd.debugger.gdb2.GdbDebuggerSettingsBridge.noteAttached(GdbDebuggerSettingsBridge.java:172) at org.netbeans.modules.cnd.debugger.gdb2.GdbDebuggerImpl.attachDone(GdbDebuggerImpl.java:947) at org.netbeans.modules.cnd.debugger.gdb2.GdbDebuggerImpl.access$1400(GdbDebuggerImpl.java:141) at org.netbeans.modules.cnd.debugger.gdb2.GdbDebuggerImpl$9.onDone(GdbDebuggerImpl.java:926) at org.netbeans.modules.cnd.debugger.gdb2.mi.MICommandManager.dispatch(MICommandManager.java:194) at org.netbeans.modules.cnd.debugger.gdb2.mi.MIProxy.dispatch(MIProxy.java:188) at org.netbeans.modules.cnd.debugger.gdb2.Gdb$MyMIProxy.dispatch(Gdb.java:697) at org.netbeans.modules.cnd.debugger.gdb2.mi.MIProxy.result(MIProxy.java:193) at org.netbeans.modules.cnd.debugger.gdb2.mi.MIProxy.processLine(MIProxy.java:157) at org.netbeans.modules.cnd.debugger.gdb2.Tap$4.run(Tap.java:327) Caused: java.lang.Exception: when processing line: 14^done at org.netbeans.modules.cnd.debugger.gdb2.Tap$4.run(Tap.java:329) at org.openide.util.RequestProcessor$Task.run(RequestProcessor.java:1443) at org.netbeans.modules.openide.util.GlobalLookup.execute(GlobalLookup.java:68) at org.openide.util.lookup.Lookups.executeWith(Lookups.java:303) at org.openide.util.RequestProcessor$Processor.run(RequestProcessor.java:2058)
Created attachment 156808 [details] Possible fix (designed together with Nikolay)
Fixed in: enum:7c2d6e609d4b The patch proposed has been applied
Integrated into 'main-silver', will be available in build *201510290002* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress) Changeset: http://hg.netbeans.org/main-silver/rev/bbc5be8ce9d2 User: Nikolay Koldunov <henk89@netbeans.org> Log: Fixed #255997 - [mixeddev] ConcurrentModificationException in NativeDebuggerManager.notifyAttached (transplanted from 7c2d6e609d4be84f490a36636ae4e4f85ea67134)
Cannot reproduce the issue in build 20151119.