Bug 1554

Summary: Unhandeled state transition: in state "running" did not handle RequestAddObserver
Product: frysk Reporter: Sami Wagiaalla <swagiaal>
Component: generalAssignee: Andrew Cagney <cagney>
Status: RESOLVED FIXED    
Severity: normal CC: pmuldoon, swagiaal
Priority: P1    
Version: unspecified   
Target Milestone: ---   
Host: Target:
Build: Last reconfirmed:
Bug Depends on:    
Bug Blocks: 1553    

Description Sami Wagiaalla 2005-10-26 15:56:36 UTC
using frysk monitor right click, attach to a process
right click on the main thread and add Exiting observer.

The following exception occures:
Exception in thread "Thread-2" java.lang.RuntimeException:
Linux{frysk.proc.LinuxTask@5691320,id={TaskId,2993},proc={frysk.proc.LinuxProc@566e460,id={ProcId,2993},state=running},state=running}
in state "running" did not handle RequestAddObserver
   at frysk.proc.State.unhandled(java.lang.Object, java.lang.String)
(/to/scratch/swagiaal/frysk/frysk-gui/frysk/proc/State.java:70)
   at frysk.proc.TaskState.processRequestAddObserver(frysk.proc.Task,
frysk.proc.TaskObservable, frysk.proc.TaskObserver)
(/to/scratch/swagiaal/frysk/frysk-gui/frysk/proc/TaskState.java:160)
   at frysk.proc.Task$19.execute()
(/to/scratch/swagiaal/frysk/frysk-gui/frysk/proc/Task.java:490)
   at .runEventLoop
(/to/scratch/swagiaal/frysk/frysk-gui/frysk/event/EventLoop.java:290)
   at frysk.event.EventLoop.run()
(/to/scratch/swagiaal/frysk/frysk-gui/frysk/event/EventLoop.java:384)
   at frysk.gui.FryskGui$3.run()
(/to/scratch/swagiaal/frysk/frysk-gui/frysk/gui/FryskGui.java:189)
   at java.lang.Thread.run() (/usr/lib/libgcj.so.6.0.0)
Comment 1 Andrew Cagney 2005-10-26 21:58:41 UTC
ndex: frysk-core/frysk/proc/ChangeLog
2005-10-26  Andrew Cagney  <cagney@redhat.com>

        * TestTaskObserver.java: New.
        * TaskState.java: Handle .processRequestAddObserver in "running"
        state.