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 serhiy.storchaka
Recipients martin.panter, serhiy.storchaka
Date 2015-12-18.12:04:44
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <>
ElementTree iteration code holds borrowed references when call user code (comparison with the tag, concatenating text and tail lazy lists, testing text and tail for empty). User code can make borrowed references invalid and this can lead to a crash. One example is provided by Martin in msg256495. Other possible cases can be more hard to reproduce.

Proposed patch makes iterating code to own references that it operates.
Date User Action Args
2015-12-18 12:04:45serhiy.storchakasetrecipients: + serhiy.storchaka, martin.panter
2015-12-18 12:04:44serhiy.storchakasetmessageid: <>
2015-12-18 12:04:44serhiy.storchakalinkissue25902 messages
2015-12-18 12:04:44serhiy.storchakacreate