Public bug reported:
The ntruprime-fulltest autopkgtest fails with Python 3.14.
I observed this on amd64 while testing the libntruprime
0~20241021-6ubuntu1 merge for stonking.
The generated ntruprime-fulltest script uses multiprocessing.Pool to run
tests in parallel, but it starts the test runner at top level:
if not doit(todo):
...
With Python 3.14, worker processes can import the main script again.
When that happens, the test runner starts again while the worker process
is still being created, which causes this error:
RuntimeError:
An attempt has been made to start a new process before the
current process has finished its bootstrapping phase.
A possible fix is to add an if __name__ == "__main__" guard around the
generated entry point.
This was found while working on the libntruprime merge for LP: #2155193.
** Affects: libntruprime (Ubuntu)
Importance: Undecided
Assignee: Zineb Zaadoud (zineb-zaadoud)
Status: New
** Changed in: libntruprime (Ubuntu)
Assignee: (unassigned) => Zineb Zaadoud (zineb-zaadoud)
--
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/2156367
Title:
ntruprime-fulltest fails with Python 3.14 multiprocessing forkserver
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/libntruprime/+bug/2156367/+subscriptions
--
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs