apport-unpack: ValueError: ['UserGroups'] has no binary content
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
apport (Ubuntu) |
Fix Released
|
Low
|
Brian Murray | ||
Xenial |
Won't Fix
|
Low
|
cristian swing | ||
Focal |
Fix Released
|
Undecided
|
Brian Murray | ||
Groovy |
Fix Released
|
Low
|
Brian Murray |
Bug Description
[Impact]
apport-unpack crashes when trying to unpack a crash
[Test Case]
On a system running 20.04 LTS:
1) create an additional user who is only a member of their own group e.g.
bdmurray@
uid=1001(crashy) gid=1001(crashy) groups=1001(crashy)
2) Launch a process as that user
3) kill -11 that process
4) Confirm there is a crash file in /var/crash for that process
5) Run apport-unpack on that .crash file
With the version of apport from -proposed you will not get another crash file when unpacking the crash file.
[Regression Potential]
We are just setting UserGroups to 'N/A' as opposed to having it be completely empty so there isn't any chance for regression.
When running apport-unpack to get at a core dump
laney@raleigh> sudo apport-unpack _usr_lib_
[sudo] password for laney:
Traceback (most recent call last):
File "/usr/bin/
pr.
File "/usr/lib/
[item for item, element in b64_block.items() if element is False])
ValueError: ['UserGroups'] has no binary content
laney@raleigh> apport-cli --version
2.16.2
It's not terrible, because most files are unpacked (those which sort before UserGroups, I guess).
ProblemType: BugDistroRelease: Ubuntu 15.04
Package: apport 2.16.2-0ubuntu1
ProcVersionSign
Uname: Linux 3.19.0-7-generic x86_64
ApportLog:
ApportVersion: 2.16.2-0ubuntu1
Architecture: amd64
CurrentDesktop: Unity
Date: Tue Mar 3 10:09:26 2015
InstallationDate: Installed on 2012-10-07 (876 days ago)
InstallationMedia: Ubuntu 12.10 "Quantal Quetzal" - Beta amd64 (20121007)
PackageArchitec
UpgradeStatus: Upgraded to vivid on 2013-05-07 (665 days ago)
Changed in apport (Ubuntu): | |
importance: | Undecided → High |
Changed in apport (Ubuntu): | |
status: | Expired → Triaged |
Changed in apport (Ubuntu Xenial): | |
status: | Expired → Triaged |
tags: |
added: bionic focal xenial removed: vivid |
tags: | added: eoan |
tags: | added: rls-gg-incoming |
tags: | removed: rls-gg-incoming |
tags: | added: id-5ecfd66ad4bb5f1beb8b576d |
Changed in apport (Ubuntu Groovy): | |
status: | Triaged → In Progress |
assignee: | nobody → Brian Murray (brian-murray) |
description: | updated |
Changed in apport (Ubuntu Focal): | |
status: | New → In Progress |
assignee: | nobody → Brian Murray (brian-murray) |
description: | updated |
information type: | Public → Public Security |
information type: | Public Security → Private Security |
information type: | Private Security → Public |
Changed in apport (Ubuntu Xenial): | |
status: | Triaged → Won't Fix |
Changed in apport (Ubuntu Xenial): | |
assignee: | nobody → cristian swing (sed1991s) |
I get this, too, with a .crash file from qemu that for some reason seems to be truncated after the USerGroups section !?
Attaching the .crash file causing this issue.
[apport-bug also has issues with this file.]