string matching for dpkg I/O errors in dpkgpm.cc is out of date
Bug #1363257 reported by
Brian Murray
This bug affects 2 people
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
apt (Ubuntu) |
Fix Released
|
High
|
Brian Murray | ||
Trusty |
Fix Released
|
High
|
Unassigned |
Bug Description
The following error strings are no longer returned by dpkg:
io_errors.
io_errors.
io_errors.
Subsequently, apport package installation failures are being created for these types of crashes and they should not be. Additionally, there is a new error returned by dpkg ("unexpected end of file or stream" as seen in bug 1361489) which should also be blocked.
Changed in apt (Ubuntu): | |
status: | New → Triaged |
importance: | Undecided → High |
assignee: | nobody → Brian Murray (brian-murray) |
Changed in apt (Ubuntu Trusty): | |
status: | New → Triaged |
importance: | Undecided → High |
To post a comment you must log in.
Reviewing the strings returned by lib/dpkg/buffer.c the following patch should resolve the issue, although this is still not ideal.
$ bzr cdiff deb/dpkgpm. cc' deb/dpkgpm. cc 2014-06-10 19:00:00 +0000 deb/dpkgpm. cc 2014-08-29 20:41:09 +0000 push_back( string( "failed to read on buffer copy for %s")); push_back( string( "failed in write on buffer copy for %s")); push_back( string( "short read on buffer copy for %s")); push_back( string( "failed to read")); push_back( string( "failed to write")); push_back( string( "failed to seek")); push_back( string( "unexpected end of file or stream"));
=== modified file 'apt-pkg/
--- apt-pkg/
+++ apt-pkg/
@@ -1668,9 +1668,10 @@
// do not report dpkg I/O errors, this is a format string, so we compare
// the prefix and the suffix of the error with the dpkg error message
vector<string> io_errors;
- io_errors.
- io_errors.
- io_errors.
+ io_errors.
+ io_errors.
+ io_errors.
+ io_errors.
for (vector< string> ::iterator I = io_errors.begin(); I != io_errors.end(); ++I)