Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 642034 - net-ftp/pure-ftpd: segfault when users tries to log in
Summary: net-ftp/pure-ftpd: segfault when users tries to log in
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: AMD64 Linux
: Normal major (vote)
Assignee: Lars Wendler (Polynomial-C) (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2017-12-22 13:09 UTC by bugs-gentoo
Modified: 2018-01-11 12:38 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
emerge --info (emerge--info,5.32 KB, text/plain)
2017-12-22 13:09 UTC, bugs-gentoo
Details

Note You need to log in before you can comment on or make changes to this bug.
Description bugs-gentoo 2017-12-22 13:09:30 UTC
Created attachment 511464 [details]
emerge --info

This is on gentoo and occurs on pure-ftpd 1.0.45-r1 and 1.0.47 with glibc-2.25-r9

Everytime a valid user tries to connect after entering their password, they lose connection with the server and a segfault is recorded in the kernel message buffer, here are a few:

[67839.232281] pure-ftpd[28788]: segfault at 0 ip 00007fee26d5a728 sp 00007ffcef1ecde8 error 6 in libc-2.25.so[7fee26ccd000+1a6000]
[67844.539252] pure-ftpd[28798]: segfault at 0 ip 00007fee26d5a728 sp 00007ffcef1ecde8 error 6 in libc-2.25.so[7fee26ccd000+1a6000]
[67849.855097] pure-ftpd[28805]: segfault at 0 ip 00007fee26d5a728 sp 00007ffcef1ecde8 error 6 in libc-2.25.so[7fee26ccd000+1a6000]
[67854.122138] pure-ftpd[28815]: segfault at 0 ip 00007fee26d5a728 sp 00007ffcef1ecde8 error 6 in libc-2.25.so[7fee26ccd000+1a6000]
[67859.431856] pure-ftpd[28822]: segfault at 0 ip 00007fee26d5a728 sp 00007ffcef1ecde8 error 6 in libc-2.25.so[7fee26ccd000+1a6000]
[68450.137138] pure-ftpd[6758]: segfault at 0 ip 00007f62c5019728 sp 00007ffcaf17bbd8 error 6 in libc-2.25.so[7f62c4f8c000+1a6000]
[68455.442117] pure-ftpd[6769]: segfault at 0 ip 00007f62c5019728 sp 00007ffcaf17bbd8 error 6 in libc-2.25.so[7f62c4f8c000+1a6000]
[68459.601318] pure-ftpd[6776]: segfault at 0 ip 00007f62c5019728 sp 00007ffcaf17bbd8 error 6 in libc-2.25.so[7f62c4f8c000+1a6000]
[69211.679526] pure-ftpd[8208]: segfault at 0 ip 00007f08e8a98728 sp 00007fff518768e8 error 6 in libc-2.25.so[7f08e8a0b000+1a6000]
[84603.243181] pure-ftpd[17249]: segfault at 0 ip 00007f02d875e728 sp 00007ffe29caa118 error 6 in libc-2.25.so[7f02d86d1000+1a6000]
[84638.287667] pure-ftpd[17325]: segfault at 0 ip 00007f02d875e728 sp 00007ffe29caa118 error 6 in libc-2.25.so[7f02d86d1000+1a6000]
[84781.025040] pure-ftpd[17796]: segfault at 0 ip 00007fbe82e5e728 sp 00007ffdc28900d8 error 6 in libc-2.25.so[7fbe82dd1000+1a6000]

kernel version is 4.9.34, the server is also configured to use puredb and has worked flawlessly since march, it only broke during this week's system update.

Bug previously reported to the pure-ftpd git repository -> https://github.com/jedisct1/pure-ftpd/issues/74 who suggested a fix -> https://github.com/jedisct1/pure-ftpd/commit/27a5c200f9643ce907118aad169279b3a66a9e8a

Which is currently not part of gentoo's pure-ftpd 1.0.47 release
Comment 1 peter 2018-01-05 14:28:13 UTC
Hello ,i can confirm this issue and suggested fix helped .thanks
Comment 2 Cddr 2018-01-11 12:07:35 UTC
Can confirm this.
Comment 3 Larry the Git Cow gentoo-dev 2018-01-11 12:38:45 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=6f9a62579c7893a902c0cf39c245e464d311befa

commit 6f9a62579c7893a902c0cf39c245e464d311befa
Author:     Lars Wendler <polynomial-c@gentoo.org>
AuthorDate: 2018-01-11 12:37:33 +0000
Commit:     Lars Wendler <polynomial-c@gentoo.org>
CommitDate: 2018-01-11 12:38:38 +0000

    net-ftp/pure-ftpd: Fixed segfault on login with newer glibc.
    
    Closes: https://bugs.gentoo.org/642034
    Package-Manager: Portage-2.3.19, Repoman-2.3.6

 .../files/pure-ftpd-1.0.47-MAX_DATA_SIZE.patch     |  22 ++++
 ...1.0.45-r1.ebuild => pure-ftpd-1.0.45-r2.ebuild} |   7 +-
 net-ftp/pure-ftpd/pure-ftpd-1.0.47-r1.ebuild       | 137 +++++++++++++++++++++
 3 files changed, 163 insertions(+), 3 deletions(-)