shim-signed apport hook crashes under certain errors
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
shim-signed (Ubuntu) |
New
|
Low
|
Unassigned |
Bug Description
In bug #1718582, a user has a corrupted ESP. This leads to the shim-signed apport hook crashing with the following error:
Traceback (most recent call last):
File "/usr/lib/
symb[
File "/usr/share/
if directory:
UnboundLocalError: local variable 'directory' referenced before assignment
The relevant code is:
try:
directory = os.stat(efiboot)
except OSError as e:
if e.errno == errno.ENOENT:
return
if e.errno == errno.EACCES:
if directory:
If errno is anything other than ENOENT or EACCES, this crashes with the above traceback.
It would probably be better to at least re-raise e if it doesn't match one of our expected errnos.
Changed in shim-signed (Ubuntu): | |
importance: | Undecided → Low |
summary: |
- shim-signed hook crashes under certain errors + shim-signed apport hook crashes under certain errors |