Message271118
| Author | martin.panter |
|---|
| Recipients | Jeffrey.Walton, alex, alexandre.vassalotti, christian.heimes, deadshort, dmalcolm, donmez, fweimer, gregory.p.smith, jcea, jwilk, loewis, mark.dickinson, martin.panter, matejcik, nnorwitz, pitrou, python-dev, serhiy.storchaka, vstinner, xiang.zhang, ztane |
|---|
| Date | 2016-07-24.00:10:29 |
|---|
| SpamBayes Score | -1.0 |
|---|
| Marked as misclassified | Yes |
|---|
| Message-id | <1469319029.58.0.453893802721.issue1621@psf.upfronthosting.co.za> |
|---|
| In-reply-to | |
|---|
| Content |
|---|
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-962I 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. |
| History |
|---|
| 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 | |
|