FC 5 .18 kernel: testMultiThreadedStoppedAttached(frysk.proc.TestProcStopped)junit.framework.AssertionFailedError: event loop run explictly stopped (assertSendAddCloneWaitForAcks (Sig_USR1,Sig_USR2)) 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.assertSendAddCloneWaitForAcks(TestRunner) at frysk.proc.TestLib$AckProcess.<init>(TestRunner) at frysk.proc.TestLib$AttachedAckProcess.<init>(TestRunner) at frysk.proc.TestProcStopped.testMultiThreadedStoppedAttached(TestRunner) at frysk.junit.Runner.runCases(TestRunner) at frysk.junit.Runner.runArchCases(TestRunner) at frysk.junit.Runner.runTestCases(TestRunner) at TestRunner.main(TestRunner)
This is a utrace bug, block on FC 6, not FC 5.
*** Bug 3485 has been marked as a duplicate of this bug. ***
Running just testMultiThreadedStoppedAttached in isolation leads to failure (but does take a few repeated test runs).
Created attachment 1439 [details] Full log of the test case from when it (finally) fails.
Looking at the log, it appears that the second cloned thread (14435) is never continued after its initial stop, and that the initial stop comes early - before the clone event. 26-Nov-06 5:32:23 PM frysk.sys.Wait waitAllNoHang FINE: frysk.sys.Wait pid 14435 status 0x137f WIFSTOPPED 19 (Stopped (signal)) 26-Nov-06 5:32:23 PM frysk.sys.Wait waitAllNoHang FINE: frysk.sys.Wait pid 14433 status 0x3057f WIFSTOPPED/CLONE 5 (Trace/breakpoint trap)
waitpid stop event for new thread arriving before the corresponding clone. Index: frysk-core/frysk/proc/ChangeLog 2006-11-26 Andrew Cagney <cagney@redhat.com> * LinuxHost.java (PollWaitOnSigChild.waitObserver.cloneEvent): Call attemptDeliveringFsckedKernelEvents to force re-delivery of any stray waitpid events. (attemptDeliveringFsckedKernelEvents): Add more logging.