bin/89100: premature EOF with ftpd on some large files
David Kelly
dkelly at HiWAAY.net
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 HiWAAY.net>
To: bug-followup at FreeBSD.org
Cc:
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
problem.
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
containing:
if_ath_load=YES
snd_ich_load=YES
geom_vinum_load=YES
hw.ata.atapi_dma=1
kern.maxdsiz="2G"
kern.dfldsiz="2G"
hw.physmem="2G"
kern.maxssiz="128M"
New kernel still doesn't like ACPI but now recognizes full 2048M of
memory.
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 HiWAAY.net
========================================================================
Whom computers would destroy, they must first drive mad.
More information about the freebsd-bugs
mailing list