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 195534 - Exception is thrown when attaching gdb to a running process
Summary: Exception is thrown when attaching gdb to a running process
Status: RESOLVED DUPLICATE of bug 195269
Alias: None
Product: cnd
Classification: Unclassified
Component: Debugger (show other bugs)
Version: 7.0
Hardware: PC Solaris
: P3 normal (vote)
Assignee: Egor Ushakov
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-02-16 00:42 UTC by Ann Rice
Modified: 2011-02-16 12:28 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 Ann Rice 2011-02-16 00:42:08 UTC
When I start the Quote project running and then attach the gdb debugger to it, I get the following exceptions:

java.lang.IllegalStateException: matchOffset=7445 > docViewEndOffset=7443
docView:
DV@01763d58#444:<0,7443>, WxH:176.0x8436.0; incomingMod=true; lengthyAtomicEdit=0
Doc: NbEditorDocument@01a473fb, Length=7442, Version=3, StreamDesc:org.netbeans.modules.cnd.asm.core.dataobjects.AsmDataObject@1d95a9d[AbstractFileObject@172be65[disasm.s]]
    [  0]: PV@00ef5bbe#3:<0,3> Y=0.0(R0.0) "()\n", WxH:24.0x19.0
        [0]: HV@01b5810f#0:<0,1> X=0.0(R0.0) "(" L=[0#2]<0>;x=0.0;fC=<NULL>;bC=<NULL>
        [1]: HV@012c1219#0:<1,2> X=8.0(R8.0) ")" L=[1#2]<1>;x=8.0;fC=<NULL>;bC=<NULL>
        [2]: NV@00585926#0:<2,3> X=16.0(R16.0) "\n"
    [  1]: PV@00705706#7:<3,25> Y=19.0(R19.0) "+0: jae...f3\n", WxH:176.0x19.0
        [0]: HV@0044d839#0:<3,4> X=0.0(R0.0) "+" L=TLc[]:1;W=8.0
        [1]: HV@01cfa0fe#0:<4,6> X=8.0(R8.0) "0:" L=TLc[]:2;W=16.0
        [2]: HV@00528ddb#0:<6,7> X=24.0(R24.0) " " L=[0#4]<0>;x=0.0;fC=<NULL>;bC=<NULL>
        [3]: HV@01df377e#0:<7,10> X=32.0(R32.0) "jae" L=[1#4]<1>;x=8.0;fC=RGB[0;155;0];bC=<NULL>
        [4]: HV@01b445a5#0:<10,14> X=56.0(R56.0) "    " L=[2#4]<4>;x=32.0;fC=<NULL>;bC=<NULL>
        [5]: HV@00486c1a#0:<14,24> X=88.0(R88.0) "0xfedb87f3" L=[3#4]<8>;x=64.0;fC=<NULL>;bC=<NULL>
        [6]: NV@00b15265#0:<24,25> X=168.0(R168.0) "\n"
    [  2]: PV@01616f0a#9:<25,47> Y=38.0(R38.0) "+0: cmp...ax\n", WxH:176.0x19.0
        [0]: HV@01988d3f#0:<25,26> X=0.0(R0.0) "+" L=TLc[]:1;W=8.0
        [1]: HV@00615213#0:<26,28> X=8.0(R8.0) "0:" L=TLc[]:2;W=16.0
        [2]: HV@01539d30#0:<28,29> X=24.0(R24.0) " " L=[0#6]<0>;x=0.0;fC=<NULL>;bC=<NULL>
        [3]: HV@0074e821#0:<29,32> X=32.0(R32.0) "cmp" L=[1#6]<1>;x=8.0;fC=RGB[0;155;0];bC=<NULL>
        [4]: HV@0133cec2#0:<32,36> X=56.0(R56.0) "    " L=[2#6]<4>;x=32.0;fC=<NULL>;bC=<NULL>
        [5]: HV@004b61bf#0:<36,41> X=88.0(R88.0) "$0x5b" L=[3#6]<8>;x=64.0;fC=RGB[153;51;204];bC=<NULL>
        [6]: HV@00fe45d3#0:<41,42> X=128.0(R128.0) "," L=[4#6]<13>;x=104.0;fC=<NULL>;bC=<NULL>
        [7]: HV@019a3ff4#0:<42,46> X=136.0(R136.0) "%eax" L=[5#6]<14>;x=112.0;fC=RGB[46;146;199];bC=<NULL>
        [8]: NV@01dcc07b#0:<46,47> X=168.0(R168.0) "\n"
    [  3]: PV@01c137c7#7:<47,69> Y=57.0(R57.0) "+0: je ...e0\n", WxH:176.0x19.0
        [0]: HV@01e10cd1#0:<47,48> X=0.0(R0.0) "+" L=TLc[]:1;W=8.0
        [1]: HV@0010a9cd#0:<48,50> X=8.0(R8.0) "0:" L=TLc[]:2;W=16.0
        [2]: HV@01fbd6e4#0:<50,51> X=24.0(R24.0) " " L=[0#4]<0>;x=0.0;fC=<NULL>;bC=<NULL>
        [3]: HV@00d939b5#0:<51,53> X=32.0(R32.0) "je" L=[1#4]<1>;x=8.0;fC=RGB[0;155;0];bC=<NULL>
        [4]: HV@015b9b89#0:<53,58> X=48.0(R48.0) "     " L=[2#4]<3>;x=24.0;fC=<NULL>;bC=<NULL>
        [5]: HV@01404117#0:<58,68> X=88.0(R88.0) "0xfedb87e0" L=[3#4]<8>;x=64.0;fC=<NULL>;bC=<NULL>
        [6]: NV@0171881d#0:<68,69> X=168.0(R168.0) "\n"
    [  4]: PV@00352115#7:<69,91> Y=76.0(R76.0) "+0: jmp...a0\n", WxH:176.0x19.0
        [0]: HV@009f6948#0:<69,70> X=0.0(R0.0) "+" L=TLc[]:1;W=8.0
        [1]: HV@01b932cf#0:<70,72> X=8.0(R8.0) "0:" L=TLc[]:2;W=16.0
        [2]: HV@01b6e314#0:<72,73> X=24.0(R24.0) " " L=[0#4]<0>;x=0.0;fC=<NULL>;bC=<NULL>
        [3]: HV@01f66516#0:<73,76> X=32.0(R32.0) "jmp" L=[1#4]<1>;x=8.0;fC=RGB[0;155;0];bC=<NULL>
        [4]: HV@0166aa35#0:<76,80> X=56.0(R56.0) "    " L=[2#4]<4>;x=32.0;fC=<NULL>;bC=<NULL>
        [5]: HV@0130b195#0:<80,90> X=88.0(R88.0) "0xfed305a0" L=[3#4]<8>;x=64.0;fC=<NULL>;bC=<NULL>
        [6]: NV@01dac981#0:<90,91> X=168.0(R168.0) "\n"
    ...
    [439]: PV@00e3644a#0:<7394,7406> Y=8341.0(R8341.0) "+0: nop...  \n", WxH:0.0x19.0, children=null
    [440]: PV@00cd5aa1#0:<7406,7418> Y=8360.0(R8360.0) "+0: nop...  \n", WxH:0.0x19.0, children=null
    [441]: PV@01f93f03#0:<7418,7430> Y=8379.0(R8379.0) "+0: nop...  \n", WxH:0.0x19.0, children=null
    [442]: PV@0097fec5#0:<7430,7442> Y=8398.0(R8398.0) "+0: nop...  \n", WxH:0.0x19.0, children=null
    [443]: PV@00d739de#0:<7442,7443> Y=8417.0(R8417.0) "\n", WxH:0.0x19.0, children=null
        at org.netbeans.modules.editor.lib2.view.ViewBuilder.createNextView(ViewBuilder.java:385)
        at org.netbeans.modules.editor.lib2.view.ViewBuilder.createViews(ViewBuilder.java:336)
