MantisBT - ParaView
View Issue Details
0010283ParaViewBugpublic2010-02-12 17:492016-08-12 09:58
Burlen 
Pat Marion 
normalcrashalways
closedmoved 
Development 
 
0010283: client creates orphan/zombie processes
ParaView doesn't clean up processes it spawns when it starts a server for the user via its UI.

On my system it's only an issue if the spawned process doesn't finish. In that case when ParaView exits the process is orphaned. If the spawned process used ssh ports are left open which prevent ParaView from connecting again, if he tries, then a crash soon follows.

This was reported by Sean Ziegeler in the ParaView user's thread:
"[Paraview] paraview - client-server"

steps to reproduce:

1) start the client.

2) connect->Add Server

name: rc-orphan
type: reverse connection
port: 33333
command:
ssh -i /home/burlen/.ssh/id_rsa_G50VT localhost /home/burlen/ext/PV3/bin/pvserver --reverse-connection --client-host=localhost --server-port=33333 && sleep 1d

note: use ssh-keygen to generate a public/private key pair, copy the public key into ~/.ssh/authorized_keys

3) connect using the new server. At this point you can use "pstree -p PV_PID" to view the child process and get its pid.

4) disconnect. At this point you can use pstree again to verify that the child process is still there.

5) connect using the new server again. It fails, crash soon to follow.

6) close paraview (if he didn't crash). View the orphaned ssh process (use its pid from step 3), with ps or pstree.
No tags attached.
patch procOrphans.patch (9,329) 2010-02-12 17:49
https://www.vtk.org/Bug/file/7860/procOrphans.patch
Issue History
2010-02-12 17:49BurlenNew Issue
2010-02-12 17:49BurlenFile Added: procOrphans.patch
2010-02-12 17:55BurlenNote Added: 0019523
2010-02-13 10:48Utkarsh AyachitPrioritynormal => immediate
2010-02-13 10:48Utkarsh AyachitTarget Version => 3.8
2010-02-25 16:59Utkarsh AyachitPriorityimmediate => normal
2010-02-25 16:59Utkarsh AyachitTarget Version3.8 => 4.0
2010-04-27 16:01Utkarsh AyachitStatusbacklog => tabled
2010-04-27 16:01Utkarsh AyachitAssigned To => Pat Marion
2010-04-27 16:03Utkarsh AyachitNote Added: 0020444
2010-04-30 17:44BurlenNote Added: 0020503
2016-08-12 09:58Kitware RobotNote Added: 0037787
2016-08-12 09:58Kitware RobotStatusexpired => closed
2016-08-12 09:58Kitware RobotResolutionopen => moved

Notes
(0019523)
Burlen   
2010-02-12 17:55   
The patch adds code to explicitly close the spawned process and clean up the other resources it has used (eg signal/slot connections) when the server is disconnected.
(0020444)
Utkarsh Ayachit   
2010-04-27 16:03   
Pat,

I assigned this to you since you were reporting about the zombie process in an email this morning. One issue with the patch may be when "disconnect and save" animation is used.
(0020503)
Burlen   
2010-04-30 17:44   
the ssh command should have " ".
(0037787)
Kitware Robot   
2016-08-12 09:58   
Resolving issue as `moved`.

This issue tracker is no longer used. Further discussion of this issue may take place in the current ParaView Issues page linked in the banner at the top of this page.