This attachment is a crash report that will produce the traceback we are trying to fix.
** Attachment added: "python3-lxml.0.crash" https://bugs.launchpad.net/ubuntu/+source/apport/+bug/1080915/+attachment/3439579/+files/python3-lxml.0.crash ** Changed in: apport (Ubuntu Quantal) Assignee: (unassigned) => Brian Murray (brian-murray) ** Changed in: apport (Ubuntu Quantal) Status: Triaged => In Progress ** Description changed: + [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. + + = 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): + 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 ** Description changed: [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 -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1080915 Title: trim_dpkg_log can crash with a TypeError To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/apport/+bug/1080915/+subscriptions -- ubuntu-bugs mailing list [email protected] https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
