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

Bug #1903567 reported by errors.ubuntu.com bug bridge
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
apport (Ubuntu)
Confirmed
Undecided
Unassigned
Xenial
Won't Fix
Undecided
Unassigned
Bionic
Confirmed
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.1-0ubuntu2.26, the problem page at https://errors.ubuntu.com/problem/c999939b4b2ced24aa71d85b0995a56bd3813a39 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: fr-922 xenial
Revision history for this message
Brian Murray (brian-murray) wrote :

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

This can happen if the path to the executable has a space in it e.g.:

bdmurray@clean-xenial-amd64:~$ /usr/bin/python3 /usr/share/apport/apport 14055 11 0 1 14055 /usr/lib/plexmediaserver/Plex Media Server
usage: apport [-h] [-p PID] [-s SIGNAL_NUMBER] [-c CORE_ULIMIT] [-d DUMP_MODE]
              [-P [GLOBAL_PID]] [-E [EXECUTABLE_PATH]]

Somehow apport needs to be modified to handle arguments where the executable path has a space in the name.

tags: added: rls-hh-incoming
Changed in apport (Ubuntu):
status: New → Confirmed
Changed in apport (Ubuntu Xenial):
status: New → Confirmed
Changed in apport (Ubuntu Bionic):
status: New → Confirmed
tags: added: fr-922
tags: removed: rls-hh-incoming
Changed in apport (Ubuntu Xenial):
status: Confirmed → Won't Fix
Revision history for this message
Benjamin Drung (bdrung) wrote (last edit ):

Since the spaces in the command line arguments is addressed in the recent CVE fix, the remaining crash in case of invalid parameters is addressed in bug #1979211

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.