Bug 2622

Summary: Attaching fork observer to defunct process crashes Frysk GUI
Product: frysk Reporter: Len DiMaggio <ldimaggi>
Component: generalAssignee: Unassigned <frysk-bugzilla>
Status: NEW ---    
Severity: normal    
Priority: P3    
Version: unspecified   
Target Milestone: ---   
Host: Target:
Build: Last reconfirmed:
Bug Depends on:    
Bug Blocks: 1632    

Description Len DiMaggio 2006-04-28 14:41:55 UTC
Attaching fork observer to defunct process crashes Frysk GUI

The error is:

=========================
Frysk Core has reported the following errors

You fogot to implement this method :D 

frysk.gui.monitor.observers.TaskObserverRoot$1.addFailed (FryskGui)
frysk.proc.ProcState$1.handleAddTasksObserver (FryskGui)
frysk.proc.Proc$8.execute (FryskGui)
frysk.event.EventLoop.runEventLoop (FryskGui)
frysk.event.EventLoop.run (FryskGui)
frysk.gui.Gui$3.run (FryskGui)
java.lang.Thread.run (libgcj.so.7)
Comment 1 Mark Wielaard 2008-03-13 21:29:15 UTC
Still there but slightly different error:

java.lang.RuntimeException: Observer
[frysk.gui.monitor.eventviewer.EventViewer2$5@30697295] is trying to add itself
twice
   at frysk.gui.monitor.GuiObservable.addObserver(FryskGui)
   at frysk.gui.monitor.eventviewer.EventViewer2.addProc(FryskGui)
   at frysk.gui.monitor.eventviewer.EventViewer2.addDebugProcess(FryskGui)
   at frysk.gui.monitor.eventviewer.EventViewer2.access$1(FryskGui)
   at frysk.gui.monitor.eventviewer.EventViewer2$3.update(FryskGui)
   at java.util.Observable.notifyObservers(libgcj.so.8rh)
   at frysk.gui.monitor.GuiObservable.notifyObservers(FryskGui)
   at frysk.gui.monitor.ObservableLinkedList.add(FryskGui)
   at frysk.gui.sessions.Session.addDebugProcess(FryskGui)
   at frysk.gui.druid.CreateFryskSessionDruid.addProcessParent(FryskGui)
   at frysk.gui.druid.CreateFryskSessionDruid.changeGroupState(FryskGui)
   at frysk.gui.druid.CreateFryskSessionDruid.access$1(FryskGui)
   at frysk.gui.druid.CreateFryskSessionDruid$4.buttonEvent(FryskGui)
   at org.gnu.gtk.Button.fireButtonEvent(libgtkjava-2.8.so)
   at org.gnu.gtk.Button.handleClick(libgtkjava-2.8.so)
   at org.gnu.gtk.Gtk.gtk_main(libgtkjava-2.8.so)
   at frysk.gui.Gui.gui(FryskGui)
   at frysk.gui.FryskGui.main(FryskGui)

This is using the test program from bug #2621 and trying to add one of the
defunct test processes in the monitor.