bin/89100: premature EOF with ftpd on some large files

David Kelly dkelly at
Fri Nov 25 18:50:07 GMT 2005

The following reply was made to PR bin/89100; it has been noted by GNATS.

From: David Kelly <dkelly at>
To: bug-followup at
Subject: Re: bin/89100: premature EOF with ftpd on some large files
Date: Fri, 25 Nov 2005 12:41:50 -0600

 cvsup on November 22 changed a bunch of files but did not affect this  
 Of possible consequence, ACPI no longer works on this Dell 400SC.  
 When original P/R was filed had booted with ACPI disabled and only 1G  
 of 2G physical memory was detected in spite of /boot/loader.conf  
 New kernel still doesn't like ACPI but now recognizes full 2048M of  
 Every time I copy a problem file, the new copy downloads correctly  
 thru ftpd. The original still does not. Some time after making a copy  
 the copied file no longer downloads thru ftpd correctly. Always  
 exactly the last 4G is missing.
 Am not skilled at gdb enough to breakpoint in a forked process but  
 have sprinkled printf()'s in ftpd that I now believe the problem lies  
 in the sendfile(2) kernel routines and therefore this P/R should be  
 moved to kernel.
 Have not been able to grep for "sendfile" properly to find its  
 implementation in the kernel. Find it mentioned plenty of other  
 places but haven't found where the work gets done.
 David Kelly N4HHE, dkelly at
 Whom computers would destroy, they must first drive mad.

More information about the freebsd-bugs mailing list