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

Issues when Condition.notify() is interrupted #92530

Closed
Assignees
serhiy-storchaka
Labels
type-bugAn unexpected behavior, bug, or error
@serhiy-storchaka

Description

@serhiy-storchaka

Ifthreading.Condition.notify() is interrupted just after it releases the waiter lock, but before remove it from the queue, the following calls ofnotify() will fail withRuntimeError: cannot release un-acquired lock. It can block the waiter threads if they do not use timeout.

forwaiterinwaiters_to_notify:
waiter.release()
try:
all_waiters.remove(waiter)
exceptValueError:
pass

The simplest solution would be to silence a RuntimeError inwaiter.release(). There may be similar issues in other parts of the code.

Metadata

Metadata

Labels

type-bugAn unexpected behavior, bug, or error

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions


    [8]ページ先頭

    ©2009-2025 Movatter.jp