[Bug 1427600] Re: apport-unpack: ValueError: ['UserGroups'] has no binary content
Nicholas Schell
1427600 at bugs.launchpad.net
Tue Mar 31 06:58:56 UTC 2020
If apport-unpack expects a value and cannot have an empty field for
UserGroups, that would mean the bug is in report.py. The thing that is
generating the totally broken crash report.
report.py will leave the UserGroups field empty if the user is not part
of any system groups (GIDs less thans 1000). Also report.py ignores the
user's primary group if that is the only system group they are a part
of.
It's surprising this has been this way for literally years, since 12.04
at least. I really don't understand why. Especially since most system
users are only a part of one group, their own primary group. AND when
you run apport-unpack on a crash report with an empty UserGroups field
will generate a new crash report for apport-unpack. Like seriously...
P.S. this problem is going to be present in 20.04. So likely unchanged
for another 2 years.
--
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to apport in Ubuntu.
https://bugs.launchpad.net/bugs/1427600
Title:
apport-unpack: ValueError: ['UserGroups'] has no binary content
Status in apport package in Ubuntu:
Triaged
Status in apport source package in Xenial:
Triaged
Bug description:
When running apport-unpack to get at a core dump
laney at raleigh> sudo apport-unpack _usr_lib_x86_64-linux-gnu_urfkill_urfkilld.0.crash ~/temp/zozoz
[sudo] password for laney:
Traceback (most recent call last):
File "/usr/bin/apport-unpack", line 73, in <module>
pr.extract_keys(f, bin_keys, dir)
File "/usr/lib/python3/dist-packages/problem_report.py", line 253, in extract_keys
[item for item, element in b64_block.items() if element is False])
ValueError: ['UserGroups'] has no binary content
laney at raleigh> apport-cli --version
2.16.2
It's not terrible, because most files are unpacked (those which sort
before UserGroups, I guess).
ProblemType: Bug
DistroRelease: Ubuntu 15.04
Package: apport 2.16.2-0ubuntu1
ProcVersionSignature: Ubuntu 3.19.0-7.7-generic 3.19.0
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)
PackageArchitecture: all
SourcePackage: apport
UpgradeStatus: Upgraded to vivid on 2013-05-07 (665 days ago)
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/apport/+bug/1427600/+subscriptions
More information about the foundations-bugs
mailing list