ashok.g has asked for the wisdom of the Perl Monks concerning the following question:
Not sure what is the problem here. I am using multi thread Perl 5.8.9 on Sun Solaris 10#!/usr/bin/perl use strict; use warnings; use Net::SSH2; my $sshf = Net::SSH2->new(); $sshf->connect('192.168.0.18') or print "SSH Connect Failed\n";
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Net::SSH2 dumping core
by syphilis (Archbishop) on Mar 29, 2012 at 01:52 UTC | |
A few lines down from the top of t/Net-SSH2.t (in the Net-SSH2 source distro) you'll see: Change that to: 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 | [reply] [d/l] [select] |
by ashok.g (Beadle) on Mar 29, 2012 at 22:04 UTC | |
Thanks for the reply. The core is dumping when it is trying to connect. See the following output of Net::SSH.t Please advice. Thanks, Ashok. | [reply] [d/l] |
|
Re: Net::SSH2 dumping core
by ashok.g (Beadle) on Mar 29, 2012 at 23:15 UTC | |
https://rt.cpan.org/Public/Bug/Display.html?id=76149 | [reply] |
by Anonymous Monk on Mar 29, 2012 at 23:33 UTC | |
FWIW, useful information for the developer would be which version of libssh2 you're using, like the output from ldd -v ...auto/Net/SSH2.so | [reply] |
by ashok.g (Beadle) on Mar 30, 2012 at 14:32 UTC | |
When I try to reply to bug-net-ssh2@rt.cpan.org with subject line rt.cpan.org #76149 Segmentation Fault - Dumping Core on Solaris but it is not appending to the bug report nor I am getting any auto reply email. BTW, I am attaching the core file in that email. Thanks, Ashok. | [reply] [d/l] |