[Android-tools-devel] Bug#1149309: repo: FTBFS against python 3.15 (Connection reset by peer)
Margarita Manterola
marga at debian.org
Tue Sep 29 11:39:43 BST 2026
Package: src:repo
Version: 2.58-4
User: debian-python at lists.debian.org
Usertags: python3.15
Tags: ftbfs, forky, sid
Severity: important
Hi!
While rebuilding the python related packages against the Python 3.15 version we
found that repo fails to build from source:
https://debusine.debian.net/debian/r-python-python3.15/artifact/4856993/
From the log, the error seems to be:
-------------------------------------------------------------------------------
File "/usr/lib/python3.14/multiprocessing/forkserver.py", line 230, in main
spawn.import_main_path(main_path)
~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^
File "/usr/lib/python3.14/multiprocessing/spawn.py", line 307, in import_main_path
_fixup_main_from_path(main_path)
~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^
File "/usr/lib/python3.14/multiprocessing/spawn.py", line 297, in _fixup_main_from_path
main_content = runpy.run_path(main_path,
run_name="__mp_main__")
File "<frozen runpy>", line 294, in run_path
File "<frozen runpy>", line 98, in _run_module_code
File "<frozen runpy>", line 88, in _run_code
File "/build/reproducible-path/repo-2.58/release/update-manpages", line 26, in <module>
sys.exit(update_manpages.main(sys.argv[1:]))
~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^
File "/build/reproducible-path/repo-2.58/release/update_manpages.py", line 135, in main
with multiprocessing.Pool() as pool:
~~~~~~~~~~~~~~~~~~~~^^
File "/usr/lib/python3.14/multiprocessing/context.py", line 119, in Pool
return Pool(processes, initializer, initargs, maxtasksperchild,
context=self.get_context())
File "/usr/lib/python3.14/multiprocessing/pool.py", line 215, in __init__
self._repopulate_pool()
~~~~~~~~~~~~~~~~~~~~~^^
File "/usr/lib/python3.14/multiprocessing/pool.py", line 306, in _repopulate_pool
return self._repopulate_pool_static(self._ctx, self.Process,
~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^
self._processes,
^^^^^^^^^^^^^^^^
...<3 lines>...
self._maxtasksperchild,
^^^^^^^^^^^^^^^^^^^^^^^
self._wrap_exception)
^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3.14/multiprocessing/pool.py", line 329, in _repopulate_pool_static
w.start()
~~~~~~~^^
File "/usr/lib/python3.14/multiprocessing/process.py", line 121, in start
self._popen = self._Popen(self)
~~~~~~~~~~~^^^^^^
File "/usr/lib/python3.14/multiprocessing/context.py", line 306, in _Popen
return Popen(process_obj)
File "/usr/lib/python3.14/multiprocessing/popen_forkserver.py", line 35, in __init__
super().__init__(process_obj)
~~~~~~~~~~~~~~~~^^^^^^^^^^^^^
File "/usr/lib/python3.14/multiprocessing/popen_fork.py", line 20, in __init__
self._launch(process_obj)
~~~~~~~~~~~~^^^^^^^^^^^^^
File "/usr/lib/python3.14/multiprocessing/popen_forkserver.py", line 42, in _launch
prep_data = spawn.get_preparation_data(process_obj._name)
File "/usr/lib/python3.14/multiprocessing/spawn.py", line 164, in get_preparation_data
_check_not_importing_main()
~~~~~~~~~~~~~~~~~~~~~~~~~^^
File "/usr/lib/python3.14/multiprocessing/spawn.py", line 140, in _check_not_importing_main
raise RuntimeError('''
...<16 lines>...
''')
RuntimeError:
An attempt has been made to start a new process before the
current process has finished its bootstrapping phase.
This probably means that you are not using fork to start your
child processes and you have forgotten to use the proper idiom
in the main module:
if __name__ == '__main__':
freeze_support()
...
The "freeze_support()" line can be omitted if the program
is not going to be frozen to produce an executable.
To fix this issue, refer to the "Safe importing of main module"
section in https://docs.python.org/3/library/multiprocessing.html
Traceback (most recent call last):
File "/build/reproducible-path/repo-2.58/release/update-manpages", line 26, in <module>
sys.exit(update_manpages.main(sys.argv[1:]))
~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^
File "/build/reproducible-path/repo-2.58/release/update_manpages.py", line 135, in main
with multiprocessing.Pool() as pool:
~~~~~~~~~~~~~~~~~~~~^^
File "/usr/lib/python3.14/multiprocessing/context.py", line 119, in Pool
return Pool(processes, initializer, initargs, maxtasksperchild,
context=self.get_context())
File "/usr/lib/python3.14/multiprocessing/pool.py", line 215, in __init__
self._repopulate_pool()
~~~~~~~~~~~~~~~~~~~~~^^
File "/usr/lib/python3.14/multiprocessing/pool.py", line 306, in _repopulate_pool
return self._repopulate_pool_static(self._ctx, self.Process,
~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^
self._processes,
^^^^^^^^^^^^^^^^
...<3 lines>...
self._maxtasksperchild,
^^^^^^^^^^^^^^^^^^^^^^^
self._wrap_exception)
^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3.14/multiprocessing/pool.py", line 329, in _repopulate_pool_static
w.start()
~~~~~~~^^
File "/usr/lib/python3.14/multiprocessing/process.py", line 121, in start
self._popen = self._Popen(self)
~~~~~~~~~~~^^^^^^
File "/usr/lib/python3.14/multiprocessing/context.py", line 306, in _Popen
return Popen(process_obj)
File "/usr/lib/python3.14/multiprocessing/popen_forkserver.py", line 35, in __init__
super().__init__(process_obj)
~~~~~~~~~~~~~~~~^^^^^^^^^^^^^
File "/usr/lib/python3.14/multiprocessing/popen_fork.py", line 20, in __init__
self._launch(process_obj)
~~~~~~~~~~~~^^^^^^^^^^^^^
File "/usr/lib/python3.14/multiprocessing/popen_forkserver.py", line 51, in _launch
self.sentinel, w = forkserver.connect_to_new_process(self._fds)
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^
File "/usr/lib/python3.14/multiprocessing/forkserver.py", line 106, in connect_to_new_process
connection.answer_challenge(
~~~~~~~~~~~~~~~~~~~~~~~~~~~^
wrapped_client, self._forkserver_authkey)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3.14/multiprocessing/connection.py", line 995, in answer_challenge
message = connection.recv_bytes(256) # reject large message
File "/usr/lib/python3.14/multiprocessing/connection.py", line 226, in recv_bytes
buf = self._recv_bytes(maxlength)
File "/usr/lib/python3.14/multiprocessing/connection.py", line 451, in _recv_bytes
buf = self._recv(4)
File "/usr/lib/python3.14/multiprocessing/connection.py", line 416, in _recv
chunk = read(handle, to_read)
ConnectionResetError: [Errno 104] Connection reset by peer
make[1]: *** [debian/rules:9: override_dh_auto_build] Error 1
make[1]: Leaving directory '/build/reproducible-path/repo-2.58'
make: *** [debian/rules:6: binary-indep] Error 2
dpkg-buildpackage: error: debian/rules binary-indep subprocess failed with exit status 2
-------------------------------------------------------------------------------
Please note that while we ran into this error during the rebuild against Python
3.15, that doesn't mean that the root cause for the failure is necessarily the
new Python version.
Setting the severity to important for now. Once Python 3.15 is released and
later added to python3-defaults, this bug will become release critical.
--
Cheers,
Marga
More information about the Android-tools-devel
mailing list