Package: stunnel4
Version: 3:5.56-1
Severity: normal

--- Please enter the report below this line. ---

There seems to be a race condition in handling child processes in the
test runtime that the script happens to loose on my system reliably.
Loosing in this case means spinning forever when child process exits
too soon.

This is easily shown by running the tests before compiling anything:

.../c/stunnel4-5.56$ debian/tests/runtime 
Found the certificate at debian/tests/certs/certificate.pem and the private key 
at debian/tests/certs/key.pem
Using the /tmp/user/1000/qzcveeWud_ temporary directory
About to get the stunnel version information
stunnel produced output before the version number:
Can't exec "stunnel4": No such file or directory at debian/tests/runtime line 
381.
__DIE__ handler invoked: Could not execute 'stunnel4': No such file or directory
say() on closed filehandle STDOUT at debian/tests/runtime line 114.
say() on closed filehandle STDOUT at debian/tests/runtime line 116.
Could not execute 'stunnel4': No such file or directory

__DIE__ handler invoked: Could not get the stunnel version number
Oof, let us see if there are any children left
Pffth, sending a SIGKILL to 13127
Some children remaining, laying low for a second...
- waiting for 13127 (stunnel4 -version)
^C

Strace shows that the process is spinning read()ing the pipe and ignoring 0 
return (EOF). It is also kill()ing the child with SIGKILL after it wait4()ed 
for it and got its pid from the wait.

--- System information. ---
Architecture: 
Kernel:       Linux 5.5.14mq+

Debian Release: 10.3
  900 stable-debug    debug.mirrors.debian.org 
  900 stable          security.debian.org 
  900 stable          ftp.pl.debian.org 
  900 stable          dl.winehq.org 
  900 proposed-updates ftp.pl.debian.org 
  850 buster-backports ftp.pl.debian.org 
  800 testing         ftp.pl.debian.org 
  700 unstable        ftp.pl.debian.org 
  600 experimental    ftp.pl.debian.org 
  540 oldstable-proposed-updates ftp.pl.debian.org 
  540 oldstable       security.debian.org 
  540 oldstable       ftp.pl.debian.org 
  500 unstable-debug  debug.mirrors.debian.org 
  500 testing-debug   debug.mirrors.debian.org 
  100 buster-backports-debug debug.mirrors.debian.org 
    1 experimental-debug debug.mirrors.debian.org 

--- Package information. ---
Depends           (Version) | Installed
===========================-+-============
libc6             (>= 2.14) | 
libssl1.1       (>= 1.1.0d) | 
libsystemd0                 | 
libwrap0        (>= 7.6-4~) | 
perl:any                    | 
lsb-base                    | 
netbase                     | 
openssl                     | 


Package's Recommends field is empty.

Suggests               (Version) | Installed
================================-+-===========
logcheck-database                | 

Reply via email to