Public bug reported:
When running the integration-test-suite-test of llvm-toolchain-20 and
llvm-toolchain-22 under
autopkgtest, the test completes successfully but the wrapper reports a leaked
background process and kills it. The process appears to be a helper that was
already in the middle of exiting, not a real leak.
I have encountered this message while running autopkgtest on llvm 20 and
22 PPA builds. I expect it to happen for 21 too, but have not tested it.
The message shows up regardless of if integration-test-suite is passed
or failed. I have seen this message for tenacious and stonking builds.
Note that this does NOT cause integration-test-suite to be marked as
failed by autopkgtest.
619s Unsupported: 19 (35.85%)
619s Passed : 34 (64.15%)
619s Built target check
619s /var/tmp/autopkgtest.vqdBun/wrapper.sh: Killing leaked background
processes: 2831
619s PID TTY STAT TIME COMMAND
619s 2831 ? R 0:00 /usr/bin/python3 -c import sys; from
multiprocessing.forkserver import main; main(10, 11, ['__main__'],
sys_argv=sys.argv[1:], **{... 'main_path': '/usr/bin/lit-22', ...})
/usr/bin/lit-22 --show-unsupported --show-xfail -v tests
This reflects a change in Python 3.14's libraries to use a new helper
process when creating multiple processes to run the tests in parallel.
That helper process outlives the parent slightly, by design, which then
trips the script's leak detection.
[ Expected behavior ]
The helper process should not be flagged as a leaked process when it is exiting
normally.
[ Why this matters ]
Any test that uses a Python multiprocessing forkserver (or similar helper that
exits asynchronously) could hit this race. The result seems to depends on
timing, so it may not show up on all runs.
Full log: http://autopkgtest.ubuntu.com/results/autopkgtest-tenacious-
ryancarlson12-llvm-22-autopkgtest-2/tenacious/amd64/l/llvm-
toolchain-22/20261112_235317_afe35@/log.gz
PPA:
https://launchpad.net/~ryancarlson12/+archive/ubuntu/llvm-22-autopkgtest-2
Corresponding build log:
https://launchpadlibrarian.net/884368684/buildlog_ubuntu-tenacious-
arm64.llvm-toolchain-22_1%3A22.1.8-1ubuntu2_BUILDING.txt.gz
Test invoked with `ppa tests ppa:ryancarlson12/llvm-22-autopkgtest-2`
** Affects: autopkgtest (Ubuntu)
Importance: Undecided
Status: New
--
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/2174432
Title:
Killing leaked background processes from python3
multiprocessing.forkserver
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/autopkgtest/+bug/2174432/+subscriptions
--
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs