Bug 3062

Summary: Program Observers do not add the created children back into the session
Product: frysk Reporter: Phil Muldoon <pmuldoon>
Component: generalAssignee: Sami Wagiaalla <swagiaal>
Status: NEW ---    
Severity: normal CC: mcvet
Priority: P2    
Version: unspecified   
Target Milestone: ---   
Host: Target:
Build: Last reconfirmed:
Bug Depends on:    
Bug Blocks: 3399    

Description Phil Muldoon 2006-08-15 17:40:02 UTC
Program observers, which follow fork -> exec children down the line, do not add
the end child back to the session.
Comment 1 Sami Wagiaalla 2006-08-16 15:37:51 UTC
2006-08-16    <swagiaal@redhat.com>

        * SessionProcDataModel.java: handling was being added to itemAdded
        instead of itemRemoved as it is now part of fix for 3062.

Comment 2 Sami Wagiaalla 2006-08-17 14:39:28 UTC
This works in FC5 in fc6 however you get the following crash:

(No exception message provided)

frysk.proc.LinuxHost$PollWaitOnSigChld$2.stopped(FryskGui)
frysk.sys.Wait.waitAllNoHang(FryskGui)
frysk.proc.LinuxHost$PollWaitOnSigChld.execute(FryskGui)
frysk.event.EventLoop.runEventLoop(FryskGui)
frysk.event.EventLoop.run(FryskGui)
frysk.gui.Gui$4.run(FryskGui)
java.lang.Thread.run(libgcj.so.7rh)

To reproduce:
on a rawhide machin and cvs-head frysk
1 run frysk create a session with any process

2 go to a terminal and spawn a new instance of the
  program you have selected in the previous step*.

* before doing step 2 go the the Observers menu item
  click on 'Program Observer...' make sure that the
  appropriet bash process corresponding to the terminal 
  you will use to spawn the process is selected.

At this point you will get a dialog with the above error
in fc5 the process is just added to the treeview.
Comment 3 Chris Moller 2006-08-17 16:02:23 UTC
I'm not getting that failure (fc6t2), but I'm getting:

frysk.gui.monitor.SessionProcDataModel@73d910: SessionProcDataModel.addProc()
{frysk.proc.LinuxProc@7c88c0,pid=2219,state=detached}
frysk.gui.monitor.SessionProcDataModel@73d910: SessionProcDataModel.addProc()
{frysk.proc.LinuxProc@7c87d0,pid=16086,state=detached}
java.lang.Exception: gtk_box_pack_start: assertion `child->parent == NULL' failed
   at org.gnu.glib.GObject.printStackTrace(libgtkjava-2.8.so)