/usr/share/apport/whoopsie-upload-all:ValueError:/usr/share/apport/whoopsie-upload-all@249:main:collect_info:process_report:load
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Apport |
Fix Released
|
High
|
Unassigned | ||
apport (Ubuntu) |
Fix Released
|
High
|
Benjamin Drung | ||
Kinetic |
Fix Released
|
Undecided
|
Unassigned |
Bug Description
Impact
======
apport-unpack and whoopsie-upload-all can crash when fed with a malformed problem report. They should print a proper error message instead of crashing. This is the most occurring apport bug in Ubuntu 22.10 (kinetic) with as of writing 14,822 reported crashes.
Test Plan
=========
1. Create malformed report:
```
echo > malformed.crash
```
2. Try to unpack it:
```
apport-unpack malformed.crash unpack
```
It should print an error message instead of a stack trace.
Where problems could occur
=======
The patch touches the problem report handling and therefore can affect apport-unpack, apport-bug, whoopsie-
Original report
===============
```
Traceback (most recent call last):
File "/usr/share/
main()
File "/usr/share/
stamps = collect_info()
File "/usr/share/
res = process_report(r)
File "/usr/share/
r.load(f, binary=
File "/usr/lib/
(key, value) = line.split(b":", 1)
ValueError: not enough values to unpack (expected 2, got 1)
```
The Ubuntu Error Tracker has been receiving reports about a problem regarding apport. This problem was most recently seen with package version 2.23.1-0ubuntu3, the problem page at https:/
If you do not have access to the Ubuntu Error Tracker and are a software developer, you can request it at http://
Changed in apport: | |
status: | Fix Committed → Fix Released |
description: | updated |
description: | updated |
tags: | removed: foundations-todo |
An example .crash files that triggers this bug would be useful.