Skip to content

gh-91555: Revert disabling of logger while handling log record. #135858

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jun 25, 2025

Conversation

vsajip
Copy link
Member

@vsajip vsajip commented Jun 23, 2025

@vsajip vsajip changed the title gh-91555: Revert: disabling of logger while handling log record. gh-91555: Revert disabling of logger while handling log record. Jun 23, 2025
@vsajip vsajip added the 🔨 test-with-buildbots Test PR w/ buildbots; report in status section label Jun 23, 2025
@bedevere-bot
Copy link

🤖 New build scheduled with the buildbot fleet by @vsajip for commit b58f0d3 🤖

Results will be shown at:

https://buildbot.python.org/all/#/grid?branch=refs%2Fpull%2F135858%2Fmerge

If you want to schedule another build, you need to add the 🔨 test-with-buildbots label again.

@bedevere-bot bedevere-bot removed the 🔨 test-with-buildbots Test PR w/ buildbots; report in status section label Jun 23, 2025
@vsajip vsajip merged commit 18d32fb into python:main Jun 25, 2025
125 of 127 checks passed
@vsajip vsajip deleted the revert-logger-disabling branch June 25, 2025 05:42
@vsajip vsajip added 3.13 bugs and security fixes 3.14 bugs and security fixes needs backport to 3.13 bugs and security fixes needs backport to 3.14 bugs and security fixes and removed 3.13 bugs and security fixes 3.14 bugs and security fixes labels Jun 25, 2025
@miss-islington-app
Copy link

Thanks @vsajip for the PR 🌮🎉.. I'm working now to backport this PR to: 3.14.
🐍🍒⛏🤖

@miss-islington-app
Copy link

Thanks @vsajip for the PR 🌮🎉.. I'm working now to backport this PR to: 3.13.
🐍🍒⛏🤖

miss-islington pushed a commit to miss-islington/cpython that referenced this pull request Jun 25, 2025
…pythonGH-135858)

Revert "pythongh-91555: disable logger while handling log record (pythonGH-131812)"

This reverts commit 2561e14.
(cherry picked from commit 18d32fb)

Co-authored-by: Vinay Sajip <vinay_sajip@yahoo.co.uk>
@bedevere-app
Copy link

bedevere-app bot commented Jun 25, 2025

GH-135910 is a backport of this pull request to the 3.14 branch.

@bedevere-app bedevere-app bot removed the needs backport to 3.14 bugs and security fixes label Jun 25, 2025
miss-islington pushed a commit to miss-islington/cpython that referenced this pull request Jun 25, 2025
…pythonGH-135858)

Revert "pythongh-91555: disable logger while handling log record (pythonGH-131812)"

This reverts commit 2561e14.
(cherry picked from commit 18d32fb)

Co-authored-by: Vinay Sajip <vinay_sajip@yahoo.co.uk>
@bedevere-app
Copy link

bedevere-app bot commented Jun 25, 2025

GH-135911 is a backport of this pull request to the 3.13 branch.

@bedevere-app bedevere-app bot removed the needs backport to 3.13 bugs and security fixes label Jun 25, 2025
vsajip added a commit that referenced this pull request Jun 25, 2025
@bedevere-bot
Copy link

⚠️⚠️⚠️ Buildbot failure ⚠️⚠️⚠️

Hi! The buildbot aarch64 Android 3.14 (tier-3) has failed when building commit df1c124.

