[Buildroot] dropbear & openssh transfers are limited to about 800k !?

Hinko Kocevar hinko.kocevar at cetrtapot.si
Fri Dec 12 13:44:13 UTC 2008


Andreas Kuehn wrote:
> 
> First, scp (sftp) segfaults in both directions.
> 
>  - getting a file from the host to the box ends at 880KB
>  - putting a file from the box to the host ends at 992KB
> 
> 
>  1. Here is the debug output of "scp user at host:gimp.ps ."
> Right in the middle you see a "segmentation fault"
> 

I would suggest to run the segfaulting process under
gdb(server) and backtrace when segfault occurs. You'll
probably need to rebuild uClibc and busybox with
debugging symbols.

...
> 
> read(7, "-!s8W-!s8W-!s8W-!s8W-!s8N\'!zz!!*"..., 4096) = 4096
> write(3, "-!s8W-!s8W-!s8W-!s8W-!s8N\'!zz!!*"..., 4096) = 4096
> read(7, "W-!s8W-!s8W-!s8W-!s8W-!s8W-!s8W-"..., 4096) = 4096
> write(3, "W-!s8W-!s8W-!s8W-!s8W-!s8W-!s8W-"..., 4096) = 4096
> read(7, "/\\;FNo=3&s;b3C6/$S=5uJs8W-!s8W-!"..., 4096) = 4096
> write(3, "/\\;FNo=3&s;b3C6/$S=5uJs8W-!s8W-!"..., 4096) = 4096
> --- SIGALRM (Alarm clock) @ 0 (0) ---
> getpgrp()                               = 884
> ioctl(1, TIOCGPGRP, [884])              = 0
> time(NULL)                              = 6388
> gimp.ps                                         8%  324KB 324.0KB/s
> 00:01    ) = 80
> --- SIGSEGV (Segmentation fault) @ 0 (0) ---
> +++ killed by SIGSEGV +++
> 

Segfault at 0, hmm, and in first second. Maybe time(NULL)
is the culprit here. Another thing - can you verify that
segfault occurs at the first second (eg. when time(NULL)
is first called), or does it happen on random elapsed time?

IIRC, latest buildroot uses uclibc-0.9.30, do early
versions work, try uClibc-0.9.29 perhaps?

HTH,
Hinko

-- 
Hinko Kočevar, OSS developer
ČETRTA POT, d.o.o.
Planina 3, 4000 Kranj, SI EU
tel     ++386 (0) 4 280 66 03
e-mail  hinko.kocevar at cetrtapot.si
http    www.cetrtapot.si




More information about the buildroot mailing list