FTP upload causes squid hang
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Squid |
Unknown
|
Unknown
|
|||
squid3 (Ubuntu) |
Fix Released
|
Undecided
|
Unassigned | ||
Trusty |
Fix Released
|
Medium
|
Andreas Hasenack | ||
Utopic |
Invalid
|
Undecided
|
Unassigned | ||
Vivid |
Invalid
|
Undecided
|
Unassigned |
Bug Description
[Impact]
Uploading an empty file to an ftp server through the squid3 proxy hits an assertion error and the proxy crashes. It recovers after a few seconds.
The patch is applied upstream and basically adds to FTP the same checks it already has for HTTP for this type of empty content.
[Test Case]
* deploy trusty on an lxd
* install packages:
$ sudo apt install squid3 proftpd-basic curl
* give the ubuntu user a password:
$ echo -e "ubuntu\nubuntu" | sudo passwd ubuntu
* create an empty file:
$ truncate -s 0 /tmp/zero
* try to upload it to the ubuntu user's home directory:
$ ftp_proxy=http://
On affected versions, that will return an error from curl:
curl: (52) Empty reply from server
The proxy cache.log file will show a crash and later restart on its own:
==> /var/log/
2017/09/28 18:01:47| assertion failed: Server.cc:244: "r->body_pipe != NULL"
[Regression Potential]
The patch is focused, applied upstream for quite some time (since Dec 2013) and still present in trunk. I don't have other comments about the patch.
[Other Info]
I couldn't find a debian bug about this, and also didn't file one because debian no longer ships this old version of squid according to rmadison.
-------
Hello,
Ubuntu 14.04 LTS with recent updates.
squid3 version 3.3.8-1ubuntu6.2
If we try to upload file by FTP squid hangs and not responding anymore. Logs show the following:
2015/02/19 10:52:19| assertion failed: Server.cc:244: "r->body_pipe != NULL"
I have found that this bug was resolved in the recent versions but not yet applied for squid3 in Ubuntu repository:
http://
http://
Could you apply the mentioned patch?
Best regards,
Stanislav
no longer affects: | squid (Ubuntu) |
Changed in squid3 (Ubuntu): | |
importance: | Undecided → Critical |
importance: | Critical → Undecided |
assignee: | nobody → Kick In (kick-d) |
Changed in squid3 (Ubuntu): | |
assignee: | Kick In (kick-d) → Nish Aravamudan (nacc) |
Changed in squid3 (Ubuntu Trusty): | |
assignee: | nobody → Andreas Hasenack (ahasenack) |
status: | Triaged → In Progress |
description: | updated |
Thank you for taking the time to report this bug and helping to make Ubuntu better.
Is this bug fixed in upstream release 3.4.8? If so, then I will be fixing the development release of Ubuntu shortly.
If someone can prepare backports, please follow the steps at https:/ /wiki.ubuntu. com/StableRelea seUpdates# Procedure to have Trusty, Utopic and Vivid updated.
All the steps documented there need to be followed. In particular, I'm concerned that we have a working test case that can be followed by someone not familiar with the package for SRU verification purposes.