This bug was fixed in the package apport - 2.6.1-0ubuntu9

---------------
apport (2.6.1-0ubuntu9) quantal-proposed; urgency=low

  * Fix OSError crash in mark_report_upload(); regression from
    2.6.1-0ubuntu8.

apport (2.6.1-0ubuntu8) quantal-proposed; urgency=low

  * Ignore implausibly low addresses when computing
    StacktraceAddressSignature.  These are usually artifacts from gdb when not
    having debug symbols, and having too many of them prevents proper
    client-side duplicate detection and proper bucketing in daisy.
    Backported from trunk r2541. (LP: #1084996)
  * mark_report_upload(): Refresh the .upload stamps if a previous version of
    the report was already uploaded, but another instance of the problem
    happened since then. Thanks Brian Murray. Backported from trunk r2540.
    (LP: #1084296)

apport (2.6.1-0ubuntu7) quantal-proposed; urgency=low

  * data/general-hooks/ubuntu.py: Deal with dpkg_log file being a string
    instead of bytes (LP: #1080915)
 -- Martin Pitt <martin.p...@ubuntu.com>   Wed, 05 Dec 2012 10:16:00 +0000

** Changed in: apport (Ubuntu Quantal)
       Status: Fix Committed => Fix Released

-- 
You received this bug notification because you are a member of Desktop
Packages, which is subscribed to apport in Ubuntu.
https://bugs.launchpad.net/bugs/1080915

Title:
  trim_dpkg_log can crash with a TypeError

Status in “apport” package in Ubuntu:
  Fix Released
Status in “apport” source package in Quantal:
  Fix Released

Bug description:
  [Impact]

  Not all apport-package bug reports are having a DuplicateSignature
  created, which prevents the retracer from automatically marking
  duplicate bugs.  Additionally, as the duplicate siganture is used to
  see whether or not a reporter has encountered the crash before (to
  prevent reporting) we may be receiving bug reports we do not want.

  [Test Case]
  1) Download python3-lxml.0.crash from this bug report
  2) Copy python3-lxml.0.crash to /var/crash
  3) Run 'ubuntu-bug /var/crash/python3-lxml.0.crash'
  4) Observe a Traceback in the terminal in which you ran ubuntu-bug

  Repeat steps 1-4 using the version of apport from quantal-proposed and
  you will not see a Traceback.  Do not submit the crash to Launchpad.

  [Regression Potential]
  Apport carries on in the event that there is an exception in package or 
general hooks, which is why this went undiscovered for a while, subsequently 
regressions would only occur in the DuplicateSignature creation.

  = Orignal Description=

  Some apport-package bug reports don't have a DuplicateSignature when
  they should.  I was able to obtain a problematic crash file and
  running ubuntu-bug with I received the following traceback:

  ERROR: hook /usr/share/apport/general-hooks/ubuntu.py crashed:
  Traceback (most recent call last):
    File "/usr/lib/python3/dist-packages/apport/report.py", line 197, in 
_run_hook
      symb['add_info'](report, ui)
    File "/usr/share/apport/general-hooks/ubuntu.py", line 62, in add_info
      check_attachment_for_errors(report, attachment)
    File "/usr/share/apport/general-hooks/ubuntu.py", line 171, in 
check_attachment_for_errors
      trim_dpkg_log(report)
    File "/usr/share/apport/general-hooks/ubuntu.py", line 428, in trim_dpkg_log
      if start_re.match(line) or trim_re.match(line):
  TypeError: can't use a bytes pattern on a string-like object

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

-- 
Mailing list: https://launchpad.net/~desktop-packages
Post to     : desktop-packages@lists.launchpad.net
Unsubscribe : https://launchpad.net/~desktop-packages
More help   : https://help.launchpad.net/ListHelp

Reply via email to