apport-retrace crashed with TypeError in error(): not enough arguments for format string

Bug #1562477 reported by shemgp
10
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Apport
Fix Released
Medium
Unassigned
apport (Ubuntu)
Fix Released
Medium
Unassigned

Bug Description

Retracing the crash of window-buttons applet produced this error.

```
Traceback (most recent call last):
  File "/usr/bin/apport-retrace", line 301, in <module>
    options.dynamic_origins)
  File "/usr/lib/python2.7/dist-packages/apport/sandboxutils.py", line 204, in make_sandbox
    apport.fatal(str(e))
  File "/usr/lib/python2.7/dist-packages/apport/__init__.py", line 35, in fatal
    error(msg, *args)
  File "/usr/lib/python2.7/dist-packages/apport/__init__.py", line 44, in error
    sys.stderr.write(msg % args)
TypeError: not enough arguments for format string
```

ProblemType: Crash
DistroRelease: Ubuntu 16.04
Package: apport-retrace 2.20-0ubuntu3
ProcVersionSignature: Ubuntu 4.4.0-15.31-generic 4.4.6
Uname: Linux 4.4.0-15-generic x86_64
ApportVersion: 2.20-0ubuntu3
Architecture: amd64
CrashCounter: 1
CurrentDesktop: GNOME-Flashback:Unity
Date: Sun Mar 27 17:32:09 2016
EcryptfsInUse: Yes
ExecutablePath: /usr/bin/apport-retrace
InstallationDate: Installed on 2015-09-28 (180 days ago)
InstallationMedia: Ubuntu 15.04 "Vivid Vervet" - Release amd64 (20150422)
InterpreterPath: /usr/bin/python2.7
PackageArchitecture: all
ProcCmdline: /usr/bin/python /usr/bin/apport-retrace -S system -C /home/username/.cache/apport/retrace -v --gdb /var/crash/_usr_lib_gnome-window-applets_windowbuttons.1000.crash
PythonArgs: ['/usr/bin/apport-retrace', '-S', 'system', '-C', '/home/username/.cache/apport/retrace', '-v', '--gdb', '/var/crash/_usr_lib_gnome-window-applets_windowbuttons.1000.crash']
SourcePackage: apport
Title: apport-retrace crashed with TypeError in error(): not enough arguments for format string
UpgradeStatus: No upgrade log present (probably fresh install)
UserGroups: adm cdrom dip docker kismet libvirtd lp lpadmin lxd mail mythtv plugdev sambashare sudo vboxusers

Revision history for this message
shemgp (shemgp) wrote :
tags: removed: need-duplicate-check
Changed in apport (Ubuntu):
importance: Undecided → Medium
Revision history for this message
Benjamin Drung (bdrung) wrote :

Thank you for taking the time to report this bug and helping to make Ubuntu better. This kind of bug can still appear since apport still has code like "fatal(str(error))".

description: updated
information type: Private → Public
Changed in apport (Ubuntu):
status: New → Triaged
Changed in apport:
milestone: none → 2.25.0
status: New → Triaged
importance: Undecided → Medium
Revision history for this message
Benjamin Drung (bdrung) wrote :
Changed in apport:
status: Triaged → In Progress
Revision history for this message
Benjamin Drung (bdrung) wrote :
Changed in apport:
status: In Progress → Fix Committed
Benjamin Drung (bdrung)
Changed in apport:
status: Fix Committed → Fix Released
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package apport - 2.26.0-0ubuntu2

---------------
apport (2.26.0-0ubuntu2) lunar; urgency=medium

  * fix: Mock query to Github in integration test

 -- Benjamin Drung <email address hidden> Fri, 24 Feb 2023 16:17:43 +0100

Changed in apport (Ubuntu):
status: Triaged → 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.