You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
after some search the root cause seems from PyObject_Repr(PyDict_GetItem(locals, name));
the repr and getattar caused the recursive.
but I am not sure it needs fix on viztracer or pytorch side.
It seems like using getattr on that object will cause infinite recursion? If this could be reproduced without viztracer, maybe it’s not a viztracer issue. Is there a note in torch for this? That users should not do it?
not exactly I did some search and no relate issues on pytorch.
but in cpython I found this one python/cpython#86075 similar but not the same thing.
I will try use bare sys.settrace to test later
os: ubuntu20.04 and MacOS m1 both test
cat foo.py
run this command the
viztracer
will hangviztracer --log_func_args a.py
use py-spy to check the stack will see as follows:
seems loop in getattr (torch/_ops.py:480)
The text was updated successfully, but these errors were encountered: