Skip to content

bpo-21131: Fix faulthandler.register(chain=True) stack #15276

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 1 commit into from
Aug 14, 2019
Merged

bpo-21131: Fix faulthandler.register(chain=True) stack #15276

merged 1 commit into from
Aug 14, 2019

Conversation

vstinner
Copy link
Member

@vstinner vstinner commented Aug 14, 2019

faulthandler now allocates a dedicated stack of SIGSTKSZ*2 bytes,
instead of just SIGSTKSZ bytes. Calling the previous signal handler
in faulthandler signal handler uses more than SIGSTKSZ bytes of stack
memory on some platforms.

https://bugs.python.org/issue21131

faulthandler now allocates a dedicated stack of SIGSTKSZ*2 bytes,
instead of just SIGSTKSZ bytes. Calling the previous signal handler
in faulthandler signal handler uses more than SIGSTKSZ bytes of stack
memory on some platforms.
@miss-islington
Copy link
Contributor

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

miss-islington pushed a commit to miss-islington/cpython that referenced this pull request Aug 14, 2019
faulthandler now allocates a dedicated stack of SIGSTKSZ*2 bytes,
instead of just SIGSTKSZ bytes. Calling the previous signal handler
in faulthandler signal handler uses more than SIGSTKSZ bytes of stack
memory on some platforms.
(cherry picked from commit ac827ed)

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

GH-15291 is a backport of this pull request to the 3.8 branch.

miss-islington pushed a commit to miss-islington/cpython that referenced this pull request Aug 14, 2019
faulthandler now allocates a dedicated stack of SIGSTKSZ*2 bytes,
instead of just SIGSTKSZ bytes. Calling the previous signal handler
in faulthandler signal handler uses more than SIGSTKSZ bytes of stack
memory on some platforms.
(cherry picked from commit ac827ed)

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

GH-15292 is a backport of this pull request to the 3.7 branch.

miss-islington added a commit that referenced this pull request Aug 14, 2019
faulthandler now allocates a dedicated stack of SIGSTKSZ*2 bytes,
instead of just SIGSTKSZ bytes. Calling the previous signal handler
in faulthandler signal handler uses more than SIGSTKSZ bytes of stack
memory on some platforms.
(cherry picked from commit ac827ed)

Co-authored-by: Victor Stinner <[email protected]>
miss-islington added a commit that referenced this pull request Aug 14, 2019
faulthandler now allocates a dedicated stack of SIGSTKSZ*2 bytes,
instead of just SIGSTKSZ bytes. Calling the previous signal handler
in faulthandler signal handler uses more than SIGSTKSZ bytes of stack
memory on some platforms.
(cherry picked from commit ac827ed)

Co-authored-by: Victor Stinner <[email protected]>
lisroach pushed a commit to lisroach/cpython that referenced this pull request Sep 10, 2019
faulthandler now allocates a dedicated stack of SIGSTKSZ*2 bytes,
instead of just SIGSTKSZ bytes. Calling the previous signal handler
in faulthandler signal handler uses more than SIGSTKSZ bytes of stack
memory on some platforms.
DinoV pushed a commit to DinoV/cpython that referenced this pull request Jan 14, 2020
faulthandler now allocates a dedicated stack of SIGSTKSZ*2 bytes,
instead of just SIGSTKSZ bytes. Calling the previous signal handler
in faulthandler signal handler uses more than SIGSTKSZ bytes of stack
memory on some platforms.
hroncok pushed a commit to fedora-python/cpython that referenced this pull request Jun 29, 2020
bpo-38965: Fix faulthandler._stack_overflow() on GCC 10
Fixed upstream and backported from the 3.7 branch:
https://bugs.python.org/issue38965
python@f4a21d3

bpo-21131: Fix faulthandler.register(chain=True) stack (pythonGH-15276)
https://bugs.python.org/issue21131
python@ac827ed
encukou pushed a commit to fedora-python/cpython that referenced this pull request Jun 30, 2020
bpo-38965: Fix faulthandler._stack_overflow() on GCC 10
Fixed upstream and backported from the 3.7 branch:
https://bugs.python.org/issue38965
python@f4a21d3

