BPO | [34218](https://bugs.python.org/issue34218) --- | :--- Nosy | @vstinner, @serhiy-storchaka, @pablogsal PRs | python/cpython#8460 *Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.* Show more details GitHub fields: ```python assignee = None closed_at = created_at = labels = ['3.8', 'type-bug', 'tests'] title = 'test_xml_etree_c leaked [68, 68, 74] references, sum=210' updated_at = user = 'https://github.com/pablogsal' ``` bugs.python.org fields: ```python activity = actor = 'serhiy.storchaka' assignee = 'none' closed = True closed_date = closer = 'serhiy.storchaka' components = ['Tests'] creation = creator = 'pablogsal' dependencies = [] files = [] hgrepos = [] issue_num = 34218 keywords = ['patch'] message_count = 5.0 messages = ['322343', '322345', '322347', '322368', '322385'] nosy_count = 3.0 nosy_names = ['vstinner', 'serhiy.storchaka', 'pablogsal'] pr_nums = ['8460'] priority = 'normal' resolution = 'fixed' stage = 'resolved' status = 'closed' superseder = None type = 'behavior' url = 'https://bugs.python.org/issue34218' versions = ['Python 3.8'] ```
Activity
pablogsal commentedon Jul 25, 2018
Builder x86 Gentoo Refleaks 3.x reports that test_xml_etree_c is potentially leaking references and blocks:
https://buildbot.python.org/all/#builders/1/builds/295
----------------------------------------------------------------------
Ran 148 tests in 0.487s
OK
.
test_xml_etree_c leaked [68, 68, 74] references, sum=210
test_xml_etree_c leaked [51, 52, 52] memory blocks, sum=155
1 test failed again:
test_xml_etree_c
== Tests result: FAILURE then FAILURE ==
serhiy-storchaka commentedon Jul 25, 2018
Looks like a regression introduced in bpo-29209 (02ec92f).
serhiy-storchaka commentedon Jul 25, 2018
New changeset ee98e7b by Serhiy Storchaka in branch 'master':
bpo-34218: Fix a leak in _elementtree.c introduced in #51018. (GH-8460)
ee98e7b
vstinner commentedon Jul 25, 2018
Is this issue really fixed? https://buildbot.python.org/all/#builders/1/builds/295 still detects leaks.
serhiy-storchaka commentedon Jul 25, 2018
This test was finished 4 hours before the leak was fixed, and a hour before this issue was opened.