FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

[3.7] bpo-33613, test_semaphore_tracker_sigint: fix race condition (GH-7850) by miss-islington · Pull Request #9055 · python/cpython · GitHub

Repository navigation

[3.7] bpo-33613, test_semaphore_tracker_sigint: fix race condition (GH-7850) - #9055

Closed
miss-islington wants to merge 1 commit into
python:3.7from
miss-islington:backport-ec74d18-3.7
Closed

miss-islington wants to merge 1 commit into
python:3.7from
miss-islington:backport-ec74d18-3.7

Conversation

miss-islington commented Sep 4, 2018 •
edited by bedevere-bot
Loading

Copy link
Copy Markdown
Contributor

Fail test_semaphore_tracker_sigint if no warnings are expected and one is received.

Fix race condition when the child receives SIGINT before it can register signal handlers for it.

The race condition occurs when the parent calls
_semaphore_tracker.ensure_running() (which in turn spawns the
semaphore_tracker using _posixsubprocess.fork_exec), the child
registers the signal handlers and the parent tries to kill the child.
What seem to happen is that in some slow systems, the parent sends the
signal to kill the child before the child protects against the signal.
(cherry picked from commit ec74d18)

Co-authored-by: Pablo Galindo Pablogsal@gmail.com

https://bugs.python.org/issue33613

…H-7850)

Fail `test_semaphore_tracker_sigint` if no warnings are expected and one is received.

Fix race condition when the child receives SIGINT before it can register signal handlers for it.

The race condition occurs when the parent calls
`_semaphore_tracker.ensure_running()` (which in turn spawns the
semaphore_tracker using `_posixsubprocess.fork_exec`), the child
registers the signal handlers and the parent tries to kill the child.
What seem to happen is that in some slow systems, the parent sends the
signal to kill the child before the child protects against the signal.
(cherry picked from commit ec74d18)

Co-authored-by: Pablo Galindo <Pablogsal@gmail.com>

pitrou commented Sep 4, 2018

Copy link
Copy Markdown
Member

Rejected. This isn't fixing a user-visible bug.

pitrou closed this Sep 4, 2018
miss-islington deleted the backport-ec74d18-3.7 branch September 4, 2018 08:57

Copy link
Copy Markdown
Contributor Author

@pablogsal and @pitrou: Backport status check is done, and it's a failure ❌ .

1 similar comment

Copy link
Copy Markdown
Contributor Author

@pablogsal and @pitrou: Backport status check is done, and it's a failure ❌ .

This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants


Back | FazBrowse Home | New Git URL