Bug 2761 - Race condition in frysk-core.
Summary: Race condition in frysk-core.
Status: NEW
Alias: None
Product: frysk
Classification: Unclassified
Component: general (show other bugs)
Version: unspecified
: P2 normal
Target Milestone: ---
Assignee: Unassigned
Depends on:
Blocks: 1553
  Show dependency treegraph
Reported: 2006-06-13 15:02 UTC by Nurdin Premji
Modified: 2006-12-12 16:26 UTC (History)
0 users

See Also:
Last reconfirmed:


Note You need to log in before you can comment on or make changes to this bug.
Description Nurdin Premji 2006-06-13 15:02:27 UTC
Every other time I run a test case I created it dies with the error:
Test is in frysk-core frysk.proc.TestOffspringObserver

{frysk.proc.LinuxTask@5cc720,pid=6403,tid=6403,state=attaching} in state
"attaching" did not handle handleSignaledEvent
   at frysk.proc.State.unhandled(TestRunner)
   at frysk.proc.TaskState.handleSignaledEvent(TestRunner)
   at frysk.proc.Task.processSignaledEvent(TestRunner)
   at frysk.proc.LinuxHost$PollWaitOnSigChld$2.stopped(TestRunner)
   at frysk.sys.Wait.waitAllNoHang(TestRunner)
   at frysk.proc.LinuxHost$PollWaitOnSigChld.execute(TestRunner)
   at frysk.event.EventLoop.runEventLoop(TestRunner)
   at frysk.event.EventLoop.runPolling(TestRunner)
   at frysk.proc.TestLib.assertRunUntilStop(TestRunner)
   at frysk.proc.TestLib.assertRunUntilStop(TestRunner)
   at frysk.proc.TestLib$AckHandler.assertAwait(TestRunner)
   at frysk.proc.TestLib$AckHandler.await(TestRunner)
   at frysk.proc.TestLib$AckProcess.spawn(TestRunner)
   at frysk.proc.TestLib$AckProcess.addFork(TestRunner)
   at frysk.proc.TestOffspringObserver.testForkThenClone(TestRunner)
   at frysk.junit.Runner.<init>(TestRunner)
   at TestRunner.main(TestRunner)
Comment 1 Nurdin Premji 2006-12-12 16:26:26 UTC
This testcase was removed from the test suite since the ProcTasksObserver
(previously OffspringObserver) is only supposed to observe clone events.

In order to be notified of any possible Offspring a TaskObserver must be created
that implements both Forked and Cloned and this observer should be added to each
thread of a process (probably with a ProcBlockAction) the observer's
updateXXXChild (where XXX is either Forked or Cloned) should add the observer to
the child as well.