Preferred bug tracker

Please visit the preferred bug tracker to report your issue.

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

Report information
The Basics
Id:
16886
Status:
resolved
Priority:
Low/Low
Queue:

People
Owner:
Nobody in particular
Requestors:
emmanuel.rodriguez-santiago [...] hp.com
Cc:
AdminCc:

BugTracker
Severity:
Important
Broken in:
0.05
Fixed in:
(no value)



Subject: scp_get dies with a Segmentation fault
scp_get will cause a Segmentation fault when reading 'large' files. If a file has more than 65536 bytes (64k) the program will die. This behaviour is identical under debian (sarge) and ubuntu(breezy) both with libssh2 version 0.12.
From: berganski@daac.gsfc.nasa.gov
On Tue Jan 03 10:17:53 2006, guest wrote:
Show quoted text
> scp_get will cause a Segmentation fault when reading 'large' files. > If a file has more than 65536 bytes (64k) the program will die. > > This behaviour is identical under debian (sarge) and ubuntu(breezy) > both with > libssh2 version 0.12.
I'm having the same problems, I'm also getting the error with Net::SSH2 0.06
I'm able to scp_get files over 64k with no problems; can you provide a core dump (you can send it directly to my CPAN address if you prefer). The code I just used to test it was: perl -MNet::SSH2 -wle '$a=Net::SSH2->new();$a->connect("HOSTNAME");$a->auth_keyboard("USER"=>"PASSWORD") or die;$c=$a->scp_get("TRIAL64K")' Then I diff'd it with the original and it matched.
From: emmanuel.rodriguez-santiago@hp.com
On Fri Jan 27 21:23:12 2006, DBROBINS wrote:
Show quoted text
> I'm able to scp_get files over 64k with no problems; can you provide a > core dump (you can send it directly to my CPAN address if you prefer). > The code I just used to test it was: > > perl -MNet::SSH2 -wle > '$a=Net::SSH2->new();$a->connect("HOSTNAME");$a-
> >auth_keyboard("USER"=>"PASSWORD")
> or die;$c=$a->scp_get("TRIAL64K")' > > Then I diff'd it with the original and it matched.
Here is the core file that I get when executing scp_get. The other file, 'data.txt', is the sample data i was trying to send.

Message body is not shown because it is too large.

Message body not shown because it is not plain text.

From: emmanuel.rodriguez-santiago@hp.com
This time I tried the transfer with the version 0.06 of Net::SSH2. libssh2 is still at the same version 0.12. The SSH server responded with: SSH-2.0-OpenSSH_4.1p1 Debian-7ubuntu4
Fixed in 0.07 (the terminating null was written outside the buffer).


This service runs on Request Tracker, is sponsored by The Perl Foundation, and maintained by Best Practical Solutions.

Please report any issues with rt.cpan.org to rt-cpan-admin@bestpractical.com.