]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
bpo-21131: Fix faulthandler.register(chain=True) stack (GH-15276)
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Wed, 14 Aug 2019 22:09:39 +0000 (15:09 -0700)
committerGitHub <noreply@github.com>
Wed, 14 Aug 2019 22:09:39 +0000 (15:09 -0700)
commit1581d9c405f140491791a07dca3f6166bc499ec1
tree368985fdd03e51ab6b9baa84e6af2046c3bd538e
parentb0b178a2b80974da910ce6a344d66cc4d9a2fcfa
bpo-21131: Fix faulthandler.register(chain=True) stack (GH-15276)

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 ac827edc493d3ac3f5b9b0cc353df1d4b418a9aa)

Co-authored-by: Victor Stinner <vstinner@redhat.com>
Misc/NEWS.d/next/Library/2019-08-14-15-34-23.bpo-21131.0MMQRi.rst [new file with mode: 0644]
Modules/faulthandler.c