apport_python_hook.py fails when running from nonexisting directory on linux
Bug #1852573 reported by
David Pravec
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Apport |
New
|
Undecided
|
Unassigned |
Bug Description
when current directory no longer exists (deleted by other process), apport crashes.
this was tested on Linux:
[Wed Oct 30 14:43:50.665 2019] Error in sys.excepthook:
[Wed Oct 30 14:43:50.665 2019] Traceback (most recent call last):
[Wed Oct 30 14:43:50.665 2019] File "/usr/lib/
[Wed Oct 30 14:43:50.665 2019] binary = os.path.
[Wed Oct 30 14:43:50.665 2019] FileNotFoundError: [Errno 2] No such file or directory
also, are you sure you want to search for sys.argv[0] in current directory?
To post a comment you must log in.