You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I've run the ftp server torture tests in parallel mode with -j80.
I've noticed fork starting to fail.
After investigating I found that tests/ftpserver.pl uses the "sh" style open and not the "list" style.
It correctly cleans up the server process, but leaves the "sh" behind as a zombie.
I've fixed this locally by switching to the "list" style of open.
I can submit a pull request for that fix if wanted, but since it is rather small it might make more sense for the maintainers to do it themselves.
I expected the following
Fork not failing, no lingering processes, torture tests working in parallel test mode.
curl/libcurl version
WARNING: this libcurl is Debug-enabled, do not use in production
ftpserver.pl correctly cleans up spawned server processes,
but forgets to wait for the shell used to spawn them.
This is barely noticeable during a normal testrun,
but causes process exhaustion and test failure
during a complete torture run of the FTP tests.
Fixescurl#12018
ftpserver.pl correctly cleans up spawned server processes,
but forgets to wait for the shell used to spawn them.
This is barely noticeable during a normal testrun,
but causes process exhaustion and test failure
during a complete torture run of the FTP tests.
Fixescurl#12018Closescurl#12020
I did this
I've run the ftp server torture tests in parallel mode with -j80.
I've noticed fork starting to fail.
After investigating I found that tests/ftpserver.pl uses the "sh" style open and not the "list" style.
It correctly cleans up the server process, but leaves the "sh" behind as a zombie.
I've fixed this locally by switching to the "list" style of open.
I can submit a pull request for that fix if wanted, but since it is rather small it might make more sense for the maintainers to do it themselves.
I expected the following
Fork not failing, no lingering processes, torture tests working in parallel test mode.
curl/libcurl version
WARNING: this libcurl is Debug-enabled, do not use in production
curl 8.3.0-DEV (aarch64-unknown-linux-gnu) libcurl/8.3.0-DEV OpenSSL/3.0.9 zlib/1.2.13 c-ares/1.18.1
Release-Date: [unreleased]
Protocols: dict file ftp ftps gopher gophers http https imap imaps mqtt pop3 pop3s rtsp smb smbs smtp smtps telnet tftp ws wss
Features: alt-svc AsynchDNS Debug HSTS HTTPS-proxy IPv6 Largefile libz NTLM NTLM_WB SSL threadsafe TLS-SRP TrackMemory UnixSockets
operating system
Linux debian 6.1.0-12-arm64 #1 SMP Debian 6.1.52-1 (2023-09-07) aarch64 GNU/Linux
The text was updated successfully, but these errors were encountered: