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

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

Thread Next
From:
Sebastien Rodriguez
Date:
May 28, 2008 03:43
Subject:
Re: [perl #54908] Perl 5.10 segmentation fault using Net::SSH2::Channel
Message ID:
dae038af0805271149j776761c4n3199bb0c0bf80fd8@mail.gmail.com
Hello Steve,

Of course, after perl was upgraded in 5.10, I recompile Net::SSH2 and
I think the problem could be in SSH2.c made by perlxs modules who get
a lot of PERL_UNUSED_VAR.

Hope it helps.

Kind regards.
Seb !

On Tue, May 27, 2008 at 8:06 PM, Steve Peters via RT
<perlbug-followup@perl.org> wrote:
> 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.
>>
>>
>
> Did you re-install Net::SSH2 after you installed Perl 5.10, or are you
> using the Net::SSH2 that was built for Perl 5.8?
>
> Steve Peters
>

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