Caused: java.lang.IllegalStateException: ViewBuilder: Error in view creation: prevViewEndOffset=0, matchOffset=7445, docViewEndOffset=7443, lineEndOffset=3, viewRemovalFinished=false
        at org.netbeans.modules.editor.lib2.view.ViewBuilder.createViews(ViewBuilder.java:339)
        at org.netbeans.modules.editor.lib2.view.ViewUpdates.buildViews(ViewUpdates.java:145)
        at org.netbeans.modules.editor.lib2.view.ViewUpdates.insertUpdate(ViewUpdates.java:316)
Caused: java.lang.reflect.InvocationTargetException
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:597)
        at org.openide.util.WeakListenerImpl$ProxyListener.invoke(WeakListenerImpl.java:459)
Caused: java.lang.reflect.UndeclaredThrowableException
        at $Proxy21.insertUpdate(Unknown Source)
        at org.netbeans.lib.editor.util.swing.PriorityDocumentListenerList.insertUpdate(PriorityDocumentListenerList.java:82)
        at javax.swing.text.AbstractDocument.fireInsertUpdate(AbstractDocument.java:185)
        at org.netbeans.editor.BaseDocument.fireInsertUpdate(BaseDocument.java:1667)
        at org.netbeans.editor.BaseDocumentEvent.undo(BaseDocumentEvent.java:293)
        at org.netbeans.editor.GuardedDocumentEvent.undo(GuardedDocumentEvent.java:72)
        at javax.swing.undo.CompoundEdit.undo(CompoundEdit.java:46)
        at org.netbeans.editor.BaseDocument$AtomicCompoundEdit.undo(BaseDocument.java:2220)
        at org.netbeans.editor.BaseDocument.breakAtomicLock(BaseDocument.java:1871)
        at org.netbeans.editor.GuardedDocument.runAtomic(GuardedDocument.java:320)
        at org.openide.text.NbDocument.runAtomic(NbDocument.java:422)
        at org.openide.text.CloneableEditorSupport.clearDocument(CloneableEditorSupport.java:785)
        at org.openide.text.CloneableEditorSupport.access$1700(CloneableEditorSupport.java:133)
        at org.openide.text.CloneableEditorSupport$6$1Query.call(CloneableEditorSupport.java:1719)
        at org.openide.text.CloneableEditorSupport$6.run(CloneableEditorSupport.java:1732)
        at org.netbeans.editor.GuardedDocument.runAtomic(GuardedDocument.java:314)
        at org.openide.text.NbDocument.runAtomic(NbDocument.java:422)
        at org.openide.text.CloneableEditorSupport.reloadDocument(CloneableEditorSupport.java:1682)
        at org.openide.text.CloneableEditorSupport.checkReload(CloneableEditorSupport.java:2316)
        at org.openide.text.CloneableEditorSupport.access$2600(CloneableEditorSupport.java:133)
        at org.openide.text.CloneableEditorSupport$Listener$1.run(CloneableEditorSupport.java:2952)
        at org.netbeans.editor.GuardedDocument.runAtomic(GuardedDocument.java:314)
        at org.openide.text.NbDocument.runAtomic(NbDocument.java:422)
        at org.openide.text.CloneableEditorSupport$Listener$1.run(CloneableEditorSupport.java:2944)
        at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:209)
        at java.awt.EventQueue.dispatchEvent(EventQueue.java:597)
        at org.netbeans.core.TimableEventQueue.dispatchEvent(TimableEventQueue.java:148)
[catch] at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:269)
        at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:184)
        at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:174)
        at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:169)        at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:161)        at java.awt.EventDispatchThread.run(EventDispatchThread.java:122)
Comment 1 soldatov 2011-02-16 08:05:05 UTC
If your are using 201102100500 build, then it is known exception. That build is bad.
Comment 2 Vladimir Voskresensky 2011-02-16 12:28:03 UTC

*** This bug has been marked as a duplicate of bug 195269 ***