develooper Front page | perl.perl5.porters | Postings from May 2008

[perl #54908] Perl 5.10 segmentation fault using Net::SSH2::Channel

Thread Previous | Thread Next
From:
Steve Peters via RT
Date:
May 27, 2008 11:20
Subject:
[perl #54908] Perl 5.10 segmentation fault using Net::SSH2::Channel
Message ID:
rt-3.6.HEAD-19997-1211912391-148.54908-15-0@perl.org
On Tue May 27 07:04:20 2008, sebastien.rodriguez1@gmail.com wrote:
> This is a bug report for perl from sebastien.rodriguez1@gmail.com,
> generated with the help of perlbug 1.36 running under perl 5.10.0.
> 
> 
> -----------------------------------------------------------------
> Hello,
> 
> With perl version 5.10, the module Net::SSH2 fails when trying to use
> the Channel.
> 
> 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.
> 
> 

I'm a little scared by this module.  Besides the multitudes of compile
warnings, this little assertion came up for me when I ran the code above.

Assertion !((((_svi)->sv_flags & (0x00004000|0x00008000)) == 0x00008000)
&& (((svtype)((_svi)->sv_flags & 0xff)) == SVt_PVGV ||
((svtype)((_svi)->sv_flags & 0xff)) == SVt_PVLV)) failed: file "SSH2.c",
line 2350 at
/usr/lib/perl5/site_perl/5.10.0/i386-linux-thread-multi/Net/SSH2/Channel.pm
line 14.
        (in cleanup) Assertion !((((_svi)->sv_flags &
(0x00004000|0x00008000)) == 0x00008000) && (((svtype)((_svi)->sv_flags &
0xff)) == SVt_PVGV || ((svtype)((_svi)->sv_flags & 0xff)) == SVt_PVLV))
failed: file "SSH2.c", line 2010 at
/usr/lib/perl5/site_perl/5.10.0/i386-linux-thread-multi/Net/SSH2/Channel.pm
line 14.

Thread Previous | Thread Next


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About