sagemath / cysignals

cysignals: interrupt and signal handling for Cython. Source repository for https://pypi.org/project/cysignals/
GNU Lesser General Public License v3.0
44 stars 23 forks source link

cysignals_crash_logs in an unwritable directory #117

Open jamesjer opened 4 years ago

jamesjer commented 4 years ago

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?