Bug 1337880

Summary: Proftpd-1.3.5b-1.el7.x86_64 segfaults on fully up-to-date CentOS 7 for sftp uploads
Product: [Fedora] Fedora EPEL Reporter: Tim Verhoeven <tim.verhoeven.be>
Component: proftpdAssignee: Paul Howarth <paul>
Status: CLOSED ERRATA QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: urgent Docs Contact:
Priority: unspecified    
Version: epel7CC: itamar, matthias, paul, tim.verhoeven.be
Target Milestone: ---   
Target Release: ---   
Hardware: x86_64   
OS: Linux   
Whiteboard:
Fixed In Version: proftpd-1.3.5b-2.el7 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2016-06-21 03:19:11 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Tim Verhoeven 2016-05-20 10:44:14 UTC
Description of problem:
We are using proftp to provide a SFTP service. We noticed that since the latest version (we just upgraded to it), that uploads using SFTP on a fully up to date C7 causing the daemon to segfault. This causes corrupted data.


Version-Release number of selected component (if applicable):
proftpd-1.3.5b-1.el7.x86_64 

How reproducible:
Almost always (> 70%)

Steps to Reproduce:
1. Install the latest proftpd on a fully up to date C7
2. Upload multiple packages using SFTP
3. After the first package corruption can occur

Actual results:
Files of correct size, but corrupted content on the server

Expected results:
Completely intact files on the server

Additional info:
This line is visible in the /var/log/messages:
May 20 10:56:28 localhost proftpd[11719]: 0.0.0.0 (10.57.25.155[10.57.25.155]) - ProFTPD terminating (signal 11)

Comment 1 Tim Verhoeven 2016-05-20 10:46:52 UTC
Some more additionel info, going back to 1.3.5a-2 fixed the segfault.

Comment 2 Paul Howarth 2016-05-21 19:37:31 UTC
Looks a bit like http://bugs.proftpd.org/show_bug.cgi?id=4203

Can you give this scratch build a try and see if it helps?
http://koji.fedoraproject.org/koji/taskinfo?taskID=14208851

Comment 3 Tim Verhoeven 2016-06-01 09:27:23 UTC
Hello Paul,

I've got a bit delayed dealing with other stuff. But I've upgraded our server today with that build from koji and I can confirm that it fixes the segfault. So proftpd no longer crashes and files are no longer corrupted.

This build can be pushed our IMHO.

Thanks, Tim

Comment 4 Paul Howarth 2016-06-01 09:29:45 UTC
Hi Tim,

thanks for the feedback; I'll push out updates for EPEL and Fedora now.

Comment 5 Fedora Update System 2016-06-01 10:13:09 UTC
proftpd-1.3.5b-2.el7 has been submitted as an update to Fedora EPEL 7. https://bodhi.fedoraproject.org/updates/FEDORA-EPEL-2016-e9000a1ec5

Comment 6 Fedora Update System 2016-06-03 22:50:54 UTC
proftpd-1.3.5b-2.el7 has been pushed to the Fedora EPEL 7 testing repository. If problems still persist, please make note of it in this bug report.
See https://fedoraproject.org/wiki/QA:Updates_Testing for
instructions on how to install test updates.
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-EPEL-2016-e9000a1ec5

Comment 7 Fedora Update System 2016-06-21 03:19:07 UTC
proftpd-1.3.5b-2.el7 has been pushed to the Fedora EPEL 7 stable repository. If problems still persist, please make note of it in this bug report.