[Ssh-sftp-perl-users] Urgent, Problems with the Net::SSH::Perl package
Brought to you by:
dbrobins
From: Rishi K. M <kau...@in...> - 2004-12-22 11:55:41
|
Hi experts, I am using the above package and using the perl2exe to generate the final binary. I am getting a segmentation fault (SIGSEGV) in my program at the following method. eval { $ssh->login ($config{$login}, $config{pw}); } Is there any known problem with the $ssh->login. Or could it be A problem with the perl2exe. I am seeing the program terminating consitenetly At the above point. Also, I did not see any method exported to free the $ssh object created in the Following statement. ===================================================================== While(1) { $ssh = Net::SSH::Perl->new($config{$name}, protocol=>2, debug=>0, po rt=>22); Do some thing. .......................... --------------------- --How to delete the new object????????????? } ====================================================================== I tried $ssh->_disconnect(). But it does not seem to be close the socket and Release the memory. I am connecting to the hosts in a infinite while loop. I am suspecting potential memory leak with the repeated invocation of the new methods Can you please let me know any method which free the $ssh object created in the new. Thanks & Regards, Rishi |