GeezerVisonThe World Wide Web, restored to 800 pixels of glory. | |||||||
| Home|About|Gaming cabinet|Archives|How it works|Starter sites | |||||||
GeezerVison is showing github.com — GH-116008: Aquire TState and StopTheWorld in faulthandler_user by sergey-miryanov · Pull Request #141267 · python/cpython Conversation
|
|
@vstinner Could you please take a look? |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
@AA-Turner sorry, misclick. |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
We can't acquire the GIL or make a stop-the-world pause inside signal handlers, because they're not signal safe. For example, Python could receive the signal while in the middle of a stop-the-world pause, which would deadlock inside the signal handler.
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
A Python core developer has requested some changes be made to your pull request before we can consider merging it. If you could please address their requests along with any other requests in other reviews from core developers that would be appreciated. Once you have made the requested changes, please leave a comment on this pull request containing the phrase And if you don't make the requested changes, you will be poked with soft cushions! |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
@ZeroIntensity If I get you right (feel free to correct me):
Therefore, if we want to safely handle non-fatal signals, then using the |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
Nope, because I think it would be best to just document that faulthandler sometimes crashes if you mess with it. |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
I agree. This approach is not safe at all. I suggest closing this PR. |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
@ZeroIntensity @vstinner Thanks! |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
Successfully merging this pull request may close these issues.
There was an error while loading. Please reload this page.