Skip to contentSkip to conversation

sendfile -EOVERFLOW on AMD64

DISCUSSION Jan Kasprzak 1 participant 1 message May 19, 2004

lore
Share & tools
lore
#0 lore raw

Hello,

today (after the Fedora Core 2 release) I have discovered that my FTP server (running AMD64) cannot correctly send the >2GB files using sendfile(). The server is ProFTPd, and the strace looks like this:

[...]
alarm(288) = 0
sendfile(14, 11, [139377240], 4231263656) = 2008106407

alarm(0)                                = 117
alarm(117)                              = 0
alarm(0)                                = 117
alarm(117)                              = 0

sendfile(14, 11, [2147483647], 2223157249) = -1 EOVERFLOW (Value too large for defined data type)

The image (FC2-i386-DVD.iso) has 4370640896 bytes. The FTP server is native x86_64 binary, not a 32-bit one.

Thanks for any hints.

-Yenya

Signature · 5 lines
| Jan "Yenya" Kasprzak  <kas at {fi.muni.cz - work | yenya.net - private}> |
| GPG: ID 1024/D3498839      Fingerprint 0D99A7FB206605D7 8B35FCDE05B18A5E |
| http://www.fi.muni.cz/~kas/   Czech Linux Homepage: http://www.linux.cz/ |
 Any compiler or language that likes to hide things like memory allocations
 behind your back just isn't a good choice for a kernel.   --Linus Torvalds