/usr/share/apport/apport:AttributeError:/usr/share/apport/apport@531:parse_arguments:print_usage:_print_message
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Apport |
Fix Released
|
High
|
Unassigned | ||
apport (Ubuntu) |
Fix Released
|
High
|
Unassigned | ||
Bionic |
New
|
Undecided
|
Unassigned | ||
Focal |
Fix Released
|
Undecided
|
Unassigned | ||
Impish |
Won't Fix
|
Undecided
|
Unassigned | ||
Jammy |
Fix Released
|
Undecided
|
Unassigned |
Bug Description
Impact
------
As it can be seen in https:/
Test Case
---------
There should be no instances of
https:/
for the fixed version.
Where problems could occur
-------
The apport binary is called by the kernel when a process crashes. Worst case scenarios include breaking the apport binary and no problem report is generated any more (or apport uses too much resources). Since all the desired logs are now logged, it could increase the amount of logs that are written (apport has some flood detection in case a process dies constantly).
Original Description
-------
The Ubuntu Error Tracker has been receiving reports about a problem regarding apport. This problem was most recently seen with package version 2.20.11-
If you do not have access to the Ubuntu Error Tracker and are a software developer, you can request it at http://
Traceback (most recent call last):
File "/usr/share/
options = parse_arguments()
File "/usr/share/
parser.
File "/usr/lib/
self.
File "/usr/lib/
file.
AttributeError: 'NoneType' object has no attribute 'write'
This bug can be reproduced by configuring the previously supported parameters to Apport and then let a process crash (e.g. call divide-by-zero):
```
echo "|/usr/
```
So this bug is a regression of commit c320e910a516 ("Switch to using non-positional arguments") which is a fix for CVE-2022-28658 and CVE-2021-3899.
description: | updated |
Changed in apport: | |
milestone: | none → 2.22.0 |
description: | updated |
Changed in apport (Ubuntu): | |
status: | New → Triaged |
Changed in apport: | |
status: | New → Triaged |
Changed in apport (Ubuntu): | |
importance: | Undecided → Medium |
Changed in apport: | |
importance: | Undecided → Medium |
Changed in apport: | |
status: | Fix Committed → Fix Released |
description: | updated |
Changed in apport (Ubuntu Focal): | |
status: | New → Fix Committed |
Changed in apport (Ubuntu Jammy): | |
status: | New → Fix Committed |
Changed in apport: | |
importance: | Medium → High |
Changed in apport (Ubuntu): | |
importance: | Medium → High |
description: | updated |
Fixed: https:/ /github. com/canonical/ apport/ commit/ 6bdf31767f9ddcf c47f1c975ac3c54 a8f695ae08