Bug 2278 - testAttachDetachRapidlyCloningMainTask(frysk.proc.TestTaskObserver)java.lang.RuntimeException: Linux{frysk.proc.LinuxTask@14a8050,id={TaskId,23049},state=attaching} in state "attaching" did not handle processTerminatedEvent
Summary: testAttachDetachRapidlyCloningMainTask(frysk.proc.TestTaskObserver)java.lang....
Status: RESOLVED FIXED
Alias: None
Product: frysk
Classification: Unclassified
Component: general (show other bugs)
Version: unspecified
: P1 normal
Target Milestone: ---
Assignee: Stan Cox
URL:
Keywords:
Depends on:
Blocks: 1582
  Show dependency treegraph
 
Reported: 2006-02-06 16:11 UTC by Andrew Cagney
Modified: 2006-11-27 19:48 UTC (History)
1 user (show)

See Also:
Host:
Target:
Build:
Last reconfirmed:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Andrew Cagney 2006-02-06 16:11:35 UTC
1)
testAttachDetachRapidlyCloningMainTask(frysk.proc.TestTaskObserver)java.lang.RuntimeException:
Linux{frysk.proc.LinuxTask@14a8050,id={TaskId,23049},state=attaching} in state
"attaching" did not handle processTerminatedEvent
   at frysk.proc.State.unhandled(java.lang.Object, java.lang.String)
(/home/cagney/native/frysk-0.0.1.2006.02.06/frysk-core/frysk/proc/State.java:77)
   at frysk.proc.TaskState.processTerminatedEvent(frysk.proc.Task, boolean, int)
(/home/cagney/native/frysk-0.0.1.2006.02.06/frysk-core/frysk/proc/TaskState.java:111)
   at frysk.proc.Task$17.execute()
(/home/cagney/native/frysk-0.0.1.2006.02.06/frysk-core/frysk/proc/Task.java:463)
   at frysk.event.EventLoop.runEventLoop(boolean)
(/home/cagney/native/frysk-0.0.1.2006.02.06/frysk-core/frysk/event/EventLoop.java:311)
   at frysk.event.EventLoop.runPolling(long)
(/home/cagney/native/frysk-0.0.1.2006.02.06/frysk-core/frysk/event/EventLoop.java:396)
   at frysk.proc.TestLib.assertRunUntilStop(java.lang.String)
(/home/cagney/native/frysk-0.0.1.2006.02.06/frysk-core/frysk/proc/TestLib.java:87)
   at frysk.proc.TestTaskObserver.attach(frysk.proc.Task[],
frysk.proc.TestTaskObserver$AttachedObserver)
(/home/cagney/native/frysk-0.0.1.2006.02.06/frysk-core/frysk/proc/TestTaskObserver.java:181)
   at frysk.proc.TestTaskObserver.testAttachDetachRapidlyCloningMainTask()
(/home/cagney/native/frysk-0.0.1.2006.02.06/frysk-core/frysk/proc/TestTaskObserver.java:603)
   at frysk.junit.Runner.Runner(java.lang.String[], java.util.Collection)
(/home/cagney/native/frysk-0.0.1.2006.02.06/frysk-imports/frysk/junit/Runner.java:211)
  at TestRunner.main(java.lang.String[])
(/home/cagney/native/frysk-0.0.1.2006.02.06/_build/frysk-core/TestRunner.java:59)
   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 Stan Cox 2006-03-28 16:50:30 UTC
This handles the event and seems to get good test results based on 20 runs of
the test.  However still working on coming up with a specific test.
* TaskState.java (attaching): Handle handleTerminatedEvent.
Comment 2 Stan Cox 2006-05-05 21:58:21 UTC
        * TestTaskTerminateObserver.java (AttachCounter): New class.
        (TerminatingCounter): New class.
        (testTerm): New test.
        * TestLib.java (DetachedAckProcess): New constructor.
Comment 3 Andrew Cagney 2006-11-27 19:48:48 UTC
This test is worried about doing an attach when there's a thread in the 'X'
state - exited but not yet joined.