Movatterモバイル変換


[0]ホーム

URL:


homepage

Message271118

This issue trackerhas been migrated toGitHub, and is currentlyread-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Authormartin.panter
RecipientsJeffrey.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
Date2016-07-24.00:10:29
SpamBayes Score-1.0
Marked as misclassifiedYes
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
DateUserActionArgs
2016-07-24 00:10:29martin.pantersetrecipients: +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:29martin.pantersetmessageid: <1469319029.58.0.453893802721.issue1621@psf.upfronthosting.co.za>
2016-07-24 00:10:29martin.panterlinkissue1621 messages
2016-07-24 00:10:29martin.pantercreate
Supported byThe Python Software Foundation,
Powered byRoundup
Copyright © 1990-2022,Python Software Foundation
Legal Statements

[8]ページ先頭

©2009-2026 Movatter.jp