/usr/share/apport/whoopsie-upload-all:AssertionError:/usr/share/apport/whoopsie-upload-all@168:collect_info:process_report:add_gdb_info:crash_signature_addresses:_address_to_offset:_build_proc_maps_cache

Bug #1866347 reported by errors.ubuntu.com bug bridge
18
This bug affects 3 people
Affects Status Importance Assigned to Milestone
apport (Ubuntu)
Fix Released
High
Brian Murray
Bionic
Confirmed
High
Unassigned

Bug Description

[ Impact ]

The Ubuntu Error Tracker has been receiving reports about a problem regarding apport. This problem was most recently seen with package version 2.20.11-0ubuntu17, the problem page at https://errors.ubuntu.com/problem/5cc81a1cde2a921ad2adcc00e2f8d13f2c9f76e8 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/.

As of 2022-11-24, 33,559 crashes of this type were reported in Ubuntu 18.04 (bionic).

[ Test Plan ]

Check that the fixed version does not appear on https://errors.ubuntu.com/problem/5cc81a1cde2a921ad2adcc00e2f8d13f2c9f76e8.

[ Where problems could occur ]

Worst case - in any part of the bug reporting/collection procedure, since that is what's changing.

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

Here's the Traceback:

Traceback (most recent call last):
  File "/usr/share/apport/whoopsie-upload-all", line 168, in <module>
    stamps = collect_info()
  File "/usr/share/apport/whoopsie-upload-all", line 118, in collect_info
    res = process_report(r)
  File "/usr/share/apport/whoopsie-upload-all", line 80, in process_report
    r.add_gdb_info()
  File "/usr/lib/python3/dist-packages/apport/report.py", line 827, in add_gdb_info
    addr_signature = self.crash_signature_addresses()
  File "/usr/lib/python3/dist-packages/apport/report.py", line 1510, in crash_signature_addresses
    offset = self._address_to_offset(addr)
  File "/usr/lib/python3/dist-packages/apport/report.py", line 1681, in _address_to_offset
    self._build_proc_maps_cache()
  File "/usr/lib/python3/dist-packages/apport/report.py", line 1717, in _build_proc_maps_cache
    assert m, 'cannot parse ProcMaps line: ' + line
AssertionError: cannot parse ProcMaps line: Error: [Errno 13] Permission denied: 'maps'

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

ProcMaps contains the following, "Error: [Errno 13] Permission denied: 'maps'", when the maps file is not readable. This is not parseable by the regular expression in the function _build_proc_maps_cache, and was verified not to be parseable by the code in bionic.

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

So while this crash is appearing more frequently with Eoan and Focal, it is not a new crash.

Changed in apport (Ubuntu):
status: New → In Progress
importance: Undecided → High
assignee: nobody → Brian Murray (brian-murray)
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package apport - 2.20.11-0ubuntu19

---------------
apport (2.20.11-0ubuntu19) focal; urgency=medium

  * apport/report.py: do not return a duplicate signature when we are unable
    to access ProcMaps as that is necessary to create one. (LP: #1866347)
  * apport/ui.py: Always allow users to use ubuntu-bug or apport-collect
    regardless of the Problem Reporting setting as they are manually invoked
    and not automatically generated like a crash report. (LP: #1814611)

 -- Brian Murray <email address hidden> Mon, 09 Mar 2020 15:18:42 -0700

Changed in apport (Ubuntu):
status: In Progress → Fix Released
Revision history for this message
Kirill I. (kerya) wrote :

Can anybody advise any workaround for bionic with apport 2.20.9-ubuntu7.14 ?
For example, if I create empty maps file, can it hepl? If yes, what exact it's location?
When approximately package update for bionic may apper?
Thanks in advance.

Kirill I. (kerya)
tags: added: bionic
Revision history for this message
Kirill I. (kerya) wrote :

Installed apport 2.20.11-0ubuntu8.8 in bionic, still same problem.

Revision history for this message
Kirill I. (kerya) wrote :

How can I find 2.20.11-0ubuntu19 ?

Revision history for this message
Kirill I. (kerya) wrote :

workaround which worked for me:
cd /tmp
git clone https://git.launchpad.net/ubuntu/+source/apport
sudo cp apport/apport/report.py /usr/lib/python3/dist-packages/apport/

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

This apport bug happens very often on Ubuntu 18.04 (bionic): 87 occurrences in the past day making it on rank 4. So we should fix it in bionic.

Changed in apport (Ubuntu Bionic):
importance: Undecided → High
tags: added: rls-bb-incoming
Benjamin Drung (bdrung)
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 Bionic):
status: New → Confirmed
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.