Bug 3358

Summary: testDetachExec(frysk.proc.TestTaskObserverDetach)java.lang.RuntimeException
Product: frysk Reporter: Chris Moller <cmoller>
Component: generalAssignee: Unassigned <frysk-bugzilla>
Status: NEW ---    
Severity: normal    
Priority: P2    
Version: unspecified   
Target Milestone: ---   
Host: Target:
Build: Last reconfirmed:
Bug Depends on:    
Bug Blocks: 2234    

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.