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

multiprocessing fails with "Invalid thread state for this thread" on 2.4 and 2.5 #48701

Closed
tiran opened this issue Nov 28, 2008 · 3 comments
Closed
Labels
interpreter-core (Objects, Python, Grammar, and Parser dirs) type-crash A hard crash of the interpreter, possibly with a core dump

Comments

@tiran
Copy link
Member

tiran commented Nov 28, 2008

BPO 4451
Nosy @tiran, @benjaminp

Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.

Show more details

GitHub fields:

assignee = None
closed_at = <Date 2008-11-28.15:09:36.796>
created_at = <Date 2008-11-28.14:04:50.970>
labels = ['interpreter-core', 'type-crash']
title = 'multiprocessing fails with "Invalid thread state for this thread" on 2.4 and 2.5'
updated_at = <Date 2008-11-28.15:09:36.768>
user = 'https://github.com/tiran'

bugs.python.org fields:

activity = <Date 2008-11-28.15:09:36.768>
actor = 'jnoller'
assignee = 'none'
closed = True
closed_date = <Date 2008-11-28.15:09:36.796>
closer = 'jnoller'
components = ['Interpreter Core']
creation = <Date 2008-11-28.14:04:50.970>
creator = 'christian.heimes'
dependencies = []
files = []
hgrepos = []
issue_num = 4451
keywords = []
message_count = 3.0
messages = ['76528', '76533', '76534']
nosy_count = 3.0
nosy_names = ['christian.heimes', 'benjamin.peterson', 'jnoller']
pr_nums = []
priority = 'high'
resolution = 'duplicate'
stage = 'needs patch'
status = 'closed'
superseder = None
type = 'crash'
url = 'https://bugs.python.org/issue4451'
versions = ['Python 2.4', 'Python 2.5.3']

@tiran
Copy link
Member Author

tiran commented Nov 28, 2008

The multiprocessing backport to 2.4/2.5 fails with a fatal error when
the test suite is run with a debug build of Python.

PYTHONPATH="Lib/" /home/heimes/dev/python/release25-maint/python -tt -c
"from multiprocessing.tests import main; main()"
Fatal Python error: Invalid thread state for this thread
Traceback (most recent call last):
  File "<string>", line 1, in <module>
  File
"/home/heimes/dev/py/python-multiprocessing/Lib/multiprocessing/tests.py",
line 1826, in main
    test_main(unittest.TextTestRunner(verbosity=2).run)
  File
"/home/heimes/dev/py/python-multiprocessing/Lib/multiprocessing/tests.py",
line 1805, in test_main
    ManagerMixin.pool = ManagerMixin.manager.Pool(4)
  File
"/home/heimes/dev/py/python-multiprocessing/Lib/multiprocessing/managers.py",
line 637, in temp
    token, exp = self._create(typeid, *args, **kwds)
  File
"/home/heimes/dev/py/python-multiprocessing/Lib/multiprocessing/managers.py",
line 535, in _create
    conn = self._Client(self._address, authkey=self._authkey)
  File
"/home/heimes/dev/py/python-multiprocessing/Lib/multiprocessing/connection.py",
line 142, in Client
    answer_challenge(c, authkey)
  File
"/home/heimes/dev/py/python-multiprocessing/Lib/multiprocessing/connection.py",
line 373, in answer_challenge
    message = connection.recv_bytes(256)         # reject large message
EOFError

@tiran tiran added interpreter-core (Objects, Python, Grammar, and Parser dirs) type-crash A hard crash of the interpreter, possibly with a core dump labels Nov 28, 2008
@benjaminp
Copy link
Contributor

Christian, to fix this, you need to backport the fix for bpo-1683.

@jnoller
Copy link
Mannequin

jnoller mannequin commented Nov 28, 2008

As ben mentioned, this is already fixed in core. See bpo-1683 - this is
only a problem when running in 2.5/2.4

@jnoller jnoller mannequin closed this as completed Nov 28, 2008
@ezio-melotti ezio-melotti transferred this issue from another repository Apr 10, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
interpreter-core (Objects, Python, Grammar, and Parser dirs) type-crash A hard crash of the interpreter, possibly with a core dump
Projects
None yet
Development

No branches or pull requests

2 participants