ProFTPD 1.3.0 ( the older 1.2 series ebuild has the same problem, but i upgraded to 1.3.0, although ~amd64, in order to see if it would resolve my issue ) segfaults the Proftpd child process when uploading files above a certain size ( up to 2.6meg is fine, 2.8meg segfaults ). The segfault happens right after the file is finished uploading, disconnecting the FTP session and (naturally) producing an error on the client side. While most of the time the uploaded file is intact (tested with binary diff), i have received user complaints on the server of corrupted uploads. See strace of upload in progress below + emerge --info. My untrained nose suspects a potential gcc/glibc issue, as i have several servers with the same config/hardware ( clones, all SMP AMD64 machines, nearly identical hardware, all running hardened ) that have the same config and same versions but an older gcc/glibc version. This server is a "new" build using a recent stable gcc/glibc (i don't fancy upgrading gcc/glibc a lot on stable production servers when there is no security or other issue). Logs, Strace & emerge --info attached
Created attachment 93161 [details] Logs + strace + emerge --info
I cannot duplicate this on my unstable amd64 machine. Either the amd64 team has an idea or you will have to update glibc.
A backtrace would be useful to locate the problem. You can obtain one by: # emerge gdb if you don't have it already setting FEATURES=nostrip and adding -ggdb to your CFLAGS re-merging proftpd restarting proftpd # gdb proftpd $(pgrep proftpd) type "cont" on the (gdb) prompt upload a file to reproduce the crash type "bt full" and attach the output to the bug.
I cannot duplicate this either, works on my amd64 and x86 systems... Try without -ffast-math in the C(XX)FLAGS, that sometimes causes problems... And we need more info... Does it still happen with the latest 1.3.0-r2? What are your GCC/Glibc versions now? (GCC4.1 and Glibc 2.4 are the stable ones for desktop profiles now...) Also we really would need a backtrace to try to solve this... Best regards, CHTEKK.
Forgot to mention: I too run Hardened/AMD64 systems, they all run ProFTPd for FTP serving and it works there too. Best regards, CHTEKK.