jax
6374b73c - [XLA:Python] Fix crash when accessing locals of JAX-generated Python tracebacks.

Commit
2 years ago
[XLA:Python] Fix crash when accessing locals of JAX-generated Python tracebacks. Use a dummy PyCodeObject in our dummy PyFrameObjects. Using a real PyCodeObject with a fake PyFrameObject confuses CPython 3.11+ when it attempts to compute the locals of a frame, since the frame lacks certain details such as closure information. This unfortunately means we will not get source column information under Python 3.11 any more, but that is probably better than crashing. Fixes https://github.com/google/jax/issues/16027 PiperOrigin-RevId: 538873850
Author
Committer
Parents
Loading