Skip to content
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

RuntimeError: can't create new thread at interpreter shutdown on Python 3.12 #8

Closed
1 task done
martyanov opened this issue Dec 8, 2023 · 2 comments
Closed
1 task done
Labels
bug Something isn't working

Comments

@martyanov
Copy link

martyanov commented Dec 8, 2023

Is there an existing issue for this?

  • I have searched the existing issues

Current Behavior

Exception ignored in atexit callback: <function _stop at 0x7fcf97f30000>
Traceback (most recent call last):
  File "/usr/lib64/python3.12/site-packages/pytest_pystack/_monitor_process.py", line 73, in _stop
    queue.put(None)
  File "/usr/lib64/python3.12/multiprocessing/queues.py", line 94, in put
    self._start_thread()
  File "/usr/lib64/python3.12/multiprocessing/queues.py", line 177, in _start_thread
    self._thread.start()
  File "/usr/lib64/python3.12/threading.py", line 971, in start
    _start_new_thread(self._bootstrap, ())
RuntimeError: can't create new thread at interpreter shutdown

Expected Behavior

No errors.

Steps To Reproduce

Run test suite with pytest-pystack==1.0.0 and pystack_args="--native --locals".

Pystack Version

1.3.0

Python Version

3.12

Linux distribution

Fedora

Anything else?

pytest 7.4.3
pytest-xdist 3.5.0

Can not really provide any project specific details, just tried to update to Python 3.12 and got the errors.

@martyanov martyanov added the bug Something isn't working label Dec 8, 2023
@pablogsal pablogsal transferred this issue from bloomberg/pystack Dec 8, 2023
@godlygeek
Copy link
Contributor

Oof, that was fixed in #6 but never released - we somehow lost track of #7.

OK, let's get a release cut that fixes that...

@godlygeek
Copy link
Contributor

Fixed now that #7 has landed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants