Misparses dpkg status line, fails to write apport reports
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
apt (Ubuntu) |
Fix Released
|
High
|
Unassigned | ||
Trusty |
Fix Released
|
High
|
Unassigned |
Bug Description
Test Case
---------
1) sudo apt-add-repository ppa:daisy-
2) sudo apt-get update
3) sudo apt-get install crash-in-postinst
4) observe a package installation failure dialog
With the version of apt in the archive you will *not* receive a crash file in /var/crash. If you install the version of apt from -proposed you should receive a crash file in /var/crash and an apport dialog should appear.
For a while apt has not been writing apport reports for dpkg maintainer script errors. Here’s why:
• pkgDPkgPM:
"status: cyrus-clients : error : subprocess installed post-installation script returned error exit status 1".
• StringSplit splits it into
list == {"status", "cyrus-clients ", "error ", "subprocess installed post-installation script returned error exit status 1"}.
• pkgname is set to Strip(list[1]) == "cyrus-clients".
• However, the original list[1] == "cyrus-clients " (with a trailing space) is passed to WriteApportReport.
• WriteApport fails to find "cyrus-clients " in the cache, and bails out.
Patch attached.
ProblemType: Bug
DistroRelease: Ubuntu 14.10
Package: libapt-pkg4.12 1.0.4ubuntu6
ProcVersionSign
Uname: Linux 3.16.0-6-generic x86_64
NonfreeKernelMo
ApportVersion: 2.14.5-0ubuntu3
Architecture: amd64
Date: Tue Aug 5 19:19:39 2014
EcryptfsInUse: Yes
InstallationDate: Installed on 2010-12-05 (1339 days ago)
InstallationMedia: Ubuntu 11.04 "Natty Narwhal" - Alpha amd64 (20101202)
SourcePackage: apt
UpgradeStatus: Upgraded to utopic on 2013-10-31 (278 days ago)
Changed in apt (Ubuntu): | |
status: | New → Triaged |
importance: | Undecided → High |
Changed in apt (Ubuntu Trusty): | |
status: | New → Triaged |
importance: | Undecided → High |
description: | updated |
description: | updated |
The attachment "apt-ProcessDpk gStatusLine- strip.patch" seems to be a patch. If it isn't, please remove the "patch" flag from the attachment, remove the "patch" tag, and if you are a member of the ~ubuntu-reviewers, unsubscribe the team.
[This is an automated message performed by a Launchpad user owned by ~brian-murray, for any issues please contact him.]