Skip to content

bpo-43390: Set SA_ONSTACK in PyOS_setsig #24730

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Mar 5, 2021

Conversation

gpshead
Copy link
Member

@gpshead gpshead commented Mar 3, 2021

Set the SA_ONSTACK flag in PyOS_setsig for the CPython VM's
default signal handlers. This is friendlier to other in-process code that an
extension module or embedding use could pull in (such as Golang's cgo) where
tiny thread stacks are the norm and sigaltstack() has been used to provide for
signal handlers. This is a no-op change for the vast majority of processes
that don't use sigaltstack.

https://bugs.python.org/issue43390

gpshead added 2 commits March 3, 2021 17:51
This is friendlier to other in-process code that an extension module or
embedding use could pull in such as Cgo where tiny stacks are the norm
and sigaltstack() has been used to provide for signal handlers.
@gpshead gpshead added the type-feature A feature request or enhancement label Mar 3, 2021
@gpshead gpshead self-assigned this Mar 3, 2021
@gpshead gpshead merged commit 02ac6f4 into python:master Mar 5, 2021
@gpshead gpshead deleted the 43390-sa_onstack branch March 5, 2021 05:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type-feature A feature request or enhancement
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants