This is sources Bugzilla
Bugzilla Version 2.17.5
Bugzilla Bug 3598
  testDetachExec(frysk.proc.TestTaskObserverDetach)junit.framework.AssertionFailedError: stat.state expected:<T> but was:<S> Last modified: 2006-12-05 03:03:38
Bug List: First Last (This bug is not in your list)   Show list      Query page      Enter new bug
Bug#: 3598   Hardware:   Reporter: Nurdin Premji <npremji@redhat.com>
Host: Target: Build:
Product:     Add CC:
Component:   Version:   CC:
Remove selected CCs
Status: RESOLVED   Priority:  
Resolution: FIXED   Severity:  
Assigned To: Andrew Cagney <cagney@redhat.com>   Target Milestone:  
Summary:
Keywords:

Attachment Description Type Created Actions
Create a New Attachment (proposed patch, testcase, etc.) View All

Bug 3598 depends on: 3594 3636 3637 3638 Show dependency tree
Show dependency graph
Bug 3598 blocks: 2104 2654

Additional Comments:


Leave as RESOLVED FIXED
Reopen bug
Mark bug as VERIFIED

View Bug Activity   |   Format For Printing


Description:   Last confirmed: 0000-00-00 00:00 Opened: 2006-11-27 18:19
Happens occassionally

testDetachExec(frysk.proc.TestTaskObserverDetach)junit.framework.AssertionFailedError:
stat.state expected:<T> but was:<S>
   at frysk.proc.TestTaskObserverDetach$Detach.assertDetach(TestRunner)
   at frysk.proc.TestTaskObserverDetach.testDetachExec(TestRunner)
   at frysk.junit.Runner.runCases(TestRunner)
   at frysk.junit.Runner.runArchCases(TestRunner)
   at frysk.junit.Runner.runTestCases(TestRunner)
   at TestRunner.main(TestRunner)

------- Additional Comment #1 From Nurdin Premji 2006-11-27 18:20 -------
With ./frysk-core/TestRunner -r 1000 frysk.proc.TestTaskObserverDetach
on fc6

------- Additional Comment #2 From Andrew Cagney 2006-12-04 17:11 -------
Reproduced with:
  Mon Dec  4 12:10:04 EST 2006
sources on:
  Linux nettle 2.6.18-1.2239.fc5 #1 Fri Nov 10 13:04:06 EST 2006 i686 i686 i386
GNU/Linux
kernel.

------- Additional Comment #3 From Andrew Cagney 2006-12-04 17:29 -------
toadstool$ uname -a
Linux toadstool.toronto.redhat.com 2.6.17-1.2174_FC5 #1 Tue Aug 8 15:30:55 EDT
2006 i686 i686 i386 GNU/Linux

1)
testDetachClone(frysk.proc.TestTaskObserverDetach)junit.framework.AssertionFailedError:
pending signal Sig_USR1
   at frysk.proc.TestLib.tearDown(TestRunner)
   at frysk.junit.Runner.runCases(TestRunner)
   at frysk.junit.Runner.runArchCases(TestRunner)
   at frysk.junit.Runner.runTestCases(TestRunner)
   at TestRunner.main(TestRunner)

------- Additional Comment #4 From Andrew Cagney 2006-12-04 17:30 -------
towns$ uname -a
Linux towns.toronto.redhat.com 2.6.18-1.2849.fc6 #1 SMP Fri Nov 10 12:36:14 EST
2006 i686 i686 i386 GNU/Linux
1)
testDetachExec(frysk.proc.TestTaskObserverDetach)junit.framework.AssertionFailedError:
event loop run explictly stopped (adding signaled observer)
   at frysk.proc.TestLib.assertRunUntilStop(TestRunner)
   at frysk.proc.TestLib.assertRunUntilStop(TestRunner)
   at frysk.proc.TestTaskObserverDetach$Detach.<init>(TestRunner)
   at frysk.proc.TestTaskObserverDetach$4$DetachExec.<init>(TestRunner)
   at frysk.proc.TestTaskObserverDetach.testDetachExec(TestRunner)
   at frysk.junit.Runner.runCases(TestRunner)
   at frysk.junit.Runner.runArchCases(TestRunner)
   at frysk.junit.Runner.runTestCases(TestRunner)
   at TestRunner.main(TestRunner)

