Crash report
What happened?
Reproduce on Python 3.12.8+ or 3.13.1+, main work fine, but there is a problem there too:
./configure --with-pydebug
make
./python --version
Python 3.13.1+
./python -c 'import datetime as dt; dt.datetime(2013, 11, 10, 14, 20, 59).strftime("%z")'
Segmentation fault
No need to check to if we don't write there
Fix in #127876
CPython versions tested on:
3.12, 3.13
Operating systems tested on:
Linux
Output from running 'python -VV' on the command line:
Python 3.13.1+ (heads/3.13:d51c1444e3, Dec 12 2024, 19:36:26) [GCC 9.4.0]
Linked PRs
Crash report
What happened?
Reproduce on Python 3.12.8+ or 3.13.1+,
mainwork fine, but there is a problem there too:./configure --with-pydebug make ./python --version Python 3.13.1+ ./python -c 'import datetime as dt; dt.datetime(2013, 11, 10, 14, 20, 59).strftime("%z")' Segmentation faultNo need to check
toif we don't write thereFix in #127876
CPython versions tested on:
3.12, 3.13
Operating systems tested on:
Linux
Output from running 'python -VV' on the command line:
Python 3.13.1+ (heads/3.13:d51c1444e3, Dec 12 2024, 19:36:26) [GCC 9.4.0]
Linked PRs
_copy_characters#127876Objects/unicodeobject::_copy_characters(GH-127876) #128458Objects/unicodeobject::_copy_characters(GH-127876) #128459