Open strugee opened 6 days ago
Hi @strugee and thanks for the report! We can try to investigate but without a reproducer is very hard for us to do anything here. Can you try to get a small jinja-based example to see if it crashes?
if not, can you modify /root/venv/lib/python3.8/site-packages/pystack/traceback_formatter.py
to print lines
and code.location
? Like so:
print(lines, code.location)
source = lines[code.location.lineno - 1]
Is there an existing issue for this?
Current Behavior
Expected Behavior
PyStack does not crash when processing this process.
Steps To Reproduce
I can try and nail down a more constrained STR, but I'm not really sure what to actually try since that it's hard to reduce our entire app to a minimal example... given the traceback (see below), I figured I would file a bug and see if anyone had any ideas on what to try based on their knowledge of the way PyStack works.
PyStack was freshly installed from Pip FWIW, into a fresh virtual environment. This crash happened on both a coredump file and on a live process (processing a request for the same URL). We're running Ubuntu 20.04.6.
Pystack Version
1.3.0
Python Version
3.8
Linux distribution
Ubuntu
Anything else?
No response