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

[3.11] gh-106883 Fix deadlock in threaded application #117332

Closed
wants to merge 5 commits into from

Commits on Mar 28, 2024

  1. [3.11] pythongh-106883 Fix deadlock in threaded application

    When using threaded applications, there is a high risk of a deadlock in
    the intepreter.
    It's a lock ordering deadlock with HEAD_LOCK(&_PyRuntime); and the GIL.
    
    It has been suggested to disable GC during the
    _PyThread_CurrentFrames() and _PyThread_CurrentExceptions() calls.
    diegorusso committed Mar 28, 2024
    Configuration menu
    Copy the full SHA
    183aef0 View commit details
    Browse the repository at this point in the history

Commits on Apr 5, 2024

  1. Configuration menu
    Copy the full SHA
    625b0f9 View commit details
    Browse the repository at this point in the history
  2. pythongh-106883 Fix deadlock in threaded application

    When using threaded applications, there is a high risk of a deadlock in
    the intepreter.
    It's a lock ordering deadlock with HEAD_LOCK(&_PyRuntime); and the GIL.
    
    By disabling the GC during the _PyThread_CurrentFrames() and
    _PyThread_CurrentExceptions() calls fixes the issue.
    diegorusso committed Apr 5, 2024
    Configuration menu
    Copy the full SHA
    20a2b04 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    6d25f11 View commit details
    Browse the repository at this point in the history

Commits on Apr 9, 2024

  1. Improve test case

    diegorusso committed Apr 9, 2024
    Configuration menu
    Copy the full SHA
    6a88da5 View commit details
    Browse the repository at this point in the history