Author vstinner
Recipients vstinner
Date 2019-08-21.13:12:59
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <>
Oh, my script called _thread.stack_size() to read the stack size, but that doesn't work: calling _thread.stack_size() sets the stack size to 0 again. is the fixed script. It seems like the test works with a stack of 8 MiB and the default recursion limit of 1000 Python frames:

vstinner@freebsd$ ./python 1000 4096
stack_size: 4096.0 kiB = 4.0 MiB
Segmentation fault (core dumped)

vstinner@freebsd$ ./python 1000 8192
stack_size: 8192.0 kiB = 8.0 MiB
end of main thread

So the problem is that the FreeBSD default thread stack size is too small.
Date User Action Args
2019-08-21 13:12:59vstinnersetrecipients: + vstinner
2019-08-21 13:12:59vstinnersetmessageid: <>
2019-08-21 13:12:59vstinnerlinkissue37906 messages
2019-08-21 13:12:59vstinnercreate