Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Race between_PyParkingLot_Park and_PyParkingLot_UnparkAll when handling interrupts #114944

Closed
@mpage

Description

@mpage

Bug report

Bug description:

There is a potential race when_PyParkingLot_UnparkAll is executing in one thread and another thread is unblocked because of an interrupt in_PyParkingLot_Park. Consider the following scenario:

  1. Thread T0 isblocked in_PyParkingLot_Park on addressA.
  2. Thread T1 executes_PyParkingLot_UnparkAll on addressA. It finds thewait_entry forT0 andunlinks its list node.
  3. Immediately after (2), T0 is woken up due to an interrupt. It then segfaults trying tounlink the node that was previously unlinked in (2).

I haven't attempted to write a minimal repro for this. It occurs reliably on MacOS onthis PR when running./python.exe -m test test_asyncio.test_events --match test_get_event_loop_new_process.

CPython versions tested on:

CPython main branch

Operating systems tested on:

macOS

Linked PRs

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions


      [8]ページ先頭

      ©2009-2025 Movatter.jp