You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Py_C_STACK_SIZE causes test_max_level failure on musl/s390x #139467
I was able to make the tests pass by removing this stack size limitation for s390x with the following patch, making it use the default size 4000000 as other architectures do:
Because this dumb patch appears to work, I would like to ask you for some insight on why this Py_C_STACK_SIZE override on s390x exists. I'm not very familiar with s390x myself.
changed the title [-][3.14] s390x Py_C_STACK_SIZE causes test_max_level failure on musl[/-][+][3.14] s390x Py_C_STACK_SIZE causes `test_max_level` failure on musl[/+]on Oct 2, 2025
changed the title [-][3.14] s390x Py_C_STACK_SIZE causes `test_max_level` failure on musl[/-][+]Py_C_STACK_SIZE causes `test_max_level` failure on musl/s390x[/+]on Oct 2, 2025
Hi. I modified Python build system to increase the default stack size from 128 kiB to 1 MiB and update Py_C_STACK_SIZE. Can you please check if you can still reproduce the issue on s390x?
Hi. I modified Python build system to increase the default stack size from 128 kiB to 1 MiB and update Py_C_STACK_SIZE. Can you please check if you can still reproduce the issue on s390x?
could you tell me which commit you did it in? it would be easier for me to test that way.
Activity
picnixz commentedon Oct 2, 2025
cc @markshannon (this was #130396)
[-][3.14] s390x Py_C_STACK_SIZE causes test_max_level failure on musl[/-][+][3.14] s390x Py_C_STACK_SIZE causes `test_max_level` failure on musl[/+][-][3.14] s390x Py_C_STACK_SIZE causes `test_max_level` failure on musl[/-][+]Py_C_STACK_SIZE causes `test_max_level` failure on musl/s390x[/+]vstinner commentedon Jun 18, 2026
Hi. I modified Python build system to increase the default stack size from 128 kiB to 1 MiB and update Py_C_STACK_SIZE. Can you please check if you can still reproduce the issue on s390x?
lotheac commentedon Jun 18, 2026
could you tell me which commit you did it in? it would be easier for me to test that way.
vstinner commentedon Jun 19, 2026
The latest musl fix is 9a61d1c.
lotheac commentedon Jun 19, 2026
@vstinner I applied df6c157 and 9a61d1c on top of 3.14.5, and can no longer reproduce the issue. Thanks!
vstinner commentedon Jun 19, 2026
That's great! Thanks for testing.