This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author pablogsal
Recipients Guido.van.Rossum, Mark.Shannon, eric.snow, gvanrossum, pablogsal, rhettinger, serhiy.storchaka
Date 2021-06-08.11:24:22
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <>
The problem seems to be that The problem is that PyFrame_LocalsToFast(frame, 1); calls into PyFrame_LocalsToFast where co->co_nlocals has a value of 3, and this causes co->co_cell2arg[i - co->co_nlocals]; to access outside the bounds of the array.

As this change is affecting all tests (there are many tests in the test suite that fail with a buffer overflow in the ASAN builds) I opened PR 26597 to revert commit commit631f9938b1604d4f893417ec339b9e0fa9196fb1. As always, please, recommit commit631f9938b1604d4f893417ec339b9e0fa9196fb1 once this issues are fixed.

To reproduce these failures locally you can:

$ export ASAN_OPTIONS=detect_leaks=0:allocator_may_return_null=1:handle_segv=0
$ ./configure --with-address-sanitizer --without-pymalloc
$ make -j -s
$ ./python -m test test_sys_settrac
Date User Action Args
2021-06-08 11:24:22pablogsalsetrecipients: + pablogsal, gvanrossum, rhettinger, Mark.Shannon, eric.snow, serhiy.storchaka, Guido.van.Rossum
2021-06-08 11:24:22pablogsalsetmessageid: <>
2021-06-08 11:24:22pablogsallinkissue43693 messages
2021-06-08 11:24:22pablogsalcreate