/usr/share/apport/whoopsie-upload-all:FileNotFoundError:process_report:add_gdb_info:gdb_command:write:/usr/share/apport/whoopsie-upload-all@161:collect_info:process_report

Bug #1476258 reported by errors.ubuntu.com bug bridge
10
This bug affects 1 person
Affects Status Importance Assigned to Milestone
apport (Ubuntu)
Fix Released
Low
Martin Pitt

Bug Description

The Ubuntu Error Tracker has been receiving reports about a problem regarding apport. This problem was most recently seen with version 2.17.3-0ubuntu4, the problem page at https://errors.ubuntu.com/problem/48d152fc0919e2c3acb651c5b628bd80a55355c4 contains more details.

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

It looks like the write function in the CompressedValue class of problem_report.py doesn't do any error handling if we run out of space.

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

Traceback (most recent call last):
  File "/usr/share/apport/whoopsie-upload-all", line 79, in process_report
    r.add_gdb_info()
  File "/usr/lib/python3/dist-packages/apport/report.py", line 677, in add_gdb_info
    gdb_cmd = self.gdb_command(rootdir)
  File "/usr/lib/python3/dist-packages/apport/report.py", line 1522, in gdb_command
    self['CoreDump'].write(f)
  File "/usr/lib/python3/dist-packages/problem_report.py", line 78, in write
    file.write(block)
OSError: [Errno 28] No space left on device

Changed in apport (Ubuntu):
assignee: nobody → Martin Pitt (pitti)
Revision history for this message
Martin Pitt (pitti) wrote :

The library function isn't supposed to catch this kind of error, as there is no sensible course of action there. It could be intercepted by whoopsie-upload-all, and either be replaced with a less "crashy" error message, or perhaps just ignored.

Changed in apport (Ubuntu):
status: New → Triaged
Revision history for this message
Martin Pitt (pitti) wrote :
Changed in apport (Ubuntu):
importance: Undecided → Low
status: Triaged → Fix Committed
Revision history for this message
Launchpad Janitor (janitor) wrote :

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

---------------
apport (2.18-0ubuntu9) wily; urgency=medium

  * Revert changes to data/package_hook to include the package version. This
    just hides the problem that somewhere during whoopsie add_package_info()
    is not called. (See LP #1485787)
  * packaging-apt-dpkg.py, is_distro_package(): If there is no origin and
    /etc/system-image/channel.ini exists, assume the package is from a
    read-only system image and accept it as distro package. With this we don't
    need /var/lib/apt/lists/ indexes any more just to confirm the origin.
    (LP: #1489410)
  * Merge fixes from trunk:
    - whoopsie-upload-all: Intercept OSError too (e. g. "No space left on
      device"). (LP: #1476258)
    - apport-retrace: Only consider the file name of a source file, not its
      path; the latter often contains parts like "../" or directories which are
      specific to a build machine. This fixes most broken StacktraceSource
      results. (LP: #1462491)

 -- Martin Pitt <email address hidden> Mon, 31 Aug 2015 11:35:54 +0200

Changed in apport (Ubuntu):
status: Fix Committed → Fix Released
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.