Skip Menu |

This queue is for tickets about the Net-SSH2 CPAN distribution.

Report information
The Basics
Id: 76149
Status: rejected
Priority: 0/
Queue: Net-SSH2

People
Owner: Nobody in particular
Requestors: g.ashok1988 [...] gmail.com
Cc:
AdminCc:

Bug Information
Severity: (no value)
Broken in: (no value)
Fixed in: (no value)



Subject: Segmentation Fault - Dumping Core on Solaris
Date: Fri, 30 Mar 2012 04:36:12 +0530
To: bug-Net-SSH2 [...] rt.cpan.org
From: Ashok Kumar <g.ashok1988 [...] gmail.com>
Hi Developer, I see a problem with Net::SSH2 on my Solaris server where it is saying Segmentation Fault and dumping cores when trying to use ->connect() method. Attaching the core for your reference. I am using Net::SSH2 v0.40 on perl, v5.8.9 built for sun4-solaris-thread-multi. Let me know if any additional information is required. -- Thanks, G. Ashok Kumar
Subject: Re: [rt.cpan.org #76149] Segmentation Fault - Dumping Core on Solaris
Date: Fri, 30 Mar 2012 12:44:00 -0400
To: bug-Net-SSH2 [...] rt.cpan.org
From: Rafael Kitover <rkitover [...] cpan.org>
On 3/29/2012 7:06 PM, Ashok Kumar via RT wrote: Show quoted text
> I see a problem with Net::SSH2 on my Solaris server where it is saying > Segmentation Fault and dumping cores when trying to use ->connect() method.
Did you compile it against the latest versions of libssh2 and openssl? A copy of the perl script you used would be helpful as well. Show quoted text
> > Attaching the core for your reference.
A core in itself doesn't do me much good. If you compile a perl with -DDEBUGGING -Doptimize="-ggdb3", build Net::SSH2, then produce a core, then do: gdb --core=core --args /path/to/your/debug/perl script.pl then do a bt when you get the SEGV and give me the backtrace, that would be more useful. If the backtrace shows libssh2, you'll need to compile libssh2 with --enable-debug. Show quoted text
> > I am using Net::SSH2 v0.40 on perl, v5.8.9 built for > sun4-solaris-thread-multi. > > Let me know if any additional information is required. >
Subject: Re: [rt.cpan.org #76149] Segmentation Fault - Dumping Core on Solaris
Date: Fri, 30 Mar 2012 23:55:24 +0530
To: bug-Net-SSH2 [...] rt.cpan.org
From: Ashok Kumar <g.ashok1988 [...] gmail.com>
Here is more information on this. *bash-3.00# ldd -v /usr/local/lib/perl5/site_perl/5.8.9/sun4-solaris-thread-multi/auto/Net/SSH2/SSH2.so find object=libssh2.so.1; required by /usr/local/lib/perl5/site_perl/5.8.9/sun4-solaris-thread-multi/auto/Net/SSH2/SSH2.so libssh2.so.1 => /usr/local/lib/libssh2.so.1 find object=libz.so; required by /usr/local/lib/perl5/site_perl/5.8.9/sun4-solaris-thread-multi/auto/Net/SSH2/SSH2.so libz.so => /usr/lib/libz.so find object=libc.so.1; required by /usr/local/lib/perl5/site_perl/5.8.9/sun4-solaris-thread-multi/auto/Net/SSH2/SSH2.so libc.so.1 => /lib/libc.so.1 find version=libc.so.1 libc.so.1 (SUNW_1.22) => /lib/libc.so.1 find object=libssl.so.0.9.7; required by /usr/local/lib/libssh2.so.1 libssl.so.0.9.7 => /usr/sfw/lib/libssl.so.0.9.7 find object=libcrypto.so.0.9.7; required by /usr/local/lib/libssh2.so.1 libcrypto.so.0.9.7 => /usr/sfw/lib/libcrypto.so.0.9.7 find object=libz.so.1; required by /usr/local/lib/libssh2.so.1 find version=libz.so.1 libz.so.1 (SUNW_1.1) => /usr/lib/libz.so find object=libnsl.so.1; required by /usr/local/lib/libssh2.so.1 libnsl.so.1 => /lib/libnsl.so.1 find object=libsocket.so.1; required by /usr/local/lib/libssh2.so.1 libsocket.so.1 => /lib/libsocket.so.1 find version=libsocket.so.1 libsocket.so.1 (SISCD_2.3) => /lib/libsocket.so.1 find object=libc.so.1; required by /usr/local/lib/libssh2.so.1 find version=libc.so.1 libc.so.1 (SUNW_1.1) => /lib/libc.so.1 find object=libgcc_s.so.1; required by /usr/local/lib/libssh2.so.1 libgcc_s.so.1 => /usr/sfw/lib/libgcc_s.so.1 find version=libgcc_s.so.1 libgcc_s.so.1 (GCC_3.0) => /usr/sfw/lib/libgcc_s.so.1 find object=libc.so.1; required by /usr/lib/libz.so find version=libc.so.1 libc.so.1 (SUNW_1.1) => /lib/libc.so.1 find object=libcrypto.so.0.9.7; required by /usr/sfw/lib/libssl.so.0.9.7 find object=libc.so.1; required by /usr/sfw/lib/libssl.so.0.9.7 find version=libc.so.1 libc.so.1 (SISCD_2.3) => /lib/libc.so.1 find object=libc.so.1; required by /usr/sfw/lib/libcrypto.so.0.9.7 find version=libc.so.1 libc.so.1 (SUNW_1.22) => /lib/libc.so.1 find object=libsocket.so.1; required by /usr/sfw/lib/libcrypto.so.0.9.7 find version=libsocket.so.1 libsocket.so.1 (SISCD_2.3) => /lib/libsocket.so.1 find object=libnsl.so.1; required by /usr/sfw/lib/libcrypto.so.0.9.7 find version=libnsl.so.1 libnsl.so.1 (SISCD_2.3) => /lib/libnsl.so.1 find object=libmp.so.2; required by /lib/libnsl.so.1 libmp.so.2 => /lib/libmp.so.2 find version=libmp.so.2 libmp.so.2 (SUNW_1.1) => /lib/libmp.so.2 libmp.so.2 (SUNWprivate_1.1) => /lib/libmp.so.2 find object=libmd.so.1; required by /lib/libnsl.so.1 libmd.so.1 => /lib/libmd.so.1 find object=libscf.so.1; required by /lib/libnsl.so.1 libscf.so.1 => /lib/libscf.so.1 find version=libscf.so.1 libscf.so.1 (SUNW_1.1) => /lib/libscf.so.1 find object=libc.so.1; required by /lib/libnsl.so.1 find version=libc.so.1 libc.so.1 (SUNW_1.22.2) => /lib/libc.so.1 libc.so.1 (SUNWprivate_1.1) => /lib/libc.so.1 find object=libnsl.so.1; required by /lib/libsocket.so.1 find version=libnsl.so.1 libnsl.so.1 (SUNW_1.7) => /lib/libnsl.so.1 libnsl.so.1 (SUNWprivate_1.1) => /lib/libnsl.so.1 find object=libc.so.1; required by /lib/libsocket.so.1 find version=libc.so.1 libc.so.1 (SUNW_1.19) => /lib/libc.so.1 libc.so.1 (SUNWprivate_1.1) => /lib/libc.so.1 find object=libc.so.1; required by /usr/sfw/lib/libgcc_s.so.1 find version=libc.so.1 libc.so.1 (SUNW_1.1) => /lib/libc.so.1 find object=libc.so.1; required by /lib/libmp.so.2 find version=libc.so.1 libc.so.1 (SYSVABI_1.3) => /lib/libc.so.1 find object=libc.so.1; required by /lib/libmd.so.1 find version=libc.so.1 libc.so.1 (SUNW_0.9) => /lib/libc.so.1 find object=libdoor.so.1; required by /lib/libscf.so.1 libdoor.so.1 => /lib/libdoor.so.1 find version=libdoor.so.1 libdoor.so.1 (SUNWprivate_1.1) => /lib/libdoor.so.1 find object=libuutil.so.1; required by /lib/libscf.so.1 libuutil.so.1 => /lib/libuutil.so.1 find version=libuutil.so.1 libuutil.so.1 (SUNWprivate_1.1) => /lib/libuutil.so.1 find object=libc.so.1; required by /lib/libscf.so.1 find version=libc.so.1 libc.so.1 (SUNW_1.21) => /lib/libc.so.1 libc.so.1 (SUNWprivate_1.1) => /lib/libc.so.1 find object=libgen.so.1; required by /lib/libscf.so.1 libgen.so.1 => /lib/libgen.so.1 find version=libgen.so.1 libgen.so.1 (SUNW_1.1) => /lib/libgen.so.1 find object=libc.so.1; required by /lib/libdoor.so.1 find version=libc.so.1 libc.so.1 (SUNW_1.22.1) => /lib/libc.so.1 libc.so.1 (SUNWprivate_1.1) => /lib/libc.so.1 find object=libc.so.1; required by /lib/libuutil.so.1 find version=libc.so.1 libc.so.1 (SUNW_1.19) => /lib/libc.so.1 libc.so.1 (SUNWprivate_1.1) => /lib/libc.so.1 find object=libc.so.1; required by /lib/libgen.so.1 find version=libc.so.1 libc.so.1 (SUNW_1.1) => /lib/libc.so.1 libc.so.1 (SUNWprivate_1.1) => /lib/libc.so.1 object=/lib/libc.so.1; filter for /usr/lib/ld.so.1 object=/lib/libc.so.1; filter for libm.so.2 find object=libm.so.2; required by /lib/libc.so.1 libm.so.2 => /lib/libm.so.2 find object=libc.so.1; required by /lib/libm.so.2 find version=libc.so.1 libc.so.1 (SUNW_1.1) => /lib/libc.so.1 object=/lib/libm.so.2; filter for $ORIGIN/libm/$HWCAP find object=/lib/libm/sparcv9; required by /lib/libm.so.2 find object=/lib/libm/libm_hwcap1.so.2; required by /lib/libm.so.2 object=/lib/libc.so.1; filter for /platform/$PLATFORM/lib/libc_psr.so.1 find object=/platform/SUNW,Sun-Blade-1000/lib/libc_psr.so.1; required by /lib/libc.so.1 /platform/SUNW,Sun-Blade-1000/lib/libc_psr.so.1 object=/usr/sfw/lib/libssl.so.0.9.7; filter for libssl_extra.so.0.9.7 find object=libssl_extra.so.0.9.7; required by /usr/sfw/lib/libssl.so.0.9.7 libssl_extra.so.0.9.7 => /usr/sfw/lib/libssl_extra.so.0.9.7 find object=libcrypto_extra.so.0.9.7; required by /usr/sfw/lib/libssl_extra.so.0.9.7 libcrypto_extra.so.0.9.7 => /usr/sfw/lib/libcrypto_extra.so.0.9.7 find object=libcrypto.so.0.9.7; required by /usr/sfw/lib/libssl_extra.so.0.9.7 find object=libssl.so.0.9.7; required by /usr/sfw/lib/libssl_extra.so.0.9.7 find object=libc.so.1; required by /usr/sfw/lib/libssl_extra.so.0.9.7 find version=libc.so.1 libc.so.1 (SYSVABI_1.3) => /lib/libc.so.1 object=/usr/sfw/lib/libcrypto.so.0.9.7; filter for libcrypto_extra.so.0.9.7 find object=libcrypto_extra.so.0.9.7; required by /usr/sfw/lib/libcrypto.so.0.9.7 object=/usr/sfw/lib/libcrypto.so.0.9.7; filter for libcrypto_extra.so.0.9.7 find object=libcrypto_extra.so.0.9.7; required by /usr/sfw/lib/libcrypto.so.0.9.7 object=/lib/libnsl.so.1; filter for libc.so.1 find object=libc.so.1; required by /lib/libnsl.so.1 find version=libc.so.1 libc.so.1 (SUNW_1.22.2) => /lib/libc.so.1 libc.so.1 (SUNWprivate_1.1) => /lib/libc.so.1 object=/lib/libmd.so.1; filter for /platform/$PLATFORM/lib/libmd_psr.so.1 find object=/platform/SUNW,Sun-Blade-1000/lib/libmd_psr.so.1; required by /lib/libmd.so.1 /platform/SUNW,Sun-Blade-1000/lib/libmd_psr.so.1 find object=libc.so.1; required by /platform/SUNW,Sun-Blade-1000/lib/libmd_psr.so.1 find version=libc.so.1 libc.so.1 (SUNW_0.9) => /lib/libc.so.1 * Simple Perl Script I am using: * #!/usr/bin/perl use strict; use warnings; use Net::SSH2; my $sshf = Net::SSH2->new(); my ($host, $user, $pass) = qw(192.168.0.18 user pass); $sshf->connect($host) or die "SSH Connect Failed $!-- $@---\n"; print "HI";* I am in the process of giving you more information as you suggested. But do I want to uninstall the existing Perl on my server and re isnatll it again? Or just compile as you suggested and overwrite the existing files using 'make install'? -- Thanks, G. Ashok Kumar
Subject: Re: [rt.cpan.org #76149] Segmentation Fault - Dumping Core on Solaris
Date: Fri, 30 Mar 2012 23:59:50 +0530
To: bug-Net-SSH2 [...] rt.cpan.org
From: Ashok Kumar <g.ashok1988 [...] gmail.com>
openssl-1.0.1 and libssh2-1.4.0
Subject: Re: [rt.cpan.org #76149] Segmentation Fault - Dumping Core on Solaris
Date: Sat, 31 Mar 2012 11:31:17 -0400
To: bug-Net-SSH2 [...] rt.cpan.org
From: Rafael Kitover <rkitover [...] cpan.org>
On 3/30/2012 2:25 PM, Ashok Kumar via RT wrote: Show quoted text
> I am in the process of giving you more information as you suggested. But do > I want to uninstall the existing Perl on my server and re isnatll it again? > Or just compile as you suggested and overwrite the existing files using > 'make install'? >
Use perlbrew.
Subject: Re: [rt.cpan.org #76149] Segmentation Fault - Dumping Core on Solaris
Date: Sat, 31 Mar 2012 11:35:01 -0400
To: bug-Net-SSH2 [...] rt.cpan.org
From: Rafael Kitover <rkitover [...] cpan.org>
On 3/30/2012 2:25 PM, Ashok Kumar via RT wrote: Show quoted text
> I am in the process of giving you more information as you suggested. But do > I want to uninstall the existing Perl on my server and re isnatll it again? > Or just compile as you suggested and overwrite the existing files using > 'make install'? >
Once you install perlbrew and initialize it, here is the command to build a debugging perl: perlbrew install -n -j 10 perl-5.14.2 -D DEBUGGING -D optimize="-ggdb3" then to use it: perlbrew use perl-5.14.2 same for any other version.
Closing ticket, no information from submitter.