/usr/share/apport/apport-gtk:http.client.IncompleteRead:/usr/share/apport/apport-gtk@597:run_argv:run_crashes:run_crash:collect_info:exc_raise:run:search_bug_patterns:read:_safe_read

Bug #1791820 reported by errors.ubuntu.com bug bridge
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
apport (Ubuntu)
Triaged
Medium
Unassigned

Bug Description

The Ubuntu Error Tracker has been receiving reports about a problem regarding apport. This problem was most recently seen with package version 2.20.9-0ubuntu7.3, the problem page at https://errors.ubuntu.com/problem/9178257a55266131973fa3bc7462837640f82d44 contains more details, including versions of packages affected, stacktrace or traceback, and individual crash reports.
If you do not have access to the Ubuntu Error Tracker and are a software developer, you can request it at http://forms.canonical.com/reports/.

Revision history for this message
Brian Murray (brian-murray) wrote :

Here's the Traceback:

Traceback (most recent call last):
  File "/usr/share/apport/apport-gtk", line 597, in <module>
    app.run_argv()
  File "/usr/lib/python3/dist-packages/apport/ui.py", line 688, in run_argv
    return self.run_crashes()
  File "/usr/lib/python3/dist-packages/apport/ui.py", line 245, in run_crashes
    self.run_crash(f)
  File "/usr/lib/python3/dist-packages/apport/ui.py", line 289, in run_crash
    self.collect_info()
  File "/usr/lib/python3/dist-packages/apport/ui.py", line 1077, in collect_info
    bpthread.exc_raise()
  File "/usr/lib/python3/dist-packages/apport/REThread.py", line 63, in exc_raise
    raise self._exception[1].with_traceback(self._exception[2])
  File "/usr/lib/python3/dist-packages/apport/REThread.py", line 33, in run
    self._retval = self.__target(*self.__args, **self.__kwargs)
  File "/usr/lib/python3/dist-packages/apport/report.py", line 917, in search_bug_patterns
    patterns = f.read().decode('UTF-8', errors='replace')
  File "/usr/lib/python3.5/http/client.py", line 461, in read
    s = self._safe_read(self.length)
  File "/usr/lib/python3.5/http/client.py", line 609, in _safe_read
    raise IncompleteRead(b''.join(s), amt)
http.client.IncompleteRead: IncompleteRead(29118 bytes read, 74729 more expected)

It looks like the try / except block for loading the bugpattern should also pass on an IncompleteRead.

Changed in apport (Ubuntu):
status: New → Triaged
importance: Undecided → Medium
tags: added: rls-cc-incoming
tags: added: rls-cc-notfixing
removed: rls-cc-incoming
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.