Bug 2131

Summary: testAttachDetachRapidlyCloningMainTask(frysk.proc.TestTaskObserver) ...ERROR on rhel-4
Product: frysk Reporter: Andrew Cagney <cagney>
Component: generalAssignee: Andrew Cagney <cagney>
Status: RESOLVED FIXED    
Severity: normal    
Priority: P1    
Version: unspecified   
Target Milestone: ---   
Host: Target:
Build: Last reconfirmed:
Bug Depends on: 2136    
Bug Blocks: 1553, 2004    

Description Andrew Cagney 2006-01-09 20:41:55 UTC
1)
testAttachDetachRapidlyCloningMainTask(frysk.proc.TestTaskObserver)java.lang.RuntimeException:
Linux{frysk.proc.LinuxTask@b2c410,id={TaskId,6658},state=attaching} in state
"attaching" did not handle PerformTerminated
   at frysk.proc.State.unhandled(java.lang.Object, java.lang.String)
(/home/cagney/frysk/frysk-core/frysk/proc/State.java:70)
   at frysk.proc.TaskState.processPerformTerminated(frysk.proc.Task, boolean,
int) (/home/cagney/frysk/frysk-core/frysk/proc/TaskState.java:118)
   at frysk.proc.Task$17.execute()
(/home/cagney/frysk/frysk-core/frysk/proc/Task.java:463)
   at frysk.event.EventLoop.runEventLoop(boolean)
(/home/cagney/frysk/frysk-core/frysk/event/EventLoop.java:311)
   at frysk.event.EventLoop.runPolling(long)
(/home/cagney/frysk/frysk-core/frysk/event/EventLoop.java:396)
   at frysk.proc.TestLib.assertRunUntilStop(java.lang.String)
(/home/cagney/frysk/frysk-core/frysk/proc/TestLib.java:77)
   at frysk.proc.TestTaskObserver.attach(frysk.proc.Task[])
(/home/cagney/frysk/frysk-core/frysk/proc/TestTaskObserver.java:184)
   at frysk.proc.TestTaskObserver.testAttachDetachRapidlyCloningMainTask()
(/home/cagney/frysk/frysk-core/frysk/proc/TestTaskObserver.java:532)
   at TestRunner.main(java.lang.String[])
(/home/cagney/native/frysk-core/TestRunner.java:140)
   at gnu.java.lang.MainThread.call_main() (/usr/lib/libgcj.so.6.0.0)
   at gnu.java.lang.MainThread.run() (/usr/lib/libgcj.so.6.0.0)
Comment 1 Andrew Cagney 2006-01-10 23:10:37 UTC
Index: frysk-core/frysk/proc/ChangeLog
2006-01-10  Andrew Cagney  <cagney@redhat.com>

        * TestTaskObserver.java (attach(Task)): Refactor, creating ...
        (attach(Task,AttachedObserver): New function.
        (testAttachDetachRapidlyCloningMainTask): Add local
        AttachedObserver object that allows failure.
        * ProcState.java: In .Detaching state, handle
        processPerformDeleteObservation; always fail it.