Title: `./python -m test test_interpreters test_struct` fails with: KeyError: concurrent.interpreters._queues.UNBOUND · Issue #142414 · python/cpython · GitHub
Open Graph Title: `./python -m test test_interpreters test_struct` fails with: KeyError: concurrent.interpreters._queues.UNBOUND · Issue #142414 · python/cpython
X Title: `./python -m test test_interpreters test_struct` fails with: KeyError: concurrent.interpreters._queues.UNBOUND · Issue #142414 · python/cpython
Description: Bug report Bug description: I routinely use on my Ubuntu machines pyenv and a script to install python versions: Click to view python_ver=3.14.2 # setup pyenv and install latest python # https://github.com/pyenv/pyenv # https://github.co...
Open Graph Description: Bug report Bug description: I routinely use on my Ubuntu machines pyenv and a script to install python versions: Click to view python_ver=3.14.2 # setup pyenv and install latest python # https://gi...
X Description: Bug report Bug description: I routinely use on my Ubuntu machines pyenv and a script to install python versions: Click to view python_ver=3.14.2 # setup pyenv and install latest python # https://gi...
Opengraph URL: https://github.com/python/cpython/issues/142414
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"`./python -m test test_interpreters test_struct` fails with: KeyError: concurrent.interpreters._queues.UNBOUND","articleBody":"# Bug report\n\n### Bug description:\n\nI routinely use on my Ubuntu machines `pyenv` and a script to install python versions:\n\u003cdetails\u003e\u003csummary\u003eClick to view\u003c/summary\u003e\n\n```bash\n python_ver=3.14.2\n\n# setup pyenv and install latest python\n# https://github.com/pyenv/pyenv\n# https://github.com/python/pyperformance\n\nif ! command -v pyenv \u0026\u003e/dev/null; then\n # dependencies according to pyenv\n #sudo apt update; sudo apt install -y build-essential libssl-dev zlib1g-dev libbz2-dev libreadline-dev libsqlite3-dev libncursesw5-dev xz-utils tk-dev libxml2-dev libxmlsec1-dev libffi-dev liblzma-dev\n\n # Workaround missing libmpdec-dev on ubuntu 24.04 (it should be re introduced in ubuntu 26.04):\n # https://launchpad.net/~ondrej/+archive/ubuntu/php\n # https://deb.sury.org/\n sudo add-apt-repository -y ppa:ondrej/php\n\n # dependencies according to python build doc dropping packages used in CI (ccache, cmake, gdb, inetutils-inetd, lcov, lzma, strace, xvfb)\n # https://devguide.python.org/getting-started/setup-building/index.html#build-dependencies\n # https://github.com/python/cpython/blob/main/.github/workflows/posix-deps-apt.sh\n sudo apt update; sudo apt install -y build-essential pkg-config libb2-dev libbz2-dev libffi-dev libgdbm-dev libgdbm-compat-dev liblzma-dev libncurses5-dev libreadline6-dev libsqlite3-dev libssl-dev lzma-dev tk-dev uuid-dev zlib1g-dev libzstd-dev libmpdec-dev\n\n pyenv_dir=\"$HOME/.pyenv\"\n git clone https://github.com/pyenv/pyenv.git \"$pyenv_dir\"\n\n cat \u003c\u003c 'EOF' \u003e\u003e \"$HOME/.profile\"\n\n# pyenv: keep at the end of the file\nexport PYENV_ROOT=\"$HOME/.pyenv\"\ncommand -v pyenv \u003e/dev/null || export PATH=\"$PYENV_ROOT/bin:$PATH\"\neval \"$(pyenv init -)\"\nEOF\n\n cat \u003c\u003c 'EOF' \u003e\u003e \"$HOME/.bashrc\"\n\n# pyenv: keep at the end of the file\nexport PYENV_ROOT=\"$HOME/.pyenv\"\ncommand -v pyenv \u003e/dev/null || export PATH=\"$PYENV_ROOT/bin:$PATH\"\neval \"$(pyenv init -)\"\nEOF\n\n . \"$HOME/.profile\"\n pushd \"$pyenv_dir\" \u0026\u0026 src/configure \u0026\u0026 make -C src \u0026\u0026 popd\n #CC=\"clang\" CXX=\"clang++\" LDFLAGS=\"${LDFLAGS:+$LDFLAGS }-fuse-ld=lld\" PYTHON_CONFIGURE_OPTS=\"--enable-optimizations --with-lto --with-tail-call-interp --enable-bolt\" PYTHON_CFLAGS=\"-march=native -mtune=native\" pyenv install \"$python_ver\"\n CC=\"clang\" CXX=\"clang++\" LDFLAGS=\"${LDFLAGS:+$LDFLAGS }-fuse-ld=lld\" PYTHON_CONFIGURE_OPTS=\"--enable-optimizations --with-lto\" PYTHON_CFLAGS=\"-march=native -mtune=native\" pyenv install \"$python_ver\"\n #PYTHON_CONFIGURE_OPTS=\"--enable-optimizations --with-lto\" PYTHON_CFLAGS=\"-march=native -mtune=native\" pyenv install \"$python_ver\"\n pyenv global \"$python_ver\"\nfi\n```\n\u003c/details\u003e\n\n`test_struct` fails in `python3 -m test` with python 3.14.2 (and 3.14.1) with this traceback:\n\u003cdetails\u003e\u003csummary\u003eClick to view\u003c/summary\u003e\n\n```\n0:18:03 load avg: 0.84 [387/491] test_struct\nException in initializer:\nTraceback (most recent call last):\n File \"/home/usr00/.pyenv/versions/3.14.2/lib/python3.14/concurrent/interpreters/_crossinterp.py\", line 88, 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 \"/home/usr00/.pyenv/versions/3.14.2/lib/python3.14/concurrent/futures/thread.py\", line 99, in _worker\n ctx.initialize()\n ~~~~~~~~~~~~~~^^\n File \"/home/usr00/.pyenv/versions/3.14.2/lib/python3.14/concurrent/futures/interpreter.py\", line 64, in initialize\n self.results = interpreters.create_queue(maxsize)\n ~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^\n File \"/home/usr00/.pyenv/versions/3.14.2/lib/python3.14/concurrent/interpreters/_queues.py\", line 75, in create\n unbound = _serialize_unbound(unbounditems)\n File \"/home/usr00/.pyenv/versions/3.14.2/lib/python3.14/concurrent/interpreters/_queues.py\", line 56, in _serialize_unbound\n return _crossinterp.serialize_unbound(unbound)\n ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^\n File \"/home/usr00/.pyenv/versions/3.14.2/lib/python3.14/concurrent/interpreters/_crossinterp.py\", line 90, in serialize_unbound\n raise NotImplementedError(f'unsupported unbound replacement op {op!r}')\nNotImplementedError: unsupported unbound replacement op concurrent.interpreters._queues.UNBOUND\nException in initializer:\nTraceback (most recent call last):\n File \"/home/usr00/.pyenv/versions/3.14.2/lib/python3.14/concurrent/interpreters/_crossinterp.py\", line 88, 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 \"/home/usr00/.pyenv/versions/3.14.2/lib/python3.14/concurrent/futures/thread.py\", line 99, in _worker\n ctx.initialize()\n ~~~~~~~~~~~~~~^^\n File \"/home/usr00/.pyenv/versions/3.14.2/lib/python3.14/concurrent/futures/interpreter.py\", line 64, in initialize\n self.results = interpreters.create_queue(maxsize)\n ~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^\n File \"/home/usr00/.pyenv/versions/3.14.2/lib/python3.14/concurrent/interpreters/_queues.py\", line 75, in create\n unbound = _serialize_unbound(unbounditems)\n File \"/home/usr00/.pyenv/versions/3.14.2/lib/python3.14/concurrent/interpreters/_queues.py\", line 56, in _serialize_unbound\n return _crossinterp.serialize_unbound(unbound)\n ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^\n File \"/home/usr00/.pyenv/versions/3.14.2/lib/python3.14/concurrent/interpreters/_crossinterp.py\", line 90, in serialize_unbound\n raise NotImplementedError(f'unsupported unbound replacement op {op!r}')\nNotImplementedError: unsupported unbound replacement op concurrent.interpreters._queues.UNBOUND\nException in initializer:\nTraceback (most recent call last):\n File \"/home/usr00/.pyenv/versions/3.14.2/lib/python3.14/concurrent/interpreters/_crossinterp.py\", line 88, 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 \"/home/usr00/.pyenv/versions/3.14.2/lib/python3.14/concurrent/futures/thread.py\", line 99, in _worker\n ctx.initialize()\n ~~~~~~~~~~~~~~^^\n File \"/home/usr00/.pyenv/versions/3.14.2/lib/python3.14/concurrent/futures/interpreter.py\", line 64, in initialize\n self.results = interpreters.create_queue(maxsize)\n ~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^\n File \"/home/usr00/.pyenv/versions/3.14.2/lib/python3.14/concurrent/interpreters/_queues.py\", line 75, in create\n unbound = _serialize_unbound(unbounditems)\n File \"/home/usr00/.pyenv/versions/3.14.2/lib/python3.14/concurrent/interpreters/_queues.py\", line 56, in _serialize_unbound\n return _crossinterp.serialize_unbound(unbound)\n ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^\n File \"/home/usr00/.pyenv/versions/3.14.2/lib/python3.14/concurrent/interpreters/_crossinterp.py\", line 90, in serialize_unbound\n raise NotImplementedError(f'unsupported unbound replacement op {op!r}')\nNotImplementedError: unsupported unbound replacement op concurrent.interpreters._queues.UNBOUND\nException in initializer:\nTraceback (most recent call last):\n File \"/home/usr00/.pyenv/versions/3.14.2/lib/python3.14/concurrent/interpreters/_crossinterp.py\", line 88, 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 \"/home/usr00/.pyenv/versions/3.14.2/lib/python3.14/concurrent/futures/thread.py\", line 99, in _worker\n ctx.initialize()\n ~~~~~~~~~~~~~~^^\n File \"/home/usr00/.pyenv/versions/3.14.2/lib/python3.14/concurrent/futures/interpreter.py\", line 64, in initialize\n self.results = interpreters.create_queue(maxsize)\n ~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^\n File \"/home/usr00/.pyenv/versions/3.14.2/lib/python3.14/concurrent/interpreters/_queues.py\", line 75, in create\n unbound = _serialize_unbound(unbounditems)\n File \"/home/usr00/.pyenv/versions/3.14.2/lib/python3.14/concurrent/interpreters/_queues.py\", line 56, in _serialize_unbound\n return _crossinterp.serialize_unbound(unbound)\n ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^\n File \"/home/usr00/.pyenv/versions/3.14.2/lib/python3.14/concurrent/interpreters/_crossinterp.py\", line 90, in serialize_unbound\n raise NotImplementedError(f'unsupported unbound replacement op {op!r}')\nNotImplementedError: unsupported unbound replacement op concurrent.interpreters._queues.UNBOUND\nException in initializer:\nTraceback (most recent call last):\n File \"/home/usr00/.pyenv/versions/3.14.2/lib/python3.14/concurrent/interpreters/_crossinterp.py\", line 88, 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 \"/home/usr00/.pyenv/versions/3.14.2/lib/python3.14/concurrent/futures/thread.py\", line 99, in _worker\n ctx.initialize()\n ~~~~~~~~~~~~~~^^\n File \"/home/usr00/.pyenv/versions/3.14.2/lib/python3.14/concurrent/futures/interpreter.py\", line 64, in initialize\n self.results = interpreters.create_queue(maxsize)\n ~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^\n File \"/home/usr00/.pyenv/versions/3.14.2/lib/python3.14/concurrent/interpreters/_queues.py\", line 75, in create\n unbound = _serialize_unbound(unbounditems)\n File \"/home/usr00/.pyenv/versions/3.14.2/lib/python3.14/concurrent/interpreters/_queues.py\", line 56, in _serialize_unbound\n return _crossinterp.serialize_unbound(unbound)\n ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^\n File \"/home/usr00/.pyenv/versions/3.14.2/lib/python3.14/concurrent/interpreters/_crossinterp.py\", line 90, in serialize_unbound\n raise NotImplementedError(f'unsupported unbound replacement op {op!r}')\nNotImplementedError: unsupported unbound replacement op concurrent.interpreters._queues.UNBOUND\ntest test_struct failed -- Traceback (most recent call last):\n File \"/home/usr00/.pyenv/versions/3.14.2/lib/python3.14/test/test_struct.py\", line 818, in test_endian_table_init_subinterpreters\n self.assertListEqual(list(results), [None] * 5)\n ~~~~^^^^^^^^^\n File \"/home/usr00/.pyenv/versions/3.14.2/lib/python3.14/concurrent/futures/_base.py\", line 639, in result_iterator\n yield _result_or_cancel(fs.pop())\n ~~~~~~~~~~~~~~~~~^^^^^^^^^^\n File \"/home/usr00/.pyenv/versions/3.14.2/lib/python3.14/concurrent/futures/_base.py\", line 311, in _result_or_cancel\n return fut.result(timeout)\n ~~~~~~~~~~^^^^^^^^^\n File \"/home/usr00/.pyenv/versions/3.14.2/lib/python3.14/concurrent/futures/_base.py\", line 450, in result\n return self.__get_result()\n ~~~~~~~~~~~~~~~~~^^\n File \"/home/usr00/.pyenv/versions/3.14.2/lib/python3.14/concurrent/futures/_base.py\", line 395, in __get_result\n raise self._exception\nconcurrent.futures.interpreter.BrokenInterpreterPool: A thread initializer failed, the thread pool is not usable anymore\n\n0:18:04 load avg: 0.84 [387/491/1] test_struct failed (1 error)\n```\n\u003c/details\u003e\n\nTested on Ubuntu 24.04 (gcc 14.2.0 - clang 21.1.8) and Ubuntu 20.04 (gcc 11.4.0), several CPUs.\n\npython 3.14.0 and 3.13.x, bult in the same way, pass smoothly `python3 -m test`\n\n### CPython versions tested on:\n\n3.14\n\n### Operating systems tested on:\n\nLinux\n\n\u003c!-- gh-linked-prs --\u003e\n### Linked PRs\n* gh-142515\n* gh-142553\n* gh-142577\n* gh-144096\n* gh-145184\n\u003c!-- /gh-linked-prs --\u003e\n","author":{"url":"https://github.com/ppigazzini","@type":"Person","name":"ppigazzini"},"datePublished":"2025-12-08T12:16:59.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":24},"url":"https://github.com/142414/cpython/issues/142414"}
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:ddbf007f-85a2-a2b1-fd99-1673805a2cef |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | C6DA:372744:38DBA2:4D2083:6A51C108 |
| html-safe-nonce | 759afee333d9b0bfdf75c7e1b6b116fb90b3f0763b91de73a73e719c20ec43e4 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJDNkRBOjM3Mjc0NDozOERCQTI6NEQyMDgzOjZBNTFDMTA4IiwidmlzaXRvcl9pZCI6IjE4MDg1NzgzMTkxNzk5NDI0OCIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 30d389ad3e326ab2276e7314cc1854c11b33e7ba2c5538ba52cc00e247ac08c1 |
| hovercard-subject-tag | issue:3706130443 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/python/cpython/142414/issue_layout |
| twitter:image | https://opengraph.githubassets.com/596d6512d5829991d7271d33a802c16c5da7c5cea782a160ee8de26809e22b46/python/cpython/issues/142414 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/596d6512d5829991d7271d33a802c16c5da7c5cea782a160ee8de26809e22b46/python/cpython/issues/142414 |
| og:image:alt | Bug report Bug description: I routinely use on my Ubuntu machines pyenv and a script to install python versions: Click to view python_ver=3.14.2 # setup pyenv and install latest python # https://gi... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | ppigazzini |
| hostname | github.com |
| expected-hostname | github.com |
| None | b9a586c06a05a7a86fc7e3f4dbd03e42f6869085879aa184aa6369456dbd50fb |
| turbo-cache-control | no-preview |
| go-import | github.com/python/cpython git https://github.com/python/cpython.git |
| octolytics-dimension-user_id | 1525981 |
| octolytics-dimension-user_login | python |
| octolytics-dimension-repository_id | 81598961 |
| octolytics-dimension-repository_nwo | python/cpython |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 81598961 |
| octolytics-dimension-repository_network_root_nwo | python/cpython |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 7aed05249554b889eb33d002851a973eebcc7e91 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width