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 197328 - NoSuchElementException in Gdb$Tap
Summary: NoSuchElementException in Gdb$Tap
Status: RESOLVED FIXED
Alias: None
Product: cnd
Classification: Unclassified
Component: Debugger (show other bugs)
Version: 7.0
Hardware: All All
: P3 normal (vote)
Assignee: Egor Ushakov
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-04-01 12:24 UTC by Egor Ushakov
Modified: 2011-06-02 21:05 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Egor Ushakov 2011-04-01 12:24:31 UTC
sometimes happens in tests:
java.util.NoSuchElementException
	at java.util.LinkedList.remove(LinkedList.java:788)
	at java.util.LinkedList.removeFirst(LinkedList.java:134)
	at org.netbeans.modules.cnd.debugger.gdb2.Gdb$Tap.dispatchInterceptedLines(Gdb.java:1037)
	at org.netbeans.modules.cnd.debugger.gdb2.Gdb$Tap.putChars(Gdb.java:821)
	at org.netbeans.lib.terminalemulator.Term.putChars(Term.java:3184)
	at org.netbeans.modules.cnd.debugger.common2.debugger.NativeDebuggerImpl.preKill(NativeDebuggerImpl.java:1107)
	at org.netbeans.modules.cnd.debugger.gdb2.GdbDebuggerImpl.kill(GdbDebuggerImpl.java:615)
	at org.netbeans.modules.cnd.debugger.gdb2.GdbDebuggerImpl$2.onExit(GdbDebuggerImpl.java:700)
	at org.netbeans.modules.cnd.debugger.gdb2.mi.MICommandManager.dispatch(MICommandManager.java:155)
	at org.netbeans.modules.cnd.debugger.gdb2.mi.MIProxy.dispatch(MIProxy.java:175)
	at org.netbeans.modules.cnd.debugger.gdb2.Gdb$MyMIProxy.dispatch(Gdb.java:1063)
	at org.netbeans.modules.cnd.debugger.gdb2.mi.MIProxy.result(MIProxy.java:180)
	at org.netbeans.modules.cnd.debugger.gdb2.mi.MIProxy.processLine(MIProxy.java:144)
	at org.netbeans.modules.cnd.debugger.gdb2.Gdb$Tap$3.run(Gdb.java:1041)
	at org.openide.util.RequestProcessor$Task.run(RequestProcessor.java:1424)
Comment 1 Egor Ushakov 2011-04-01 12:25:40 UTC
this exception does not allow gdb to be killed and gdb process may remain alive after session finish
Comment 2 Alexander Pepin 2011-04-25 09:52:58 UTC
Sounds dangerous, please investigate (see also bug #196916).
Comment 3 Egor Ushakov 2011-06-01 11:58:08 UTC
fixed in:
http://hg.netbeans.org/releases/rev/a28e9807cb04
Comment 4 Quality Engineering 2011-06-02 21:05:30 UTC
Integrated into 'main-golden', will be available in build *201106021001* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)
Changeset: http://hg.netbeans.org/main/rev/c7bc085736e8
User: Egor Ushakov <gorrus@netbeans.org>
Log: fixed #197328 (NoSuchElementException in Gdb$Tap)
(transplanted from a28e9807cb04d2d5b5ce93b577037a39106bd3b4)