/usr/share/apport/whoopsie-upload-all:RuntimeError:/usr/share/apport/whoopsie-upload-all@246:main:collect_info:process_report:add_gdb_info:gdb_command:write:_get_zstandard_decompressor

Bug #2061753 reported by errors.ubuntu.com bug bridge
12
This bug affects 2 people
Affects Status Importance Assigned to Milestone
apport (Ubuntu)
Fix Released
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.28.0-0ubuntu1, the problem page at https://errors.ubuntu.com/problem/f50c9c3ef623e6e5c7e3e7d4d1915d8fc6b938f1 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

Traceback (most recent call last):
  File "/usr/share/apport/whoopsie-upload-all", line 246, in <module>
    main()
  File "/usr/share/apport/whoopsie-upload-all", line 228, in main
    stamps = collect_info()
             ^^^^^^^^^^^^^^
  File "/usr/share/apport/whoopsie-upload-all", line 162, in collect_info
    res = process_report(r)
          ^^^^^^^^^^^^^^^^^
  File "/usr/share/apport/whoopsie-upload-all", line 112, in process_report
    r.add_gdb_info()
  File "/usr/lib/python3/dist-packages/apport/report.py", line 932, in add_gdb_info
    gdb_cmd, environ = self.gdb_command(rootdir, gdb_sandbox)
                       ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3/dist-packages/apport/report.py", line 1942, in gdb_command
    self["CoreDump"].write(f)
  File "/usr/lib/python3/dist-packages/problem_report.py", line 284, in write
    decompressor = _get_zstandard_decompressor()
                   ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3/dist-packages/problem_report.py", line 139, in _get_zstandard_decompressor
    raise RuntimeError(
RuntimeError: Failed to import zstandard library: No module named 'zstandard'. Please install python3-zstandard.

Tags: noble
description: updated
Revision history for this message
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in apport (Ubuntu):
status: New → Confirmed
Revision history for this message
Patrice DUROUX (patrice-duroux) wrote :

Here is what I am getting (related to #2061739):

avril 16 17:23:35 kos-201907 whoopsie-upload-all[5701]: INFO:root:Collecting info for /var/crash/_usr_bin_gnome-shell.1001.crash...
avril 16 17:23:37 kos-201907 gnome-character[4079]: JS LOG: Characters Application exiting
avril 16 17:23:39 kos-201907 whoopsie-upload-all[5701]: Traceback (most recent call last):
avril 16 17:23:39 kos-201907 whoopsie-upload-all[5701]: File "/usr/share/apport/whoopsie-upload-all", line 246, in <module>
avril 16 17:23:39 kos-201907 whoopsie-upload-all[5701]: main()
avril 16 17:23:39 kos-201907 whoopsie-upload-all[5701]: File "/usr/share/apport/whoopsie-upload-all", line 228, in main
avril 16 17:23:39 kos-201907 whoopsie-upload-all[5701]: stamps = collect_info()
avril 16 17:23:39 kos-201907 whoopsie-upload-all[5701]: ^^^^^^^^^^^^^^
avril 16 17:23:39 kos-201907 whoopsie-upload-all[5701]: File "/usr/share/apport/whoopsie-upload-all", line 162, in collect_info
avril 16 17:23:39 kos-201907 whoopsie-upload-all[5701]: res = process_report(r)
avril 16 17:23:39 kos-201907 whoopsie-upload-all[5701]: ^^^^^^^^^^^^^^^^^
avril 16 17:23:39 kos-201907 whoopsie-upload-all[5701]: File "/usr/share/apport/whoopsie-upload-all", line 112, in process_report
avril 16 17:23:39 kos-201907 whoopsie-upload-all[5701]: r.add_gdb_info()
avril 16 17:23:39 kos-201907 whoopsie-upload-all[5701]: File "/usr/lib/python3/dist-packages/apport/report.py", line 932, in add_gdb_info
avril 16 17:23:39 kos-201907 whoopsie-upload-all[5701]: gdb_cmd, environ = self.gdb_command(rootdir, gdb_sandbox)
avril 16 17:23:39 kos-201907 whoopsie-upload-all[5701]: ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
avril 16 17:23:39 kos-201907 whoopsie-upload-all[5701]: File "/usr/lib/python3/dist-packages/apport/report.py", line 1942, in gdb_command
avril 16 17:23:39 kos-201907 whoopsie-upload-all[5701]: self["CoreDump"].write(f)
avril 16 17:23:39 kos-201907 whoopsie-upload-all[5701]: File "/usr/lib/python3/dist-packages/problem_report.py", line 284, in write
avril 16 17:23:39 kos-201907 whoopsie-upload-all[5701]: decompressor = _get_zstandard_decompressor()
avril 16 17:23:39 kos-201907 whoopsie-upload-all[5701]: ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
avril 16 17:23:39 kos-201907 whoopsie-upload-all[5701]: File "/usr/lib/python3/dist-packages/problem_report.py", line 139, in _get_zstandard_decompressor
avril 16 17:23:39 kos-201907 whoopsie-upload-all[5701]: raise RuntimeError(
avril 16 17:23:39 kos-201907 whoopsie-upload-all[5701]: RuntimeError: Failed to import zstandard library: No module named 'zstandard'. Please install python3-zstandard.
avril 16 17:23:39 kos-201907 systemd[1]: apport-autoreport.service: Main process exited, code=exited, status=1/FAILURE

Revision history for this message
Benjamin Drung (bdrung) wrote :

The apport binary need an additional dependency: "apport-core-dump-handler | python3-zstandard"

Benjamin Drung (bdrung)
Changed in apport (Ubuntu):
importance: Undecided → Medium
status: Confirmed → Fix Committed
Revision history for this message
Launchpad Janitor (janitor) wrote :

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

---------------
apport (2.28.1-0ubuntu1) noble; urgency=medium

  [ Benjamin Drung ]
  * New bug-fix upstream release
    - Ignore missing `COREDUMP_FILENAME` (LP: #2058380)
    - fix integration tests for bash >= 5.2.21-2ubuntu2 and coreutils
      >= 9.4-3ubuntu1 (LP: #2054902)
  * Stop shipping debian-installer package hook (LP: #2060581)
  * general-hooks/ubuntu.py: Drop upstart integration
  * apport: Install python3-zstandard when using systemd-coredump (LP: #2061753)
  * Disable Launchpad crash reports for the 24.04 release

  [ Sebastien Bacher ]
  * ubuntu-desktop-installer has been replaced by ubuntu-desktop-bootstrap

 -- Benjamin Drung <email address hidden> Thu, 18 Apr 2024 15:46:28 +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.