Message271118
The error message comes from Undefined Behaviour Sanitizer, which was added to newer versions of GCC and Clang. Currently I am compiling with
./configure --with-pydebug CC="gcc -fsanitize=undefined -fno-sanitize=alignment -fno-sanitize=shift"
https://gcc.gnu.org/onlinedocs/gcc/Instrumentation-Options.html#index-fsanitize_003dundefined-962
I thought it is worth adding a test for the impossible __length_hint__() value. Since the test iterator returns no elements, there will not be a MemoryError, but if overflow detection is enabled (such as UB Sanitizer or -ftrapv), it is guaranteed to exercise the overflow path and would be detected. |
|
Date |
User |
Action |
Args |
2016-07-24 00:10:29 | martin.panter | set | recipients:
+ martin.panter, loewis, nnorwitz, gregory.p.smith, jcea, mark.dickinson, pitrou, vstinner, christian.heimes, alexandre.vassalotti, donmez, matejcik, jwilk, alex, dmalcolm, python-dev, deadshort, serhiy.storchaka, ztane, fweimer, Jeffrey.Walton, xiang.zhang |
2016-07-24 00:10:29 | martin.panter | set | messageid: <1469319029.58.0.453893802721.issue1621@psf.upfronthosting.co.za> |
2016-07-24 00:10:29 | martin.panter | link | issue1621 messages |
2016-07-24 00:10:29 | martin.panter | create | |
|