sagemath/cysignals

cysignals_crash_logs in an unwritable directory

jamesjer opened this issue · 0 comments

A Fedora user has somehow managed to trigger the creation of cysignals_crash_logs in a directory for which the user does not have write permission:

https://bugzilla.redhat.com/show_bug.cgi?id=1751021

I'm not sure how the user did this, since the process environment attached to that bug indicates that $PWD is the user's home directory. Nevertheless, it might be a good idea to wrap the invocation of mkdir_p in cysignals-CSI with a try ... except PermissionError: ... and do what? Return None?