Subject: | *** glibc detected *** perl: double free or corruption (fasttop): 0x000000000222afc0 *** |
the attached script dies with and "double free or corruption" error
after the call to Net::SSH2::auth.
The error does not happen when I call auth_publickey directly.
Subject: | ssh2bug.pl |
#!/usr/bin/perl
use strict;
use warnings;
use Net::SSH2;
package Net::SSH2;
my $host = 'localhost';
my $key = '/home/salva/.ssh/id_rsa',
my $user = 'salva';
system "ssh -l $user -i $key $host echo hello from remote host";
system "ls -l $key*";
warn "before ctor";
my $ssh2 = Net::SSH2->new();
warn "before connect";
$ssh2->connect("localhost", 22);
warn "before auth";
$ssh2->auth(privatekey => $key,
publickey => "$key.pub",
username => $user,
)
or warn "connection failed";
warn "the end"
Subject: | uname-a |
Message body not shown because it is not plain text.
Subject: | perl-V |
Message body not shown because it is not plain text.
Subject: | output |
Message body not shown because it is not plain text.