Author scoder
Recipients eli.bendersky, haypo, jkloth, scoder, serhiy.storchaka
Date 2017-09-17.20:28:16
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1505680096.74.0.861613236154.issue31499@psf.upfronthosting.co.za>
In-reply-to
Content
Minimal reproducer seems to be this:
----------
import xml.etree.ElementTree as etree

def test():
    parser = etree.XMLParser()
    try:
        parser.close()
    except etree.ParseError as exc:
        e = exc  # must keep local reference!

test()
----------

The master gitrev I tested is 132a7d7cdbc7cb89fa1c1f4e8192241c3d68f549

Since this happens during GC and finalisation, it's quite possible that it's not a bug in ET per se. It might just be a prematurely cleared reference in some tp_clear(), or something like that. (Changing ticket title appropriately.)
History
Date User Action Args
2017-09-17 20:28:16scodersetrecipients: + scoder, haypo, jkloth, eli.bendersky, serhiy.storchaka
2017-09-17 20:28:16scodersetmessageid: <1505680096.74.0.861613236154.issue31499@psf.upfronthosting.co.za>
2017-09-17 20:28:16scoderlinkissue31499 messages
2017-09-17 20:28:16scodercreate