Subject: | Segmentation fault using channel with Perl 5.10 |
Date: | Wed, 21 May 2008 14:06:56 +0200 |
To: | bug-Net-SSH2 [...] rt.cpan.org |
From: | "Sebastien Rodriguez" <sebastien.rodriguez1 [...] gmail.com> |
Hello,
Distribution name and Version : Net-SSH2-0.18
Perl Version : This is perl, v5.10.0 built for i486-linux-gnu-thread-multi
Distribution : Debian Lenny (Testing)
With Perl 5.10, the net::shh2 does not work anymore :
The read.pl program in the examples directoryfails with "Segmentation Fault".
For example the sample code :
------
use Net::SSH2;
my $ssh2 = Net::SSH2->new();
$ssh2->connect('localhost') or die "$!";
if ($ssh2->auth_password('user','password')) {
my $chan = $ssh2->channel();
$chan->exec('date');
}
----
Fails with "Segmentation Fault" on channel->exec() !
Thank you.
Sebastien Rodriguez