← Back to team overview

touch-packages team mailing list archive

[Bug 1353171] [NEW] Misparses dpkg status line, fails to write apport reports

 

Public bug reported:

For a while apt has not been writing apport reports for dpkg maintainer
script errors. Here’s why:

• pkgDPkgPM::ProcessDpkgStatusLine sees a line like
"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
ProcVersionSignature: Ubuntu 3.16.0-6.11-generic 3.16.0-rc7
Uname: Linux 3.16.0-6-generic x86_64
NonfreeKernelModules: openafs
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)

** Affects: apt (Ubuntu)
     Importance: Undecided
         Status: New


** Tags: amd64 apport-bug patch utopic

** Patch added: "apt-ProcessDpkgStatusLine-strip.patch"
   https://bugs.launchpad.net/bugs/1353171/+attachment/4170721/+files/apt-ProcessDpkgStatusLine-strip.patch

** Description changed:

  For a while apt has not been writing apport reports for dpkg maintainer
  script errors. Here’s why:
  
  • pkgDPkgPM::ProcessDpkgStatusLine sees a line like
  "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"}.
+ 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
  ProcVersionSignature: Ubuntu 3.16.0-6.11-generic 3.16.0-rc7
  Uname: Linux 3.16.0-6-generic x86_64
  NonfreeKernelModules: openafs
  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)

-- 
You received this bug notification because you are a member of Ubuntu
Touch seeded packages, which is subscribed to apt in Ubuntu.
https://bugs.launchpad.net/bugs/1353171

Title:
  Misparses dpkg status line, fails to write apport reports

Status in “apt” package in Ubuntu:
  New

Bug description:
  For a while apt has not been writing apport reports for dpkg
  maintainer script errors. Here’s why:

  • pkgDPkgPM::ProcessDpkgStatusLine sees a line like
  "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
  ProcVersionSignature: Ubuntu 3.16.0-6.11-generic 3.16.0-rc7
  Uname: Linux 3.16.0-6-generic x86_64
  NonfreeKernelModules: openafs
  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)

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/apt/+bug/1353171/+subscriptions


Follow ups

References