Project Home
Project Home
Documents
Documents
Wiki
Wiki
Discussion Forums
Discussions
Project Information
Project Info
Forum Topic - Application thread blocked on procnto: (2 Items)
   
Application thread blocked on procnto  
Hi,

I am having a multithreaded application, after some time of running is see this

331802  testApp WLAN Processing      REPLY       1

and this thread is stuck forever, can anyone tell me why this could happen?
Re: Application thread blocked on procnto  
To give some more insight ....The application thread launches a "sh" process, which inturn launches a "sftp" process and
 "sftp" inturn launches a "ssh" process for communication.

The application thread calls popen() with the following command string.
sftp -oPasswordAuthentication=no -oStrictHostKeyChecking=no -oNumberOfPasswordPrompts=0 -oPort=22 -oIdentityFile=FILE.
ssh.prv userID@IP 

After it successfully launches the above commad, we see 3 processes in a normal working scenario.

388177965 proc/boot/sh          
388177967 usr/local/bin/sftp     
388182064 usr/local/bin/ssh

In the scenario, where we see the thread getting reply blocked on process "1"
we see the following processes.

388177965 proc/boot/sh          
388177967 usr/local/bin/sftp
388182064 (Zombie)

It is clear that SSH is getting killed and becomes a Zombie. But, we are not sure why SSH is getting killed abruptly 

Does anyone had a similar experience while using sftp/ssh application????

Any help is appreciated.