bpo-21131: Fix faulthandler.register(chain=True) stack (pythonGH-15276)
https://bugs.python.org/issue21131
python@ac827ed
websurfer5 pushed a commit to websurfer5/cpython that referenced this pull request Jul 20, 2020
faulthandler now allocates a dedicated stack of SIGSTKSZ*2 bytes,
instead of just SIGSTKSZ bytes. Calling the previous signal handler
in faulthandler signal handler uses more than SIGSTKSZ bytes of stack
memory on some platforms.
hroncok pushed a commit to fedora-python/cpython that referenced this pull request Aug 4, 2020
bpo-38965: Fix faulthandler._stack_overflow() on GCC 10
Fixed upstream and backported from the 3.7 branch:
https://bugs.python.org/issue38965
python@f4a21d3

bpo-21131: Fix faulthandler.register(chain=True) stack (pythonGH-15276)
https://bugs.python.org/issue21131
python@ac827ed
hrnciar pushed a commit to fedora-python/cpython that referenced this pull request Aug 19, 2020
bpo-38965: Fix faulthandler._stack_overflow() on GCC 10
Fixed upstream and backported from the 3.7 branch:
https://bugs.python.org/issue38965
python@f4a21d3

bpo-21131: Fix faulthandler.register(chain=True) stack (pythonGH-15276)
https://bugs.python.org/issue21131
python@ac827ed
hrnciar pushed a commit to fedora-python/cpython that referenced this pull request Aug 25, 2020
bpo-38965: Fix faulthandler._stack_overflow() on GCC 10
Fixed upstream and backported from the 3.7 branch:
https://bugs.python.org/issue38965
python@f4a21d3

bpo-21131: Fix faulthandler.register(chain=True) stack (pythonGH-15276)
https://bugs.python.org/issue21131
python@ac827ed
hrnciar pushed a commit to fedora-python/cpython that referenced this pull request Sep 7, 2020
bpo-38965: Fix faulthandler._stack_overflow() on GCC 10
Fixed upstream and backported from the 3.7 branch:
https://bugs.python.org/issue38965
python@f4a21d3

bpo-21131: Fix faulthandler.register(chain=True) stack (pythonGH-15276)
https://bugs.python.org/issue21131
python@ac827ed
hroncok pushed a commit to hroncok/cpython that referenced this pull request Oct 5, 2020
bpo-38965: Fix faulthandler._stack_overflow() on GCC 10
Fixed upstream and backported from the 3.7 branch:
https://bugs.python.org/issue38965
python@f4a21d3

bpo-21131: Fix faulthandler.register(chain=True) stack (pythonGH-15276)
https://bugs.python.org/issue21131
python@ac827ed
hroncok pushed a commit to hroncok/cpython that referenced this pull request Oct 5, 2020
bpo-38965: Fix faulthandler._stack_overflow() on GCC 10
Fixed upstream and backported from the 3.7 branch:
https://bugs.python.org/issue38965
python@f4a21d3

bpo-21131: Fix faulthandler.register(chain=True) stack (pythonGH-15276)
https://bugs.python.org/issue21131
python@ac827ed
hrnciar pushed a commit to fedora-python/cpython that referenced this pull request Feb 16, 2021
bpo-38965: Fix faulthandler._stack_overflow() on GCC 10
Fixed upstream and backported from the 3.7 branch:
https://bugs.python.org/issue38965
python@f4a21d3

bpo-21131: Fix faulthandler.register(chain=True) stack (pythonGH-15276)
https://bugs.python.org/issue21131
python@ac827ed
encukou pushed a commit to encukou/cpython that referenced this pull request Feb 17, 2021
bpo-38965: Fix faulthandler._stack_overflow() on GCC 10
Fixed upstream and backported from the 3.7 branch:
https://bugs.python.org/issue38965
python@f4a21d3

bpo-21131: Fix faulthandler.register(chain=True) stack (pythonGH-15276)
https://bugs.python.org/issue21131
python@ac827ed
hrnciar pushed a commit to fedora-python/cpython that referenced this pull request Jun 29, 2021
bpo-38965: Fix faulthandler._stack_overflow() on GCC 10
Fixed upstream and backported from the 3.7 branch:
https://bugs.python.org/issue38965
python@f4a21d3

bpo-21131: Fix faulthandler.register(chain=True) stack (pythonGH-15276)
https://bugs.python.org/issue21131
python@ac827ed
hroncok pushed a commit to fedora-python/cpython that referenced this pull request Sep 5, 2021
stratakis pushed a commit to stratakis/cpython that referenced this pull request Jul 20, 2022
mcepl pushed a commit to openSUSE-Python/cpython that referenced this pull request Apr 2, 2024
hrnciar pushed a commit to fedora-python/cpython that referenced this pull request Apr 23, 2025
hroncok pushed a commit to fedora-python/cpython that referenced this pull request Jul 4, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants