[pypy-issue] Issue #1943: RuntimeError: settrace/setprofile function gets lost (pypy/pypy)

Armin Rigo issues-reply at bitbucket.org
Mon Dec 8 15:22:37 CET 2014


New issue 1943: RuntimeError: settrace/setprofile function gets lost
https://bitbucket.org/pypy/pypy/issue/1943/runtimeerror-settrace-setprofile-function

Armin Rigo:

It's not possible to write a settrace() or setprofile() function that remains active if we're about to run out of stack.  If we are, we get a RuntimeError when the function is called.  The RuntimeError is normally propagated, but in case it is eaten (e.g. because we're in a hasattr()) then the program continues to run normally --- but the trace/profile function is disabled.  (This also occurs on CPython.)




More information about the pypy-issue mailing list