python / cpython

The Python programming language
https://www.python.org
Other
62.61k stars 30.04k forks source link

multiprocessing AuthenticationError when nesting with non-default authkey #78740

Open 23ccc681-50ab-4e59-9ce6-7303b5f562c6 opened 6 years ago

23ccc681-50ab-4e59-9ce6-7303b5f562c6 commented 6 years ago
BPO 34559
Nosy @tirkarthi, @natedogith1

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: ```python assignee = None closed_at = None created_at = labels = ['library'] title = 'multiprocessing AuthenticationError when nesting with non-default authkey' updated_at = user = 'https://github.com/natedogith1' ``` bugs.python.org fields: ```python activity = actor = 'xtreak' assignee = 'none' closed = False closed_date = None closer = None components = ['Library (Lib)'] creation = creator = 'natedogith1' dependencies = [] files = [] hgrepos = [] issue_num = 34559 keywords = [] message_count = 1.0 messages = ['324447'] nosy_count = 2.0 nosy_names = ['xtreak', 'natedogith1'] pr_nums = [] priority = 'normal' resolution = None stage = None status = 'open' superseder = None type = None url = 'https://bugs.python.org/issue34559' versions = ['Python 3.6'] ```

23ccc681-50ab-4e59-9ce6-7303b5f562c6 commented 6 years ago

If you nest shared objects on a manager that doesn't use the default authkey, you get an AuthenticationError.

import multiprocessing.managers
a = multiprocessing.managers.SyncManager(authkey=b'')
a.start()
b = a.list()
b.append(a.list())
_ = b[0]