What do you need to do:

  1. Don't panic.
  2. Check the buildbot page in the devguide if you don't know what the buildbots are or how they work.
  3. Go to the page of the buildbot that failed (https://buildbot.python.org/#/builders/1794/builds/285) and take a look at the build logs.
  4. Check if the failure is related to this commit (df1c124) or if it is a false positive.
  5. If the failure is related to this commit, please, reflect that on the issue and make a new Pull Request with a fix.

You can take a look at the buildbot page here:

https://buildbot.python.org/#/builders/1794/builds/285

Failed tests:

  • test.test_concurrent_futures.test_interpreter_pool

Failed subtests:

  • test_submit_local_instance - test.test_concurrent_futures.test_interpreter_pool.InterpreterPoolExecutorTest.test_submit_local_instance
  • test_map_buffersize - test.test_concurrent_futures.test_interpreter_pool.InterpreterPoolExecutorTest.test_map_buffersize
  • test_map_exception - test.test_concurrent_futures.test_interpreter_pool.InterpreterPoolExecutorTest.test_map_exception
  • test_default_executor - test.test_concurrent_futures.test_interpreter_pool.AsyncioTest.test_default_executor
  • test_submit_exception_in_func - test.test_concurrent_futures.test_interpreter_pool.InterpreterPoolExecutorTest.test_submit_exception_in_func
  • test_run_in_executor - test.test_concurrent_futures.test_interpreter_pool.AsyncioTest.test_run_in_executor
  • test_saturation - test.test_concurrent_futures.test_interpreter_pool.InterpreterPoolExecutorTest.test_saturation
  • test_map_buffersize_on_multiple_infinite_iterables - test.test_concurrent_futures.test_interpreter_pool.InterpreterPoolExecutorTest.test_map_buffersize_on_multiple_infinite_iterables
  • test_blocking - test.test_concurrent_futures.test_interpreter_pool.InterpreterPoolExecutorTest.test_blocking
  • test_map_buffersize_on_infinite_iterable - test.test_concurrent_futures.test_interpreter_pool.InterpreterPoolExecutorTest.test_map_buffersize_on_infinite_iterable
  • test_init_func - test.test_concurrent_futures.test_interpreter_pool.InterpreterPoolExecutorTest.test_init_func
  • test_submit_keyword - test.test_concurrent_futures.test_interpreter_pool.InterpreterPoolExecutorTest.test_submit_keyword
  • test_swallows_falsey_exceptions - test.test_concurrent_futures.test_interpreter_pool.InterpreterPoolExecutorTest.test_swallows_falsey_exceptions
  • test_pickle_errors_propagate - test.test_concurrent_futures.test_interpreter_pool.InterpreterPoolExecutorTest.test_pickle_errors_propagate
  • test_map_timeout - test.test_concurrent_futures.test_interpreter_pool.InterpreterPoolExecutorTest.test_map_timeout
  • test_submit - test.test_concurrent_futures.test_interpreter_pool.InterpreterPoolExecutorTest.test_submit
  • test_blocking_with_limited_workers - test.test_concurrent_futures.test_interpreter_pool.InterpreterPoolExecutorTest.test_blocking_with_limited_workers
  • test_init_closure - test.test_concurrent_futures.test_interpreter_pool.InterpreterPoolExecutorTest.test_init_closure
  • test_map - test.test_concurrent_futures.test_interpreter_pool.InterpreterPoolExecutorTest.test_map
  • test_submit_func_globals - test.test_concurrent_futures.test_interpreter_pool.InterpreterPoolExecutorTest.test_submit_func_globals
  • test_map_buffersize_on_multiple_iterables - test.test_concurrent_futures.test_interpreter_pool.InterpreterPoolExecutorTest.test_map_buffersize_on_multiple_iterables
  • test_init_instance_method - test.test_concurrent_futures.test_interpreter_pool.InterpreterPoolExecutorTest.test_init_instance_method
  • test_init_exception_in_func - test.test_concurrent_futures.test_interpreter_pool.InterpreterPoolExecutorTest.test_init_exception_in_func
  • test_submit_instance_method - test.test_concurrent_futures.test_interpreter_pool.InterpreterPoolExecutorTest.test_submit_instance_method
  • test_idle_thread_reuse - test.test_concurrent_futures.test_interpreter_pool.InterpreterPoolExecutorTest.test_idle_thread_reuse
  • test_submit_closure - test.test_concurrent_futures.test_interpreter_pool.InterpreterPoolExecutorTest.test_submit_closure

Summary of the results of the build (if available):

==

Click to see traceback logs
Traceback (most recent call last):
  File "/data/user/0/org.python.testbed/files/python/lib/python3.14/test/test_concurrent_futures/test_interpreter_pool.py", line 527, in test_default_executor
    interpid, = self.loop.run_until_complete(fut)
                ~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^
  File "/data/user/0/org.python.testbed/files/python/lib/python3.14/asyncio/base_events.py", line 719, in run_until_complete
    return future.result()
           ~~~~~~~~~~~~~^^
concurrent.futures.interpreter.BrokenInterpreterPool: A thread initializer failed, the thread pool is not usable anymore


Traceback (most recent call last):
  File "/data/user/0/org.python.testbed/files/python/lib/python3.14/concurrent/futures/thread.py", line 99, in _worker
    ctx.initialize()
    ~~~~~~~~~~~~~~^^
  File "/data/user/0/org.python.testbed/files/python/lib/python3.14/concurrent/futures/interpreter.py", line 65, in initialize
    self.results = interpreters.create_queue(maxsize)
                   ~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^
  File "/data/user/0/org.python.testbed/files/python/lib/python3.14/concurrent/interpreters/_queues.py", line 75, in create
    unbound = _serialize_unbound(unbounditems)
  File "/data/user/0/org.python.testbed/files/python/lib/python3.14/concurrent/interpreters/_queues.py", line 56, in _serialize_unbound
    return _crossinterp.serialize_unbound(unbound)
           ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^
  File "/data/user/0/org.python.testbed/files/python/lib/python3.14/concurrent/interpreters/_crossinterp.py", line 85, in serialize_unbound
    raise NotImplementedError(f'unsupported unbound replacement op {op!r}')
NotImplementedError: unsupported unbound replacement op concurrent.interpreters._queues.UNBOUND
ERROR
Exception in initializer:
Traceback (most recent call last):
  File "/data/user/0/org.python.testbed/files/python/lib/python3.14/concurrent/interpreters/_crossinterp.py", line 83, in serialize_unbound
    flag = _UNBOUND_CONSTANT_TO_FLAG[op]
           ~~~~~~~~~~~~~~~~~~~~~~~~~^^^^
KeyError: concurrent.interpreters._queues.UNBOUND


Traceback (most recent call last):
  File "/data/user/0/org.python.testbed/files/python/lib/python3.14/test/test_concurrent_futures/executor.py", line 123, in test_map_buffersize_on_multiple_iterables
    self.assertListEqual(list(res), [0, 2, 4, 6])
                         ~~~~^^^^^
  File "/data/user/0/org.python.testbed/files/python/lib/python3.14/concurrent/futures/_base.py", line 636, in result_iterator
    fs.appendleft(executor.submit(fn, *args))
                  ~~~~~~~~~~~~~~~^^^^^^^^^^^
  File "/data/user/0/org.python.testbed/files/python/lib/python3.14/concurrent/futures/thread.py", line 202, in submit
    raise self.BROKEN(self._broken)
concurrent.futures.interpreter.BrokenInterpreterPool: A thread initializer failed, the thread pool is not usable anymore


Traceback (most recent call last):
  File "/data/user/0/org.python.testbed/files/python/lib/python3.14/test/test_concurrent_futures/executor.py", line 231, in test_swallows_falsey_exceptions
    self.executor.submit(raiser, FalseyBoolException, msg).result()
    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^
  File "/data/user/0/org.python.testbed/files/python/lib/python3.14/concurrent/futures/_base.py", line 450, in result
    return self.__get_result()
           ~~~~~~~~~~~~~~~~~^^
  File "/data/user/0/org.python.testbed/files/python/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result
    raise self._exception
concurrent.futures.interpreter.BrokenInterpreterPool: A thread initializer failed, the thread pool is not usable anymore


Traceback (most recent call last):
  File "/data/user/0/org.python.testbed/files/python/lib/python3.14/concurrent/futures/thread.py", line 99, in _worker
    ctx.initialize()
    ~~~~~~~~~~~~~~^^
  File "/data/user/0/org.python.testbed/files/python/lib/python3.14/concurrent/futures/interpreter.py", line 65, in initialize
    self.results = interpreters.create_queue(maxsize)
                   ~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^
  File "/data/user/0/org.python.testbed/files/python/lib/python3.14/concurrent/interpreters/_queues.py", line 75, in create
    unbound = _serialize_unbound(unbounditems)
  File "/data/user/0/org.python.testbed/files/python/lib/python3.14/concurrent/interpreters/_queues.py", line 56, in _serialize_unbound
    return _crossinterp.serialize_unbound(unbound)
           ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^
  File "/data/user/0/org.python.testbed/files/python/lib/python3.14/concurrent/interpreters/_crossinterp.py", line 85, in serialize_unbound
    raise NotImplementedError(f'unsupported unbound replacement op {op!r}')
NotImplementedError: unsupported unbound replacement op concurrent.interpreters._queues.UNBOUND
FAIL


Traceback (most recent call last):
  File "/data/user/0/org.python.testbed/files/python/lib/python3.14/test/test_concurrent_futures/executor.py", line 138, in test_map_buffersize_on_multiple_infinite_iterables
    self.assertEqual(next(res, None), 0)
                     ~~~~^^^^^^^^^^^
  File "/data/user/0/org.python.testbed/files/python/lib/python3.14/concurrent/futures/_base.py", line 639, in result_iterator
    yield _result_or_cancel(fs.pop())
          ~~~~~~~~~~~~~~~~~^^^^^^^^^^
  File "/data/user/0/org.python.testbed/files/python/lib/python3.14/concurrent/futures/_base.py", line 311, in _result_or_cancel
    return fut.result(timeout)
           ~~~~~~~~~~^^^^^^^^^
  File "/data/user/0/org.python.testbed/files/python/lib/python3.14/concurrent/futures/_base.py", line 450, in result
    return self.__get_result()
           ~~~~~~~~~~~~~~~~~^^
  File "/data/user/0/org.python.testbed/files/python/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result
    raise self._exception
concurrent.futures.interpreter.BrokenInterpreterPool: A thread initializer failed, the thread pool is not usable anymore


Traceback (most recent call last):
  File "/data/user/0/org.python.testbed/files/python/lib/python3.14/test/test_concurrent_futures/executor.py", line 52, in test_submit_keyword
    self.assertEqual(16, future.result())
                         ~~~~~~~~~~~~~^^
  File "/data/user/0/org.python.testbed/files/python/lib/python3.14/concurrent/futures/_base.py", line 450, in result
    return self.__get_result()
           ~~~~~~~~~~~~~~~~~^^
  File "/data/user/0/org.python.testbed/files/python/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result
    raise self._exception
concurrent.futures.interpreter.BrokenInterpreterPool: A thread initializer failed, the thread pool is not usable anymore


Traceback (most recent call last):
  File "/data/user/0/org.python.testbed/files/python/lib/python3.14/test/test_concurrent_futures/test_interpreter_pool.py", line 437, in test_idle_thread_reuse
    executor.submit(mul, 21, 2).result()
    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^
  File "/data/user/0/org.python.testbed/files/python/lib/python3.14/concurrent/futures/_base.py", line 450, in result
    return self.__get_result()
           ~~~~~~~~~~~~~~~~~^^
  File "/data/user/0/org.python.testbed/files/python/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result
    raise self._exception
concurrent.futures.interpreter.BrokenInterpreterPool: A thread initializer failed, the thread pool is not usable anymore


Traceback (most recent call last):
  File "/data/user/0/org.python.testbed/files/python/lib/python3.14/test/test_concurrent_futures/test_interpreter_pool.py", line 350, in test_saturation
    executor.submit(blocker.get)
    ~~~~~~~~~~~~~~~^^^^^^^^^^^^^
  File "/data/user/0/org.python.testbed/files/python/lib/python3.14/concurrent/futures/thread.py", line 202, in submit
    raise self.BROKEN(self._broken)
concurrent.futures.interpreter.BrokenInterpreterPool: A thread initializer failed, the thread pool is not usable anymore


Traceback (most recent call last):
  File "/data/user/0/org.python.testbed/files/python/lib/python3.14/test/test_concurrent_futures/executor.py", line 127, in test_map_buffersize_on_infinite_iterable
    self.assertEqual(next(res, None), "0")
                     ~~~~^^^^^^^^^^^
  File "/data/user/0/org.python.testbed/files/python/lib/python3.14/concurrent/futures/_base.py", line 639, in result_iterator
    yield _result_or_cancel(fs.pop())
          ~~~~~~~~~~~~~~~~~^^^^^^^^^^
  File "/data/user/0/org.python.testbed/files/python/lib/python3.14/concurrent/futures/_base.py", line 311, in _result_or_cancel
    return fut.result(timeout)
           ~~~~~~~~~~^^^^^^^^^
  File "/data/user/0/org.python.testbed/files/python/lib/python3.14/concurrent/futures/_base.py", line 450, in result
    return self.__get_result()
           ~~~~~~~~~~~~~~~~~^^
  File "/data/user/0/org.python.testbed/files/python/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result
    raise self._exception
concurrent.futures.interpreter.BrokenInterpreterPool: A thread initializer failed, the thread pool is not usable anymore


Traceback (most recent call last):
  File "/data/user/0/org.python.testbed/files/python/lib/python3.14/test/test_concurrent_futures/test_interpreter_pool.py", line 424, in test_blocking_with_limited_workers
    ready.get(timeout=1)  # blocking
    ~~~~~~~~~^^^^^^^^^^^
  File "/data/user/0/org.python.testbed/files/python/lib/python3.14/concurrent/interpreters/_queues.py", line 261, in get
    obj, unboundop = _queues.get(self._id)
                     ~~~~~~~~~~~^^^^^^^^^^
concurrent.interpreters._queues.QueueEmpty: queue 134 is empty


Traceback (most recent call last):
  File "/data/user/0/org.python.testbed/files/python/lib/python3.14/test/test_concurrent_futures/test_interpreter_pool.py", line 222, in test_init_instance_method
    self.assertIn('NotShareableError', stderr.getvalue())
    ~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
AssertionError: 'NotShareableError' not found in 'Exception in initializer:\nTraceback (most recent call last):\n  File "/data/user/0/org.python.testbed/files/python/lib/python3.14/concurrent/interpreters/_crossinterp.py", line 83, in serialize_unbound\n    flag = _UNBOUND_CONSTANT_TO_FLAG[op]\n           ~~~~~~~~~~~~~~~~~~~~~~~~~^^^^\nKeyError: concurrent.interpreters._queues.UNBOUND\n\nDuring handling of the above exception, another exception occurred:\n\nTraceback (most recent call last):\n  File "/data/user/0/org.python.testbed/files/python/lib/python3.14/concurrent/futures/thread.py", line 99, in _worker\n    ctx.initialize()\n    ~~~~~~~~~~~~~~^^\n  File "/data/user/0/org.python.testbed/files/python/lib/python3.14/concurrent/futures/interpreter.py", line 65, in initialize\n    self.results = interpreters.create_queue(maxsize)\n                   ~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^\n  File "/data/user/0/org.python.testbed/files/python/lib/python3.14/concurrent/interpreters/_queues.py", line 75, in create\n    unbound = _serialize_unbound(unbounditems)\n  File "/data/user/0/org.python.testbed/files/python/lib/python3.14/concurrent/interpreters/_queues.py", line 56, in _serialize_unbound\n    return _crossinterp.serialize_unbound(unbound)\n           ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^\n  File "/data/user/0/org.python.testbed/files/python/lib/python3.14/concurrent/interpreters/_crossinterp.py", line 85, in serialize_unbound\n    raise NotImplementedError(f\'unsupported unbound replacement op {op!r}\')\nNotImplementedError: unsupported unbound replacement op concurrent.interpreters._queues.UNBOUND\n'


Traceback (most recent call last):
  File "/data/user/0/org.python.testbed/files/python/lib/python3.14/threading.py", line 1081, in _bootstrap_inner
    self._context.run(self.run)
    ~~~~~~~~~~~~~~~~~^^^^^^^^^^
  File "/data/user/0/org.python.testbed/files/python/lib/python3.14/threading.py", line 1023, in run
    self._target(*self._args, **self._kwargs)
    ~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/data/user/0/org.python.testbed/files/python/lib/python3.14/concurrent/futures/thread.py", line 104, in _worker
    executor._initializer_failed()
    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^
  File "/data/user/0/org.python.testbed/files/python/lib/python3.14/concurrent/futures/thread.py", line 252, in _initializer_failed
    work_item.future.set_exception(self.BROKEN(self._broken))
    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/data/user/0/org.python.testbed/files/python/lib/python3.14/concurrent/futures/_base.py", line 553, in set_exception
    raise InvalidStateError('{}: {!r}'.format(self._state, self))
concurrent.futures._base.InvalidStateError: CANCELLED: <Future at 0x733b4f2d50 state=cancelled>


Traceback (most recent call last):
  File "/data/user/0/org.python.testbed/files/python/lib/python3.14/test/test_concurrent_futures/executor.py", line 71, in test_map_exception
    self.assertEqual(i.__next__(), (0, 1))
                     ~~~~~~~~~~^^
  File "/data/user/0/org.python.testbed/files/python/lib/python3.14/concurrent/futures/_base.py", line 639, in result_iterator
    yield _result_or_cancel(fs.pop())
          ~~~~~~~~~~~~~~~~~^^^^^^^^^^
  File "/data/user/0/org.python.testbed/files/python/lib/python3.14/concurrent/futures/_base.py", line 311, in _result_or_cancel
    return fut.result(timeout)
           ~~~~~~~~~~^^^^^^^^^
  File "/data/user/0/org.python.testbed/files/python/lib/python3.14/concurrent/futures/_base.py", line 450, in result
    return self.__get_result()
           ~~~~~~~~~~~~~~~~~^^
  File "/data/user/0/org.python.testbed/files/python/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result
    raise self._exception
concurrent.futures.interpreter.BrokenInterpreterPool: A thread initializer failed, the thread pool is not usable anymore


Traceback (most recent call last):
  File "/data/user/0/org.python.testbed/files/python/lib/python3.14/test/test_concurrent_futures/test_interpreter_pool.py", line 312, in test_submit_func_globals
    name = fut.result()
  File "/data/user/0/org.python.testbed/files/python/lib/python3.14/concurrent/futures/_base.py", line 450, in result
    return self.__get_result()
           ~~~~~~~~~~~~~~~~~^^
  File "/data/user/0/org.python.testbed/files/python/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result
    raise self._exception
concurrent.futures.interpreter.BrokenInterpreterPool: A thread initializer failed, the thread pool is not usable anymore


Traceback (most recent call last):
  File "/data/user/0/org.python.testbed/files/python/lib/python3.14/concurrent/futures/thread.py", line 99, in _worker
    ctx.initialize()
    ~~~~~~~~~~~~~~^^
  File "/data/user/0/org.python.testbed/files/python/lib/python3.14/concurrent/futures/interpreter.py", line 65, in initialize
    self.results = interpreters.create_queue(maxsize)
                   ~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^
  File "/data/user/0/org.python.testbed/files/python/lib/python3.14/concurrent/interpreters/_queues.py", line 75, in create
    unbound = _serialize_unbound(unbounditems)
  File "/data/user/0/org.python.testbed/files/python/lib/python3.14/concurrent/interpreters/_queues.py", line 56, in _serialize_unbound
    return _crossinterp.serialize_unbound(unbound)
           ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^
  File "/data/user/0/org.python.testbed/files/python/lib/python3.14/concurrent/interpreters/_crossinterp.py", line 85, in serialize_unbound
    raise NotImplementedError(f'unsupported unbound replacement op {op!r}')
NotImplementedError: unsupported unbound replacement op concurrent.interpreters._queues.UNBOUND
Warning -- Uncaught thread exception: InvalidStateError
Exception in thread ThreadPoolExecutor-169_0:
Traceback (most recent call last):
  File "/data/user/0/org.python.testbed/files/python/lib/python3.14/concurrent/interpreters/_crossinterp.py", line 83, in serialize_unbound
    flag = _UNBOUND_CONSTANT_TO_FLAG[op]
           ~~~~~~~~~~~~~~~~~~~~~~~~~^^^^
KeyError: concurrent.interpreters._queues.UNBOUND


Traceback (most recent call last):
  File "/data/user/0/org.python.testbed/files/python/lib/python3.14/test/test_concurrent_futures/test_interpreter_pool.py", line 449, in test_pickle_errors_propagate
    fut.result()
    ~~~~~~~~~~^^
  File "/data/user/0/org.python.testbed/files/python/lib/python3.14/concurrent/futures/_base.py", line 450, in result
    return self.__get_result()
           ~~~~~~~~~~~~~~~~~^^
  File "/data/user/0/org.python.testbed/files/python/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result
    raise self._exception
concurrent.futures.interpreter.BrokenInterpreterPool: A thread initializer failed, the thread pool is not usable anymore


Traceback (most recent call last):
  File "/data/user/0/org.python.testbed/files/python/lib/python3.14/test/test_concurrent_futures/executor.py", line 123, in test_map_buffersize_on_multiple_iterables
    self.assertListEqual(list(res), [0, 2, 4, 6])
                         ~~~~^^^^^
  File "/data/user/0/org.python.testbed/files/python/lib/python3.14/concurrent/futures/_base.py", line 639, in result_iterator
    yield _result_or_cancel(fs.pop())
          ~~~~~~~~~~~~~~~~~^^^^^^^^^^
  File "/data/user/0/org.python.testbed/files/python/lib/python3.14/concurrent/futures/_base.py", line 311, in _result_or_cancel
    return fut.result(timeout)
           ~~~~~~~~~~^^^^^^^^^
  File "/data/user/0/org.python.testbed/files/python/lib/python3.14/concurrent/futures/_base.py", line 450, in result
    return self.__get_result()
           ~~~~~~~~~~~~~~~~~^^
  File "/data/user/0/org.python.testbed/files/python/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result
    raise self._exception
concurrent.futures.interpreter.BrokenInterpreterPool: A thread initializer failed, the thread pool is not usable anymore


Traceback (most recent call last):
  File "/data/user/0/org.python.testbed/files/python/lib/python3.14/test/test_concurrent_futures/test_interpreter_pool.py", line 389, in test_blocking
    ready.get(timeout=1)  # blocking
    ~~~~~~~~~^^^^^^^^^^^
  File "/data/user/0/org.python.testbed/files/python/lib/python3.14/concurrent/interpreters/_queues.py", line 261, in get
    obj, unboundop = _queues.get(self._id)
                     ~~~~~~~~~~~^^^^^^^^^^
concurrent.interpreters._queues.QueueEmpty: queue 132 is empty


Traceback (most recent call last):
  File "/data/user/0/org.python.testbed/files/python/lib/python3.14/test/test_concurrent_futures/executor.py", line 115, in test_map_buffersize
    res = self.executor.map(str, ints, buffersize=buffersize)
  File "/data/user/0/org.python.testbed/files/python/lib/python3.14/concurrent/futures/_base.py", line 614, in map
    fs = collections.deque(
        self.submit(fn, *args) for args in islice(zipped_iterables, buffersize)
    )
  File "/data/user/0/org.python.testbed/files/python/lib/python3.14/concurrent/futures/_base.py", line 615, in <genexpr>
    self.submit(fn, *args) for args in islice(zipped_iterables, buffersize)
    ~~~~~~~~~~~^^^^^^^^^^^
  File "/data/user/0/org.python.testbed/files/python/lib/python3.14/concurrent/futures/thread.py", line 202, in submit
    raise self.BROKEN(self._broken)
concurrent.futures.interpreter.BrokenInterpreterPool: A thread initializer failed, the thread pool is not usable anymore


Traceback (most recent call last):
  File "/data/user/0/org.python.testbed/files/python/lib/python3.14/test/test_concurrent_futures/test_interpreter_pool.py", line 249, in test_init_exception_in_func
    self.assertIn('ExecutionFailed: Exception: spam', stderr)
    ~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
AssertionError: 'ExecutionFailed: Exception: spam' not found in 'Exception in initializer:\nTraceback (most recent call last):\n  File "/data/user/0/org.python.testbed/files/python/lib/python3.14/concurrent/interpreters/_crossinterp.py", line 83, in serialize_unbound\n    flag = _UNBOUND_CONSTANT_TO_FLAG[op]\n           ~~~~~~~~~~~~~~~~~~~~~~~~~^^^^\nKeyError: concurrent.interpreters._queues.UNBOUND\n\nDuring handling of the above exception, another exception occurred:\n\nTraceback (most recent call last):\n  File "/data/user/0/org.python.testbed/files/python/lib/python3.14/concurrent/futures/thread.py", line 99, in _worker\n    ctx.initialize()\n    ~~~~~~~~~~~~~~^^\n  File "/data/user/0/org.python.testbed/files/python/lib/python3.14/concurrent/futures/interpreter.py", line 65, in initialize\n    self.results = interpreters.create_queue(maxsize)\n                   ~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^\n  File "/data/user/0/org.python.testbed/files/python/lib/python3.14/concurrent/interpreters/_queues.py", line 75, in create\n    unbound = _serialize_unbound(unbounditems)\n  File "/data/user/0/org.python.testbed/files/python/lib/python3.14/concurrent/interpreters/_queues.py", line 56, in _serialize_unbound\n    return _crossinterp.serialize_unbound(unbound)\n           ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^\n  File "/data/user/0/org.python.testbed/files/python/lib/python3.14/concurrent/interpreters/_crossinterp.py", line 85, in serialize_unbound\n    raise NotImplementedError(f\'unsupported unbound replacement op {op!r}\')\nNotImplementedError: unsupported unbound replacement op concurrent.interpreters._queues.UNBOUND\n'


Traceback (most recent call last):
  File "/data/user/0/org.python.testbed/files/python/lib/python3.14/test/test_concurrent_futures/test_interpreter_pool.py", line 336, in test_submit_exception_in_func
    self.assertIs(type(captured.exception), Exception)
    ~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
AssertionError: <class 'concurrent.futures.interpreter.BrokenInterpreterPool'> is not <class 'Exception'>


Traceback (most recent call last):
  File "/data/user/0/org.python.testbed/files/python/lib/python3.14/concurrent/futures/thread.py", line 99, in _worker
    ctx.initialize()
    ~~~~~~~~~~~~~~^^
  File "/data/user/0/org.python.testbed/files/python/lib/python3.14/concurrent/futures/interpreter.py", line 65, in initialize
    self.results = interpreters.create_queue(maxsize)
                   ~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^
  File "/data/user/0/org.python.testbed/files/python/lib/python3.14/concurrent/interpreters/_queues.py", line 75, in create
    unbound = _serialize_unbound(unbounditems)
  File "/data/user/0/org.python.testbed/files/python/lib/python3.14/concurrent/interpreters/_queues.py", line 56, in _serialize_unbound
    return _crossinterp.serialize_unbound(unbound)
           ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^
  File "/data/user/0/org.python.testbed/files/python/lib/python3.14/concurrent/interpreters/_crossinterp.py", line 85, in serialize_unbound
    raise NotImplementedError(f'unsupported unbound replacement op {op!r}')
NotImplementedError: unsupported unbound replacement op concurrent.interpreters._queues.UNBOUND


Traceback (most recent call last):
  File "/data/user/0/org.python.testbed/files/python/lib/python3.14/test/test_concurrent_futures/executor.py", line 80, in test_map_timeout
    for i in self.executor.map(time.sleep,
             ~~~~~~~~~~~~~~~~~^^^^^^^^^^^^
                               [0, 0, 6],
                               ^^^^^^^^^^
                               timeout=5):
                               ^^^^^^^^^^
  File "/data/user/0/org.python.testbed/files/python/lib/python3.14/concurrent/futures/_base.py", line 641, in result_iterator
    yield _result_or_cancel(fs.pop(), end_time - time.monotonic())
          ~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/data/user/0/org.python.testbed/files/python/lib/python3.14/concurrent/futures/_base.py", line 311, in _result_or_cancel
    return fut.result(timeout)
           ~~~~~~~~~~^^^^^^^^^
  File "/data/user/0/org.python.testbed/files/python/lib/python3.14/concurrent/futures/_base.py", line 450, in result
    return self.__get_result()
           ~~~~~~~~~~~~~~~~~^^
  File "/data/user/0/org.python.testbed/files/python/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result
    raise self._exception
concurrent.futures.interpreter.BrokenInterpreterPool: A thread initializer failed, the thread pool is not usable anymore


Traceback (most recent call last):
  File "/data/user/0/org.python.testbed/files/python/lib/python3.14/concurrent/futures/thread.py", line 99, in _worker
    ctx.initialize()
    ~~~~~~~~~~~~~~^^
  File "/data/user/0/org.python.testbed/files/python/lib/python3.14/concurrent/futures/interpreter.py", line 65, in initialize
    self.results = interpreters.create_queue(maxsize)
                   ~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^
  File "/data/user/0/org.python.testbed/files/python/lib/python3.14/concurrent/interpreters/_queues.py", line 75, in create
    unbound = _serialize_unbound(unbounditems)
  File "/data/user/0/org.python.testbed/files/python/lib/python3.14/concurrent/interpreters/_queues.py", line 56, in _serialize_unbound
    return _crossinterp.serialize_unbound(unbound)
           ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^
  File "/data/user/0/org.python.testbed/files/python/lib/python3.14/concurrent/interpreters/_crossinterp.py", line 85, in serialize_unbound
    raise NotImplementedError(f'unsupported unbound replacement op {op!r}')
NotImplementedError: unsupported unbound replacement op concurrent.interpreters._queues.UNBOUND
Exception in initializer:
Traceback (most recent call last):
  File "/data/user/0/org.python.testbed/files/python/lib/python3.14/concurrent/interpreters/_crossinterp.py", line 83, in serialize_unbound
    flag = _UNBOUND_CONSTANT_TO_FLAG[op]
           ~~~~~~~~~~~~~~~~~~~~~~~~~^^^^
KeyError: concurrent.interpreters._queues.UNBOUND


Traceback (most recent call last):
  File "/data/user/0/org.python.testbed/files/python/lib/python3.14/test/test_concurrent_futures/executor.py", line 116, in test_map_buffersize
    self.assertListEqual(list(res), ["0", "1", "2", "3"])
                         ~~~~^^^^^
  File "/data/user/0/org.python.testbed/files/python/lib/python3.14/concurrent/futures/_base.py", line 639, in result_iterator
    yield _result_or_cancel(fs.pop())
          ~~~~~~~~~~~~~~~~~^^^^^^^^^^
  File "/data/user/0/org.python.testbed/files/python/lib/python3.14/concurrent/futures/_base.py", line 311, in _result_or_cancel
    return fut.result(timeout)
           ~~~~~~~~~~^^^^^^^^^
  File "/data/user/0/org.python.testbed/files/python/lib/python3.14/concurrent/futures/_base.py", line 450, in result
    return self.__get_result()
           ~~~~~~~~~~~~~~~~~^^
  File "/data/user/0/org.python.testbed/files/python/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result
    raise self._exception
concurrent.futures.interpreter.BrokenInterpreterPool: A thread initializer failed, the thread pool is not usable anymore


Traceback (most recent call last):
  File "/data/user/0/org.python.testbed/files/python/lib/python3.14/test/test_concurrent_futures/test_interpreter_pool.py", line 202, in test_init_closure
    self.assertIn('NotShareableError', stderr.getvalue())
    ~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
AssertionError: 'NotShareableError' not found in 'Exception in initializer:\nTraceback (most recent call last):\n  File "/data/user/0/org.python.testbed/files/python/lib/python3.14/concurrent/interpreters/_crossinterp.py", line 83, in serialize_unbound\n    flag = _UNBOUND_CONSTANT_TO_FLAG[op]\n           ~~~~~~~~~~~~~~~~~~~~~~~~~^^^^\nKeyError: concurrent.interpreters._queues.UNBOUND\n\nDuring handling of the above exception, another exception occurred:\n\nTraceback (most recent call last):\n  File "/data/user/0/org.python.testbed/files/python/lib/python3.14/concurrent/futures/thread.py", line 99, in _worker\n    ctx.initialize()\n    ~~~~~~~~~~~~~~^^\n  File "/data/user/0/org.python.testbed/files/python/lib/python3.14/concurrent/futures/interpreter.py", line 65, in initialize\n    self.results = interpreters.create_queue(maxsize)\n                   ~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^\n  File "/data/user/0/org.python.testbed/files/python/lib/python3.14/concurrent/interpreters/_queues.py", line 75, in create\n    unbound = _serialize_unbound(unbounditems)\n  File "/data/user/0/org.python.testbed/files/python/lib/python3.14/concurrent/interpreters/_queues.py", line 56, in _serialize_unbound\n    return _crossinterp.serialize_unbound(unbound)\n           ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^\n  File "/data/user/0/org.python.testbed/files/python/lib/python3.14/concurrent/interpreters/_crossinterp.py", line 85, in serialize_unbound\n    raise NotImplementedError(f\'unsupported unbound replacement op {op!r}\')\nNotImplementedError: unsupported unbound replacement op concurrent.interpreters._queues.UNBOUND\n'


Traceback (most recent call last):
  File "/data/user/0/org.python.testbed/files/python/lib/python3.14/test/test_concurrent_futures/executor.py", line 122, in test_map_buffersize_on_multiple_iterables
    res = self.executor.map(add, ints, ints, buffersize=buffersize)
  File "/data/user/0/org.python.testbed/files/python/lib/python3.14/concurrent/futures/_base.py", line 614, in map
    fs = collections.deque(
        self.submit(fn, *args) for args in islice(zipped_iterables, buffersize)
    )
  File "/data/user/0/org.python.testbed/files/python/lib/python3.14/concurrent/futures/_base.py", line 615, in <genexpr>
    self.submit(fn, *args) for args in islice(zipped_iterables, buffersize)
    ~~~~~~~~~~~^^^^^^^^^^^
  File "/data/user/0/org.python.testbed/files/python/lib/python3.14/concurrent/futures/thread.py", line 202, in submit
    raise self.BROKEN(self._broken)
concurrent.futures.interpreter.BrokenInterpreterPool: A thread initializer failed, the thread pool is not usable anymore


Traceback (most recent call last):
  File "/data/user/0/org.python.testbed/files/python/lib/python3.14/test/test_concurrent_futures/test_interpreter_pool.py", line 282, in test_submit_closure
    fut.result()
    ~~~~~~~~~~^^
  File "/data/user/0/org.python.testbed/files/python/lib/python3.14/concurrent/futures/_base.py", line 450, in result
    return self.__get_result()
           ~~~~~~~~~~~~~~~~~^^
  File "/data/user/0/org.python.testbed/files/python/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result
    raise self._exception
concurrent.futures.interpreter.BrokenInterpreterPool: A thread initializer failed, the thread pool is not usable anymore


Traceback (most recent call last):
  File "/data/user/0/org.python.testbed/files/python/lib/python3.14/test/test_concurrent_futures/test_interpreter_pool.py", line 497, in test_run_in_executor
    interpid, res = self.loop.run_until_complete(fut)
                    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^
  File "/data/user/0/org.python.testbed/files/python/lib/python3.14/asyncio/base_events.py", line 719, in run_until_complete
    return future.result()
           ~~~~~~~~~~~~~^^
concurrent.futures.interpreter.BrokenInterpreterPool: A thread initializer failed, the thread pool is not usable anymore


Traceback (most recent call last):
  File "/data/user/0/org.python.testbed/files/python/lib/python3.14/test/test_concurrent_futures/test_interpreter_pool.py", line 154, in test_init_func
    after = read_msg(r)
  File "/data/user/0/org.python.testbed/files/python/lib/python3.14/test/test_concurrent_futures/test_interpreter_pool.py", line 72, in read_msg
    ch = read_file_with_timeout(fd, 1, timeout)
  File "/data/user/0/org.python.testbed/files/python/lib/python3.14/test/test_concurrent_futures/test_interpreter_pool.py", line 57, in read_file_with_timeout
    raise TimeoutError('nothing to read')
TimeoutError: nothing to read


Traceback (most recent call last):
  File "/data/user/0/org.python.testbed/files/python/lib/python3.14/test/test_concurrent_futures/executor.py", line 62, in test_map
    list(self.executor.map(pow, range(10), range(10))),
         ~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/data/user/0/org.python.testbed/files/python/lib/python3.14/concurrent/futures/_base.py", line 618, in map
    fs = [self.submit(fn, *args) for args in zipped_iterables]
          ~~~~~~~~~~~^^^^^^^^^^^
  File "/data/user/0/org.python.testbed/files/python/lib/python3.14/concurrent/futures/thread.py", line 202, in submit
    raise self.BROKEN(self._broken)
concurrent.futures.interpreter.BrokenInterpreterPool: A thread initializer failed, the thread pool is not usable anymore


Traceback (most recent call last):
  File "/data/user/0/org.python.testbed/files/python/lib/python3.14/test/test_concurrent_futures/executor.py", line 48, in test_submit
    self.assertEqual(256, future.result())
                          ~~~~~~~~~~~~~^^
  File "/data/user/0/org.python.testbed/files/python/lib/python3.14/concurrent/futures/_base.py", line 450, in result
    return self.__get_result()
           ~~~~~~~~~~~~~~~~~^^
  File "/data/user/0/org.python.testbed/files/python/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result
    raise self._exception
concurrent.futures.interpreter.BrokenInterpreterPool: A thread initializer failed, the thread pool is not usable anymore


Traceback (most recent call last):
  File "/data/user/0/org.python.testbed/files/python/lib/python3.14/test/test_concurrent_futures/test_interpreter_pool.py", line 307, in test_submit_instance_method
    fut.result()
    ~~~~~~~~~~^^
  File "/data/user/0/org.python.testbed/files/python/lib/python3.14/concurrent/futures/_base.py", line 450, in result
    return self.__get_result()
           ~~~~~~~~~~~~~~~~~^^
  File "/data/user/0/org.python.testbed/files/python/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result
    raise self._exception
concurrent.futures.interpreter.BrokenInterpreterPool: A thread initializer failed, the thread pool is not usable anymore


Traceback (most recent call last):
  File "/data/user/0/org.python.testbed/files/python/lib/python3.14/concurrent/interpreters/_crossinterp.py", line 83, in serialize_unbound
    flag = _UNBOUND_CONSTANT_TO_FLAG[op]
           ~~~~~~~~~~~~~~~~~~~~~~~~~^^^^
KeyError: concurrent.interpreters._queues.UNBOUND


Traceback (most recent call last):
  File "/data/user/0/org.python.testbed/files/python/lib/python3.14/concurrent/futures/thread.py", line 99, in _worker
    ctx.initialize()
    ~~~~~~~~~~~~~~^^
  File "/data/user/0/org.python.testbed/files/python/lib/python3.14/concurrent/futures/interpreter.py", line 62, in initialize
    self.interp = interpreters.create()
                  ~~~~~~~~~~~~~~~~~~~^^
  File "/data/user/0/org.python.testbed/files/python/lib/python3.14/concurrent/interpreters/__init__.py", line 65, in create
    id = _interpreters.create(reqrefs=True)
concurrent.interpreters.InterpreterError: interpreter creation failed


Traceback (most recent call last):
  File "/data/user/0/org.python.testbed/files/python/lib/python3.14/test/test_concurrent_futures/test_interpreter_pool.py", line 296, in test_submit_local_instance
    fut.result()
    ~~~~~~~~~~^^
  File "/data/user/0/org.python.testbed/files/python/lib/python3.14/concurrent/futures/_base.py", line 450, in result
    return self.__get_result()
           ~~~~~~~~~~~~~~~~~^^
  File "/data/user/0/org.python.testbed/files/python/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result
    raise self._exception
concurrent.futures.interpreter.BrokenInterpreterPool: A thread initializer failed, the thread pool is not usable anymore


Traceback (most recent call last):
  File "/data/user/0/org.python.testbed/files/python/lib/python3.14/concurrent/futures/thread.py", line 99, in _worker
    ctx.initialize()
    ~~~~~~~~~~~~~~^^
  File "/data/user/0/org.python.testbed/files/python/lib/python3.14/concurrent/futures/interpreter.py", line 65, in initialize
    self.results = interpreters.create_queue(maxsize)
                   ~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^
  File "/data/user/0/org.python.testbed/files/python/lib/python3.14/concurrent/interpreters/_queues.py", line 75, in create
    unbound = _serialize_unbound(unbounditems)
  File "/data/user/0/org.python.testbed/files/python/lib/python3.14/concurrent/interpreters/_queues.py", line 56, in _serialize_unbound
    return _crossinterp.serialize_unbound(unbound)
           ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^
  File "/data/user/0/org.python.testbed/files/python/lib/python3.14/concurrent/interpreters/_crossinterp.py", line 85, in serialize_unbound
    raise NotImplementedError(f'unsupported unbound replacement op {op!r}')
NotImplementedError: unsupported unbound replacement op concurrent.interpreters._queues.UNBOUND
ERROR

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants