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

Deadlocks in concurrent.futures.ProcessPoolExecutor with pickling error #75880

Closed
tomMoral mannequin opened this issue Oct 5, 2017 · 3 comments
Closed

Deadlocks in concurrent.futures.ProcessPoolExecutor with pickling error #75880

tomMoral mannequin opened this issue Oct 5, 2017 · 3 comments
Labels
3.7 (EOL) end of life stdlib Python modules in the Lib dir type-bug An unexpected behavior, bug, or error

Comments

@tomMoral
Copy link
Mannequin

tomMoral mannequin commented Oct 5, 2017

BPO 31699
Nosy @pitrou, @tomMoral
PRs
  • bpo-31699 Deadlocks in concurrent.futures.ProcessPoolExecutor with pickling error #3895
  • gh-75880: Deadlocks in concurrent.futures.ProcessPoolExecutor with unpickling error #4256
  • 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 2018-01-05.12:33:10.791>
    created_at = <Date 2017-10-05.07:41:45.845>
    labels = ['3.7', 'type-bug', 'library']
    title = 'Deadlocks in `concurrent.futures.ProcessPoolExecutor` with pickling error'
    updated_at = <Date 2018-01-05.12:33:10.789>
    user = 'https://github.com/tomMoral'

    bugs.python.org fields:

    activity = <Date 2018-01-05.12:33:10.789>
    actor = 'pitrou'
    assignee = 'none'
    closed = True
    closed_date = <Date 2018-01-05.12:33:10.791>
    closer = 'pitrou'
    components = ['Library (Lib)']
    creation = <Date 2017-10-05.07:41:45.845>
    creator = 'tomMoral'
    dependencies = []
    files = []
    hgrepos = []
    issue_num = 31699
    keywords = ['patch']
    message_count = 3.0
    messages = ['303745', '309497', '309504']
    nosy_count = 2.0
    nosy_names = ['pitrou', 'tomMoral']
    pr_nums = ['3895', '4256']
    priority = 'normal'
    resolution = 'fixed'
    stage = 'resolved'
    status = 'closed'
    superseder = None
    type = 'behavior'
    url = 'https://bugs.python.org/issue31699'
    versions = ['Python 3.7']

    @tomMoral
    Copy link
    Mannequin Author

    tomMoral mannequin commented Oct 5, 2017

    When using concurrent.futures.ProcessPoolExecutor with objects that are not picklable or unpicklable, several situations results in a deadlock, with the interpreter freezed.

    This is the case for different scenario, for instance these three : https://gist.github.com/tomMoral/cc27a938d669edcf0286c57516942369

    The different pickling/unpickling error and their effect should be tested in test_concurrent_futures.py

    @tomMoral tomMoral mannequin added 3.7 (EOL) end of life stdlib Python modules in the Lib dir labels Oct 5, 2017
    @pitrou
    Copy link
    Member

    pitrou commented Jan 5, 2018

    New changeset 94459fd by Antoine Pitrou (Thomas Moreau) in branch 'master':
    bpo-31699 Deadlocks in concurrent.futures.ProcessPoolExecutor with pickling error (bpo-3895)
    94459fd

    @pitrou
    Copy link
    Member

    pitrou commented Jan 5, 2018

    This non-trivial issue has been fixed now, thanks to Thomas' patch. Thank you Thomas!

    @pitrou pitrou closed this as completed Jan 5, 2018
    @pitrou pitrou added the type-bug An unexpected behavior, bug, or error label Jan 5, 2018
    @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
    3.7 (EOL) end of life stdlib Python modules in the Lib dir type-bug An unexpected behavior, bug, or error
    Projects
    None yet
    Development

    No branches or pull requests

    1 participant