Open ram-bv opened 4 years ago
I know it looks weird but I ran into this too recently, os.getcwd()
itself needs to open some file under the hood, I don't know why. Check if it works on its own?
Damn Alex, are you stalking me? ;)
This is my work account, by the way.
I confirmed os.getcwd()
works on its own. It's curious that it would fail when called inside abspath
. In any case I'd recommend that even if PyPy or the standard library have bugs in that code, that better-exception should degrade gracefully when they happen.
We can wrap it, though it's a matter of what to do in lieu of the existing logic if an exception is raised.
I'd show something like SOURCE UNAVAILABLE
for those frames, anything besides failing.
I got this error running on pypy3.6-v7.3.0-linux64:
This is frustrating because I can't know what's the directory it's not finding. Can better-exceptions deal with such problems with graceful degradation? If a certain frame has a missing task, it's better to mark it as missing than crash.