Bug 132158 - 64bit httpd doesn't serve files >2Gb
Summary: 64bit httpd doesn't serve files >2Gb
Keywords:
Status: CLOSED RAWHIDE
Alias: None
Product: Fedora
Classification: Fedora
Component: kernel
Version: rawhide
Hardware: x86_64
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Arjan van de Ven
QA Contact: Brian Brock
URL:
Whiteboard:
Depends On:
Blocks: FC3Blocker
TreeView+ depends on / blocked
 
Reported: 2004-09-09 12:22 UTC by Karsten Hopp
Modified: 2007-11-30 22:10 UTC (History)
2 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2004-09-14 12:44:12 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

Description Karsten Hopp 2004-09-09 12:22:15 UTC
From Bugzilla Helper:
User-Agent: Mozilla/5.0 (compatible; Konqueror/3.3; Linux) (KHTML, like Gecko)

Description of problem:
Downloads of large files from apache running on x86_64 fail after
~2Gb:
sendfile(12, 14, [2147205120], 2125864960) = 196608
poll([{fd=12, events=POLLOUT, revents=POLLOUT}], 1, 300000) = 1
sendfile(12, 14, [2147401728], 2125668352) = 81919
poll([{fd=12, events=POLLOUT, revents=POLLOUT}], 1, 300000) = 1
sendfile(12, 14, [2147483647], 2125586433) = -1 EOVERFLOW (Value too large for
defined data type)
write(9, "127.0.0.1 - - [08/Sep/2004:17:29"..., 147) = 147
close(12)                               = 0
read(5, 0x7fbffffa4f, 1)                = -1 EAGAIN (Resource temporarily
unavailable)
close(14)                               = 0
close(13)                               = 0


Version-Release number of selected component (if applicable):
httpd-2.0.50-7

How reproducible:
Always

Steps to Reproduce:
1.install 64bit httpd package on a 64bit machine
2.create a file >2Gb in the html directory
3.try to download the file (preferably from the same or another 64bit
  machine just in case the 32bit client can't handle large files)
4.strace the httpd process to get the above output
    

Actual Results:  downloads fail after 2Gb

Expected Results:  complete download of files >2Gb

Additional info:

Comment 1 Joe Orton 2004-09-09 13:44:05 UTC
Can you try booting e.g. the RHEL3 kernel on this box to see if this
is a regression in 2.6?

Comment 2 Joe Orton 2004-09-09 13:54:53 UTC
I can't see that httpd is doing anything wrong here, this is either a
libc bug, or a kernel bug.

http://www.ussg.iu.edu/hypermail/linux/kernel/0405.2/0547.html

says there was a bug with these symptoms in some kernels.

Comment 3 Karsten Hopp 2004-09-09 14:18:50 UTC
Yes, looks like a kernel problem. Booting the same system with the 
RHEL3-U3 kernel fixed it for me. 

Comment 4 Karsten Hopp 2004-09-14 12:44:12 UTC
I didn't see patch for this, probably hidden in the bk-patch. But 
this works with kernel-2.6.8-1.567smp 


Note You need to log in before you can comment on or make changes to this bug.