Skip to content

Conversation

@vstinner
Copy link
Member

@vstinner vstinner commented Oct 10, 2023

  • cycle_handlers() now waits until at least one signal is received.
  • num_received_signals can be equal to num_sent_signals.

* cycle_handlers() now waits until at least one signal is received.
* num_received_signals can be equal to num_sent_signals.
@vstinner
Copy link
Member Author

Address sanitizer failed: I created issue gh-110656.

FAIL: test_post_fork_child_no_deadlock (test.test_logging.HandlerTest.test_post_fork_child_no_deadlock)
Ensure child logging locks are not held; bpo-6721 & bpo-36533.
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/home/runner/work/cpython/cpython/Lib/test/test_logging.py", line 789, in test_post_fork_child_no_deadlock
    support.wait_process(pid, exitcode=0)
  File "/home/runner/work/cpython/cpython/Lib/test/support/__init__.py", line 2206, in wait_process
    raise AssertionError(f"process {pid} is still running "
AssertionError: process 12448 is still running after 300.4 seconds

@vstinner vstinner enabled auto-merge (squash) October 10, 2023 23:46
@vstinner vstinner merged commit e07c37c into python:main Oct 10, 2023
@vstinner vstinner deleted the test_signal branch October 10, 2023 23:59
@miss-islington
Copy link
Contributor

Thanks @vstinner for the PR 🌮🎉.. I'm working now to backport this PR to: 3.11, 3.12.
🐍🍒⛏🤖

miss-islington pushed a commit to miss-islington/cpython that referenced this pull request Oct 10, 2023
…H-110650)

* cycle_handlers() now waits until at least one signal is received.
* num_received_signals can be equal to num_sent_signals.
(cherry picked from commit e07c37c)

Co-authored-by: Victor Stinner <[email protected]>
@bedevere-app
Copy link

bedevere-app bot commented Oct 10, 2023

GH-110658 is a backport of this pull request to the 3.12 branch.

@bedevere-app bedevere-app bot removed the needs backport to 3.12 only security fixes label Oct 10, 2023
@bedevere-app
Copy link

bedevere-app bot commented Oct 11, 2023

GH-110659 is a backport of this pull request to the 3.11 branch.

@bedevere-app bedevere-app bot removed the needs backport to 3.11 only security fixes label Oct 11, 2023
miss-islington pushed a commit to miss-islington/cpython that referenced this pull request Oct 11, 2023
…H-110650)

* cycle_handlers() now waits until at least one signal is received.
* num_received_signals can be equal to num_sent_signals.
(cherry picked from commit e07c37c)

Co-authored-by: Victor Stinner <[email protected]>
@vstinner
Copy link
Member Author

Merged. Thanks for the review @barneygale.

vstinner added a commit that referenced this pull request Oct 11, 2023
) (#110659)

gh-110647: Fix signal test_stress_modifying_handlers() (GH-110650)

* cycle_handlers() now waits until at least one signal is received.
* num_received_signals can be equal to num_sent_signals.
(cherry picked from commit e07c37c)

Co-authored-by: Victor Stinner <[email protected]>
vstinner added a commit that referenced this pull request Oct 11, 2023
) (#110658)

gh-110647: Fix signal test_stress_modifying_handlers() (GH-110650)

* cycle_handlers() now waits until at least one signal is received.
* num_received_signals can be equal to num_sent_signals.
(cherry picked from commit e07c37c)

Co-authored-by: Victor Stinner <[email protected]>
Glyphack pushed a commit to Glyphack/cpython that referenced this pull request Sep 2, 2024
…110650)

* cycle_handlers() now waits until at least one signal is received.
* num_received_signals can be equal to num_sent_signals.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

tests Tests in the Lib/test dir

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants