trim_dpkg_log can crash with a TypeError
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
apport (Ubuntu) |
Fix Released
|
High
|
Brian Murray | ||
Quantal |
Fix Released
|
High
|
Brian Murray |
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-
2) Copy python3-
3) Run 'ubuntu-bug /var/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/
Traceback (most recent call last):
File "/usr/lib/
symb[
File "/usr/share/
check_
File "/usr/share/
trim_
File "/usr/share/
if start_re.
TypeError: can't use a bytes pattern on a string-like object
Changed in apport (Ubuntu Quantal): | |
status: | New → Triaged |
importance: | Undecided → High |
milestone: | none → quantal-updates |
Changed in apport (Ubuntu): | |
status: | Triaged → In Progress |
assignee: | nobody → Brian Murray (brian-murray) |
description: | updated |
description: | updated |
This bug was fixed in the package apport - 2.6.2-0ubuntu5
---------------
apport (2.6.2-0ubuntu5) raring; urgency=low
* data/general- hooks/ubuntu. py: Deal with dpkg_log file being a string
instead of bytes (LP: #1080915)
-- Brian Murray <email address hidden> Mon, 19 Nov 2012 17:03:54 -0800