"""From http://bugs.python.org/issue6717A misbehaving trace hook can trigger a segfault by exceeding the recursionlimit."""import sys
defx():passdefg(*args):if True:# change to True to crash interpretertry:x()except:passreturn g
deff():print(sys.getrecursionlimit())f()
sys.settrace(g)f()