Bug 2763

Summary: ConcurrentModificationException thown during datamodel population
Product: frysk Reporter: Phil Muldoon <pmuldoon>
Component: generalAssignee: Unassigned <frysk-bugzilla>
Status: NEW ---    
Severity: normal    
Priority: P1    
Version: unspecified   
Target Milestone: ---   
Host: Target:
Build: Last reconfirmed:
Bug Depends on:    
Bug Blocks: 1582    

Description Phil Muldoon 2006-06-14 01:41:21 UTC
I see this occasionally with 

frysk-gui/frysk/gui/monitor/datamodels/FlatProcObservableLinkedList

Basically the exception below indicates fail-fast iterator is having it's
contract broken *somewhere*. The most likely cause of this is using a fail-fast
iterator to construct a loop:

List bar = new LinkedList();
..
..
Iterator foo = bar.iterator()
while (foo.hasNext())
    bar.remove(foo.next());

In this case the iterator throws the exception due to it's contract being
violated as the collection the iterator is based on is changing due to removal.

java.util.ConcurrentModificationException
   at java.util.HashMap$HashIterator.next(libgcj.so.7)
   at java.util.HashMap.putAllInternal(libgcj.so.7)
   at java.util.HashMap.clone(libgcj.so.7)
   at frysk.proc.LinuxHost$ProcChanges.finit$(LinuxHost.java:90)
   at frysk.proc.LinuxHost$ProcChanges.<init>(LinuxHost.java:1)
   at frysk.proc.LinuxHost.sendrecSelf(LinuxHost.java:323)
   at frysk.proc.Host.getSelf(Host.java:285)
   at frysk.gui.monitor.GuiProc.isOwned(GuiProc.java:165)
   at
frysk.gui.monitor.datamodels.FlatProcObservableLinkedList$ProcCreatedObserver$1.run(FlatProcObservableLinkedList.java:84)
   at org.gnu.glib.CustomEvents.runEvents(libgtkjava-2.8.so)
   at org.gnu.gtk.Gtk.gtk_main(libgtkjava-2.8.so)
   at org.gnu.gtk.Gtk.main(libgtkjava-2.8.so)
   at frysk.gui.Gui.gui(Gui.java:448)
   at frysk.gui.FryskGui.main(FryskGui.java:66)