Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 80330 - openssh is not able to copy large files (>2GB)
Summary: openssh is not able to copy large files (>2GB)
Status: VERIFIED NEEDINFO
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: High enhancement (vote)
Assignee: Daniel Ahlberg (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-02-01 06:17 UTC by Mark
Modified: 2005-03-17 06:34 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Mark 2005-02-01 06:17:55 UTC
I don't know why but I have this problem since gentoo 1.4: I cannot scp a large file from or to my PC, when scp reaches 2GB it stands still.
I'm using openssh-3.9_p1-r1

I disabled all my CFLAGS but this had no effect.

Reproducible: Always
Steps to Reproduce:
1. scp a >2GB file
2.
3.



Expected Results:  
The file should be copied. 

Portage 2.0.51-r15 (default-linux/x86/2004.0, gcc-3.4.3, 
glibc-2.3.4.20041102-r0, 2.6.10-cko3 i686) 
================================================================= 
System uname: 2.6.10-cko3 i686 AMD Athlon(tm) XP 1700+ 
Gentoo Base System version 1.6.9 
Python:              dev-lang/python-2.3.4 [2.3.4 (#1, Oct 31 2004, 11:46:53)] 
distcc 2.17 i686-pc-linux-gnu (protocols 1 and 2) (default port 3632) 
[disabled] 
ccache version 2.3 [enabled] 
dev-lang/python:     2.3.4 
sys-devel/autoconf:  2.59-r6, 2.13 
sys-devel/automake:  1.8.5-r2, 1.5, 1.4_p6, 1.6.3, 1.7.9, 1.9.4 
sys-devel/binutils:  2.15.92.0.2-r1, 2.15.92.0.2-r2 
sys-devel/libtool:   1.5.10-r4 
virtual/os-headers:  2.6.8.1-r2 
ACCEPT_KEYWORDS="x86 ~x86" 
AUTOCLEAN="yes" 
CFLAGS="-march=athlon-xp -m3dnow -mfpmath=sse -O3 -pipe -fforce-addr 
-fomit-frame-pointer -funroll-loops -falign-functions=4 
-maccumulate-outgoing-args -ffast-math -fprefetch-loop-arrays 
-fstack-protector" 
CHOST="i686-pc-linux-gnu" 
CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3.3/env /usr/kde/3.3/share/config /usr/kde/3.3/shutdown /usr/kde/3.4/env /usr/kde/3.4/share/config /usr/kde/3.4/shutdown /usr/kde/3/share/config /usr/lib/X11/xkb /usr/share/config /usr/share/texmf/dvipdfm/config/ /usr/share/texmf/dvips/config/ /usr/share/texmf/tex/generic/config/ /usr/share/texmf/tex/platex/config/ /usr/share/texmf/xdvi/ /var/qmail/control" 
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d" 
CXXFLAGS="-march=athlon-xp -m3dnow -mfpmath=sse -O3 -pipe -fforce-addr 
-fomit-frame-pointer -funroll-loops -falign-functions=4 
-maccumulate-outgoing-args -ffast-math -fprefetch-loop-arrays 
-fstack-protector" 
DISTDIR="/usr/portage/distfiles" 
FEATURES="autoaddcvs autoconfig ccache digest distlocks sandbox sfperms" 
GENTOO_MIRRORS="ftp://sunsite.informatik.rwth-aachen.de/pub/Linux/gentoo 
ftp://linux.rz.ruhr-uni-bochum.de/gentoo-mirror/ 
http://linux.rz.ruhr-uni-bochum.de/download/gentoo-mirror/" 
LANG="de_DE@euro" 
MAKEOPTS="-j4" 
PKGDIR="/usr/portage/packages" 
PORTAGE_TMPDIR="/var/tmp" 
PORTDIR="/usr/portage" 
PORTDIR_OVERLAY="/usr/local/portage" 
SYNC="rsync://rsync.gentoo.org/gentoo-portage" 
USE="3dnow X acpi alsa apache2 arts artswrappersuid avi bash-completion cdr 
codecs crypt cups curl dga directfb divx4linux dvd encode exif extensions f77 
fbcon fortran ftp gif gimp gimp-print gpm gtk gtk2 icq imagemagick jabber java 
jce jikes jpeg jpeg2k kde lesstif libwww lzo maildir mmx motif mozilla mpeg 
mysql ncurses network nls nptl nptlonly oggvorbis ooo-kde openal opengl oscar 
pam pdflib perl png posix ppds python qt quicktime readline real samba scanner 
sdl slang speex spell sse ssl svg svga tcltk tetex tiff truetype unicode usb 
wmf wxwindows x86 xine xml xml2 xmms xosd xv xvid zlib linguas_de" 
Unset:  ASFLAGS, CBUILD, CTARGET, LC_ALL, LDFLAGS
Comment 1 Carsten Lohrke (RETIRED) gentoo-dev 2005-02-01 08:16:06 UTC
Are you sure that the problem isn't the filesystem?
Comment 2 Mark 2005-02-03 01:19:25 UTC
reiser 3.6 on my machine has no 2GB limit (reiser 3.6 allows a filesize of 2^60 bytes). If there were a limit I couldn't even store a 4GB file on it.
The other PCs I want to copy my files to can scp big files (they are running debian with ext3)
Comment 3 SpanKY gentoo-dev 2005-03-13 02:27:14 UTC
if you add:
-D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE
to your CFLAGS, does it work ?
Comment 4 Mark 2005-03-14 04:03:52 UTC
yes, adding these CFLAGS solved the problem. I can copy and receive large files now.
Comment 5 SpanKY gentoo-dev 2005-03-14 07:11:27 UTC
could you run `emerge openssh >& log` w/out adding those defines to your CFLAGS and post the logfile here ?  the configure script *should* detect and enable LFS for you ...
Comment 6 SpanKY gentoo-dev 2005-03-16 17:12:39 UTC
well, get back to us
Comment 7 Mark 2005-03-17 06:10:54 UTC
This is stange. I removed those CFLAGS and emerged 3.9 again: it works though it didn't work before for a long time. I can't explain why, I changed nothing.

----8<----
checking for special C compiler options needed for large files... no
checking for _FILE_OFFSET_BITS value needed for large files... 64
checking for _LARGE_FILES value needed for large files... no
----8<----

I thought computers where rational... :-/


I upgraded to openssh 4 now, it works too without extra CFLAGS.
Comment 8 SpanKY gentoo-dev 2005-03-17 06:34:24 UTC
ah, computers acting irrationally is a feature, it must have forgotten to tell you that ;)

please re-open w/appropriate logs if this starts happening again