[Bug 1979681] Re: /usr/share/apport/whoopsie-upload-all:AttributeError:process_report:add_gdb_info:gdb_command:write:read:readinto:read:/usr/share/apport/whoopsie-upload-all at 220:main:collect_info:process_report

Launchpad Bug Tracker 1979681 at bugs.launchpad.net
Mon Jun 27 14:31:06 UTC 2022


This bug was fixed in the package apport - 2.22.0-0ubuntu1

---------------
apport (2.22.0-0ubuntu1) kinetic; urgency=medium

  * New upstream release:
    - Replace `ProblemReport.get_date` by `ProblemReport.get_timestamp`, fixes
      regression in 2.21.0 (LP: #1978487)
    - apport-gtk: Exclude trailing dot from URL links (LP: #1978301)
    - Fix `AttributeError`: 'NoneType' object has no attribute 'write', fixes
      regression in 2.21.0 (LP: #1979211)
    - apport_python_hook: Properly handle missing modules (LP: #1774843)
    - apport_python_hook: Fix FileNotFoundError if the current directory was
      deleted (LP: #1979637)
    - apport_python_hook: Fix crash if os.getcwd() fails (LP: #1977954)
    - Replace deprecated 'imp' module (LP: #1947425)
    - whoopsie-upload-all: Fix 'EOFError' object has no attribute 'errno',
      fixes regression in 2.21.0 (LP: #1979681)
  * Fix KeyError: 'CasperMD5json'

 -- Benjamin Drung <bdrung at ubuntu.com>  Mon, 27 Jun 2022 12:03:00 +0200

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

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

Title:
  /usr/share/apport/whoopsie-upload-
  all:AttributeError:process_report:add_gdb_info:gdb_command:write:read:readinto:read:/usr/share/apport/whoopsie-
  upload-all at 220:main:collect_info:process_report

Status in Apport:
  Fix Released
Status in apport package in Ubuntu:
  Fix Released

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.21.0-0ubuntu2, the problem page at https://errors.ubuntu.com/problem/e1b63b073d8078b1e53a770ef2dee5aa8562b8a4 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/.

  Traceback (most recent call last):
    File "/usr/share/apport/whoopsie-upload-all", line 102, in process_report
      r.add_gdb_info()
    File "/usr/lib/python3/dist-packages/apport/report.py", line 778, in add_gdb_info
      gdb_cmd, environ = self.gdb_command(rootdir, gdb_sandbox)
    File "/usr/lib/python3/dist-packages/apport/report.py", line 1703, in gdb_command
      self['CoreDump'].write(f)
    File "/usr/lib/python3/dist-packages/problem_report.py", line 69, in write
      block = gz.read(1048576)
    File "/usr/lib/python3.10/gzip.py", line 301, in read
      return self._buffer.read(size)
    File "/usr/lib/python3.10/_compression.py", line 68, in readinto
      data = self.read(len(byte_view))
    File "/usr/lib/python3.10/gzip.py", line 507, in read
      raise EOFError("Compressed file ended before the "
  EOFError: Compressed file ended before the end-of-stream marker was reached

  During handling of the above exception, another exception occurred:

  Traceback (most recent call last):
    File "/usr/share/apport/whoopsie-upload-all", line 220, in <module>
      main()
    File "/usr/share/apport/whoopsie-upload-all", line 202, in main
      stamps = collect_info()
    File "/usr/share/apport/whoopsie-upload-all", line 150, in collect_info
      res = process_report(r)
    File "/usr/share/apport/whoopsie-upload-all", line 109, in process_report
      if getattr(e, 'errno') != errno.ENOENT:
  AttributeError: 'EOFError' object has no attribute 'errno'

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




More information about the foundations-bugs mailing list