------- Additional Comment #5 From Andrew Cagney 2006-12-04 17:39 -------
repo on:
towns$ uname -a
Linux towns.toronto.redhat.com 2.6.18-1.2849.fc6 #1 SMP Fri Nov 10 12:36:14 EST
2006 i686 i686 i386 GNU/Linux

testDetachExec(frysk.proc.TestTaskObserverDetach)junit.framework.AssertionFailedError:
stat.state expected:<T> but was:<S>
   at frysk.proc.TestTaskObserverDetach$Detach.assertDetach(TestRunner)
   at frysk.proc.TestTaskObserverDetach.testDetachExec(TestRunner)
   at frysk.junit.Runner.runCases(TestRunner)
   at frysk.junit.Runner.runArchCases(TestRunner)
   at frysk.junit.Runner.runTestCases(TestRunner)
   at TestRunner.main(TestRunner)

but note that this fails in other ways also, see bugs hanging off this one.

------- Additional Comment #6 From Andrew Cagney 2006-12-04 18:19 -------
Test when run in isolation, and for 1000 times, passes just fine.

------- Additional Comment #7 From Andrew Cagney 2006-12-04 18:34 -------
Reducing test shows this fails:

Running testDetachFork(frysk.proc.TestTaskObserverDetach) ...PASS
Running testDetachExec(frysk.proc.TestTaskObserverDetach) ...FAIL
  junit.framework.AssertionFailedError: event loop run explictly stopped
(attempting detach (eventAcks (Sig_USR1)))

Time: 5.227
There was 1 failure:
1)
testDetachExec(frysk.proc.TestTaskObserverDetach)junit.framework.AssertionFailedError:
event loop run explictly stopped (attempting detach (eventAcks (Sig_USR1)))
   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.TestTaskObserverDetach$Detach.assertDetach(TestRunner)
   at frysk.proc.TestTaskObserverDetach.testDetachExec(TestRunner)
   at frysk.junit.Runner.runCases(TestRunner)
   at frysk.junit.Runner.runArchCases(TestRunner)
   at frysk.junit.Runner.runTestCases(TestRunner)
   at TestRunner.main(TestRunner)

FAILURES!!!
Tests run: 2,  Failures: 1,  Errors: 0


------- Additional Comment #8 From Andrew Cagney 2006-12-04 18:54 -------
From the log:

FINE: testDetachExec(frysk.proc.TestTaskObserverDetach) <<<<<<<<<<<<<<<< end setUp

3967.3967: received signal 13 (Broken pipe)
3967.3967: parent exit
3967.3967: process-parent switched to 1
3967.3967: notify 3941 with 10 (User defined signal 1) -- process-parent
switched to 1
4-Dec-06 1:36:22 PM frysk.proc.TestLib killDuringTearDown
FINE: testDetachExec(frysk.proc.TestTaskObserverDetach) killDuringTearDown 3969

I.e., the previous test's process was still running and sending frysk signals.


------- Additional Comment #9 From Andrew Cagney 2006-12-04 19:26 -------
3966.3966: forked 3967
3966.3966: notify 3941 with 12 (User defined signal 2) -- forked 3967
4-Dec-06 1:36:22 PM frysk.proc.TestLib$AckHandler$AckSignal execute

So the child forks, and the fork is blocked.  The parent is killed (during tear
down), the child then resumes and sends frysk a stray signal.

Need to kill this forked child.

------- Additional Comment #10 From Andrew Cagney 2006-12-04 21:11 -------
Index: frysk-core/frysk/proc/ChangeLog
2006-12-04  Andrew Cagney  <cagney@redhat.com>

        * Testlib.java (setUp): Add children of proceses already in
        tidsToKillDuringTearDown to tidsToKillDuringTearDown.

------- Additional Comment #11 From Andrew Cagney 2006-12-04 21:15 -------
*** Bug 3636 has been marked as a duplicate of this bug. ***

------- Additional Comment #12 From Andrew Cagney 2006-12-04 21:15 -------
*** Bug 3637 has been marked as a duplicate of this bug. ***

------- Additional Comment #13 From Andrew Cagney 2006-12-04 21:16 -------
*** Bug 3638 has been marked as a duplicate of this bug. ***

------- Additional Comment #14 From Andrew Cagney 2006-12-05 03:03 -------
*** Bug 3594 has been marked as a duplicate of this bug. ***

Bug List: First Last (This bug is not in your list)   Show list      Query page      Enter new bug
Actions: New | Query | bug # | Reports | Requests   New Account | Log In