/usr/share/apport/apport:AttributeError:/usr/share/apport/apport@429:parse_arguments:print_usage:_print_message

Bug #1866062 reported by errors.ubuntu.com bug bridge
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
apport (Ubuntu)
Triaged
Undecided
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.11-0ubuntu18, the problem page at https://errors.ubuntu.com/problem/4450779f25a7f4e3c3713198defeefd98859f1a4 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/.

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

Here is the Traceback:

Traceback (most recent call last):
  File "/usr/share/apport/apport", line 429, in <module>
    options = parse_arguments()
  File "/usr/share/apport/apport", line 374, in parse_arguments
    parser.print_usage()
  File "/usr/lib/python3.7/argparse.py", line 2484, in print_usage
    self._print_message(self.format_usage(), file)
  File "/usr/lib/python3.7/argparse.py", line 2495, in _print_message
    file.write(message)
AttributeError: 'NoneType' object has no attribute 'write'

Changed in apport (Ubuntu):
status: New → Triaged
Revision history for this message
Michael Hudson-Doyle (mwhudson) wrote :

This seems to occur when an executable that has been deleted crashes -- the apport hook is called with the executable name set to "/path/to/exe (deleted)" and somehow this is being split on spaces and the extra (deleted) argument causes this crash. But simple attempts at reproducing this scenario failed.

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.