Bug 3755

Summary: Force Task to sendRecIsa during attach rather than later on
Product: frysk Reporter: Mike Cvet <mcvet>
Component: generalAssignee: Nurdin Premji <npremji>
Status: RESOLVED FIXED    
Severity: normal CC: mcvet
Priority: P2    
Version: unspecified   
Target Milestone: ---   
Host: Target:
Build: Last reconfirmed:
Bug Depends on: 3754    
Bug Blocks: 3753    

Description Mike Cvet 2006-12-18 21:44:01 UTC
If we can avoid the below being called from a TerminatingObserver when the 
process is possibly in an inconsistent state we can avoid being hit by #3754.

public final Isa getIsa ()
    throws TaskException
  {
    System.out.println("getIsa");
    if (isa == null)
      isa = sendrecIsa();
    return isa;
  }
Comment 1 Nurdin Premji 2006-12-19 18:15:04 UTC
Fixed:
December 19, 2006
frysk-core/frysk/proc/CL
	* LinuxPtraceTaskState.java (.transitionToAttached): notify Task of 
	transition.
	* ProcBlockAction.java (ProcBlockAction): return/exit after addFailed call.
	* Task.java: Added variable taskStateAttached, fills isa on attach.
	(notifyExeced): Clear isa using clearIsa rather than isa = null.