# Crash report ### What happened? Many thanks to Gil Portnoy (@dhkts1) for finding this. ___ ```python import xml.etree.ElementTree as ET import sys import copy root = ET.Element("r") cur = root for i in range(500_000): c = ET.Element("n") cur.append(c) cur = c copy.deepcopy(root) # SIGSEGV ``` ### CPython versions tested on: CPython main branch ### Operating systems tested on: _No response_ ### Output from running 'python -VV' on the command line: _No response_ <!-- gh-linked-prs --> ### Linked PRs * gh-148802 * gh-148842 * gh-148843 <!-- /gh-linked-prs -->
Crash report
What happened?
Many thanks to Gil Portnoy (@dhkts1) for finding this.
CPython versions tested on:
CPython main branch
Operating systems tested on:
No response
Output from running 'python -VV' on the command line:
No response
Linked PRs
Element.__deepcopy__()#148802Element.__deepcopy__()(GH-148802) #148842Element.__deepcopy__()(GH-148802) #148843