Beefy Boxes and Bandwidth Generously Provided by pair Networks Ovid
Your skill will accomplish
what the force of many cannot
 
PerlMonks  

Re: Net::SSH2 dumping core

by syphilis (Canon)
on Mar 29, 2012 at 01:52 UTC ( #962288=note: print w/ replies, xml ) Need Help??


in reply to Net::SSH2 dumping core

At what point does the segfault occur ? When Net::SSH2 is loaded ? ... or when new() is called ? ... or when connect() is called ?

A few lines down from the top of t/Net-SSH2.t (in the Net-SSH2 source distro) you'll see:

my ($host, $user, $pass) = qw();
Change that to:
my ($host, $user, $pass) = qw(192.168.0.18 user pass);
and then run that script: perl t/Met-SSH2.t
Perhaps that will help pinpoint when/where the error occurs.

Be aware that, having done that, t/Net-SSH2.t now contains your username and password (in plain text) for anyone who opens the file to view.

Cheers,
Rob


Comment on Re: Net::SSH2 dumping core
Select or Download Code
Re^2: Net::SSH2 dumping core
by ashok.g (Beadle) on Mar 29, 2012 at 22:04 UTC
    Hi Rob,

    Thanks for the reply. The core is dumping when it is trying to connect. See the following output of Net::SSH.t
    bash-3.00# perl Net-SSH2.t 1..73 ok 1 - use Net::SSH2; ok 2 - new session isa Net::SSH2 ok 3 - error state clear ok 4 - set banner ok 5 - LIBSSH2_* constants ok 6 - list version match ok 7 # skip version not decimal ok 8 - banner is SSH-2.0-libssh2_1.4.0 ok 9 - poll indefinite ok 10 - poll 1/4 second ok 11 - ->sock is undef before connect Segmentation Fault (core dumped)
    Please advice.

    Thanks,
    Ashok.

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://962288]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others examining the Monastery: (18)
As of 2013-06-19 17:17 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    How many continents have you visited?









    Results (661 votes), past polls