Package: tinyproxy
Version: 1.10.0-5
Severity: important

Dear Maintainer,

I installed tinyproxy on an up-to-date Debian 11.1 (bullseye) installation. I'm 
seeing the issue that was reported in bug #968322 and later claimed to be fixed 
in version 1.10.0-5 (which I run) both with the default configuration and my 
custom configuration (see below) on two different machines. There seems to be 
some race condition or other magical circumstances involved, though, because 
after trying to reproduce this issue in a virtual machine, I could only trigger 
it with the default configuration after installing the package but not anymore 
with my custom configuration. But on my actual "production" system (a PC 
Engines APU2 box with some slower/dated AMD CPU) where tinyproxy was initially 
installed, I see the issue with both configurations.

Nevertheless, I tried a couple of changes to the systemd unit file and nothing 
solved the issue except the directive SuccessExitStatus=2.
I still found out one thing of note, though. I tried specifying an ExecStop 
command like so:
ExecStop=/usr/bin/kill -TERM $MAINPID

With this, after stopping the service, `systemctl status tinyproxy' showed that 
the kill command returned 0, but the main process returned 2. It seems to me 
that this contradicts the following statement in the original bug report which 
was:
> The issue is more likely caused by systemd paying attention to the return 
> value of its SIGTERM send calls [...]

I don't know whether that is helpful in terms of solving the cause for the 
issue. But I thought, I'd at least mention it.

As for the issue itself, unfortunately, the changes included in package version 
1.10.0-5 don't solve the issue entirely (at least not for me).


Thanks and regards,

Timo


-- System Information:
Debian Release: 11.1
  APT prefers stable-updates
  APT policy: (500, 'stable-updates'), (500, 'stable-security'), (500, 'stable')
Architecture: amd64 (x86_64)

Kernel: Linux 5.10.0-9-amd64 (SMP w/4 CPU threads)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8), 
LANGUAGE=en_US:en
Shell: /bin/sh linked to /usr/bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled

Versions of packages tinyproxy depends on:
ii  adduser        3.118
ii  logrotate      3.18.0-2
ii  lsb-base       11.1.0
ii  tinyproxy-bin  1.10.0-5

tinyproxy recommends no packages.

tinyproxy suggests no packages.

-- Configuration Files:
/etc/default/tinyproxy changed:
FLAGS="-c /etc/tinyproxy/tinyproxy.conf"

/etc/tinyproxy/tinyproxy.conf changed:
User tinyproxy
Group tinyproxy
Port 8443
Listen 192.168.122.10
Timeout 60
Syslog On
LogLevel Notice
PidFile "/run/tinyproxy/tinyproxy.pid"
MaxClients 3
MinSpareServers 1
MaxSpareServers 2
StartServers 1
MaxRequestsPerChild 0
Allow 192.168.218.10
ViaProxyName "tinyproxy"
Filter "/etc/tinyproxy/filter"
FilterDefaultDeny Yes
ConnectPort 443


-- no debconf information

Reply via email to