[Bug 1560429] Re: squid3: segfault when ftp passive mode is not available
Andreas Hasenack
andreas at canonical.com
Tue Jul 4 19:37:17 UTC 2017
Easy to reproduce with proftpd and this config inside the default anonymous section:
<Limit EPSV PASV>
DenyAll
</Limit>
Proftpd's extended log shows squid trying passive mode and getting back a 501:
trusty-squid-passive-ftp-1560429.lxd UNKNOWN - [04/Jul/2017:19:35:24 +0000] "USER anonymous" 331 -
trusty-squid-passive-ftp-1560429.lxd UNKNOWN ftp [04/Jul/2017:19:35:24 +0000] "PASS (hidden)" 230 -
trusty-squid-passive-ftp-1560429.lxd UNKNOWN ftp [04/Jul/2017:19:35:24 +0000] "TYPE A" 200 -
trusty-squid-passive-ftp-1560429.lxd UNKNOWN ftp [04/Jul/2017:19:35:24 +0000] "MDTM readme.txt" 213 -
trusty-squid-passive-ftp-1560429.lxd UNKNOWN ftp [04/Jul/2017:19:35:24 +0000] "EPSV 1" 501 -
trusty-squid-passive-ftp-1560429.lxd UNKNOWN ftp [04/Jul/2017:19:35:24 +0000] "PASV" 501 -
Which squid doesn't like and crashes:
Program received signal SIGSEGV, Segmentation fault.
Ip::Address::GetPort (this=0x8) at Address.cc:806
806 Address.cc: No such file or directory.
(gdb) bt
#0 Ip::Address::GetPort (this=0x8) at Address.cc:806
#1 0x0000559917ef0d68 in ftpSendEPRT (ftpState=ftpState at entry=0x5599192f9198) at ftp.cc:2925
I'll try the bzr commit diff from the upstream squid bug.
--
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to the bug report.
https://bugs.launchpad.net/bugs/1560429
Title:
squid3: segfault when ftp passive mode is not available
To manage notifications about this bug go to:
https://bugs.launchpad.net/squid/+bug/1560429/+subscriptions
More information about the Ubuntu-server-bugs
mailing list