Comment 4 for bug 1560429

Revision history for this message
Andreas Hasenack (ahasenack) wrote :

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@entry=0x5599192f9198) at ftp.cc:2925

I'll try the bzr commit diff from the upstream squid bug.