>From the research I've done, it looks like this is a result of the
following change:

 $ bzr log -r1369.34.1105 -p
------------------------------------------------------------
revno: 1369.34.1105
fixes bug: https://launchpad.net/bugs/1370259
committer: Martin Pitt <[email protected]>
branch nick: apport
timestamp: Thu 2015-01-08 11:20:16 +0100
message:
  * hookutils, attach_root_command_outputs(): Fix UnicodeDecodeError crash for 
non-textual values. (LP: #1370259)
diff:
=== modified file 'NEWS'
--- NEWS        2014-12-19 06:43:26 +0000
+++ NEWS        2015-01-08 10:20:16 +0000
@@ -1,6 +1,11 @@
 This file summarizes the major and interesting changes for each release. For a
 detailed list of changes, please see ChangeLog.
 
+2.15.2 (UNRELEASED)
+------------------
+ * hookutils, attach_root_command_outputs(): Fix UnicodeDecodeError crash for
+   non-textual values. (LP: #1370259)
+
 2.15.1 (2014-12-19)
 -------------------
  * Robustify report.test_get_timestamp test.

=== modified file 'apport/hookutils.py'
--- apport/hookutils.py 2014-04-29 17:34:35 +0000
+++ apport/hookutils.py 2015-01-08 10:20:16 +0000
@@ -465,7 +465,7 @@
         # now read back the individual outputs
         for keyname in command_map:
             try:
-                with open(os.path.join(workdir, keyname)) as f:
+                with open(os.path.join(workdir, keyname), 'rb') as f:
                     buf = f.read().strip()
             except IOError:
                 # this can happen if the user dismisses authorization in

This then makes the files added by the ubiquity hook bytes, which when
then can't check for strings in.

** Changed in: apport (Ubuntu)
       Status: New => Triaged

** Changed in: apport (Ubuntu)
   Importance: Undecided => High

** Changed in: apport (Ubuntu)
     Assignee: (unassigned) => Martin Pitt (pitti)

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1446537

Title:
  apport hook fails in add_info with TypeError: 'str' does not support
  the buffer interface

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

-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to