On Sat, May 22, 2010 at 08:58:17AM +0200, Salvatore Bonaccorso wrote: > > > Can't find anything about these limits in documentation so I'm submitting > > > this bugreport. > > > > > > I tried to write some script and everything worked fine until I tried to > > > send some long line. > > > > > > Here goes my script: > > > > > > #!/usr/bin/perl -W > > > > > > use strict; > > > use Fcntl; > > > use warnings FATAL => qw (all); > > > use Net::SSH2; > > > > > > my $ssh2 = Net::SSH2->new(); > > > $ssh2->connect('hostname') or die $!; > > > $ssh2->auth_password('fenio','password'); > > > my $sftp = $ssh2->sftp(); > > > my $remote = $sftp->open('/home/fenio/foo.txt', O_WRONLY | O_CREAT | > > > O_TRUNC); > > > > > > print $remote "A" x 27442; > > > > > > Sending 27441 characters works fine. > > > > I tried to reproduce this with your script. It was possible to sent > > the 27442 caracters. Are there some hints to problems with your > > connection? Do you get more information if you strace the process? > > Did you got that email. Is the Problem still reproducible for you? > (Can someone from the group too try it, as it does work for me).
It's quite hard to reproduce it now since I got segmentation fault as Damyan Ivanov in next mail. [1088752.327908] bug560867.pl[22550]: segfault at 7fe63a0ecb20 ip 00007fe63a0ecb20 sp 00007fff021b60a8 error 15 in SSH2.so[7fe63a0ec000+1000] [1088760.815865] bug560867.pl[22611]: segfault at 7fe057a47b20 ip 00007fe057a47b20 sp 00007fff9dccd7e8 error 15 in SSH2.so[7fe057a47000+1000] [1088867.642787] bug560867.pl[22910]: segfault at 7f9a7d0feb20 ip 00007f9a7d0feb20 sp 00007fff893c24b8 error 15 in SSH2.so[7f9a7d0fe000+1000] bug560867 is the same as in my first report. Seems we've hit another problem now. Maybe it's worth mention that I'm trying it on amd64. regards fEnIo -- ,''`. Bartosz Fenski | mailto:fe...@debian.org | pgp:0x13fefc40 | irc:fEnIo : :' : 32-050 Skawina - Glowackiego 3/15 - malopolskie v. - Poland `. `' phone:+48602383548 | proud Debian maintainer and user `- http://fenski.pl | xmpp:fe...@jabber.org | rlu:172001
signature.asc
Description: Digital signature