]> granicus.if.org Git - python/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:02:12 +0000 (15:02 -0700)
committerGitHub <noreply@github.com>
Wed, 14 Aug 2019 22:02:12 +0000 (15:02 -0700)
commitb8e682427a80798fec90dce31392beaf616c3e37
tree1f6bd24c605bc9847a341191e65c888cd82e63ad
parent123f6c4914827c4ced65d032fab74de62db31cd6
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