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 scoder
Recipients eli.bendersky, scoder, serhiy.storchaka, vstinner
Date 2017-09-17.17:27:08
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1505669228.88.0.508971526433.issue31499@psf.upfronthosting.co.za>
In-reply-to
Content
I'm seeing crashes in the latest Py3.7 when I run this test (taken from lxml's compatibility test suite):

    etree = xml.etree.ElementTree

    def test_feed_parser_error_position(self):
        ParseError = etree.ParseError
        parser = XMLParser()
        try:
            parser.close()
        except ParseError:
            e = sys.exc_info()[1]
            self.assertNotEqual(None, e.code)
            self.assertNotEqual(0, e.code)
            self.assertTrue(isinstance(e.position, tuple))
            self.assertTrue(e.position >= (0, 0))

It crashes in expat/xmlparse.c, line 1464:

1459      for (;;) {
1460        BINDING *b = bindings;
1461        if (!b)
1462          break;
1463        bindings = b->nextTagBinding;
1464        FREE(b->uri);        // <<<<<<<<<<<<<<< crashes here
1465        FREE(b);
1466      }
1467    }

Probably related to the new expat version (issue 31170).
History
Date User Action Args
2017-09-17 17:27:08scodersetrecipients: + scoder, vstinner, eli.bendersky, serhiy.storchaka
2017-09-17 17:27:08scodersetmessageid: <1505669228.88.0.508971526433.issue31499@psf.upfronthosting.co.za>
2017-09-17 17:27:08scoderlinkissue31499 messages
2017-09-17 17:27:08scodercreate