Bug 3358 - testDetachExec(frysk.proc.TestTaskObserverDetach)java.lang.RuntimeException
Summary: testDetachExec(frysk.proc.TestTaskObserverDetach)java.lang.RuntimeException
Status: NEW
Alias: None
Product: frysk
Classification: Unclassified
Component: general (show other bugs)
Version: unspecified
: P2 normal
Target Milestone: ---
Assignee: Unassigned
URL:
Keywords:
Depends on:
Blocks: 2234
  Show dependency treegraph
 
Reported: 2006-10-12 18:33 UTC by Chris Moller
Modified: 2006-11-28 16:48 UTC (History)
0 users

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 Chris Moller 2006-10-12 18:33:42 UTC
testDetachExec(frysk.proc.TestTaskObserverDetach)java.lang.RuntimeException:
Whoa!

happened 2 or 3 times from installed funit, but hasn't repeated since.  appears
to be intermittant.
Comment 1 Chris Moller 2006-10-12 21:17:18 UTC
There are four cases in this test:

testDetachFork
testDetachClone
testDetachExec
testDetachSignal

of which testDetachExec fails with the error above.  If the testDetachFork case
is removed, the test passes.

The proximate casuse of the failure is in
frysk/proc/TaskState.java:handleStoppedEvent():

Collection pendingObservations = task.pendingObservations;
          if (pendingObservations.isEmpty())
            throw new RuntimeException("Whoa!");

from a backtrace of 

at frysk.proc.TaskState$Running.handleStoppedEvent(TestRunner)                 
at frysk.proc.Task.processStoppedEvent(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)

Guess du jour, it's another tearDown problem--I'll refinne that guess tomorrow.