[Bug 2117236] Re: /usr/share/apport/apport:TypeError:get_pid_info:/usr/share/apport/apport at 613:get_pid_info:/usr/share/apport/apport at 616

Launchpad Bug Tracker 2117236 at bugs.launchpad.net
Mon Aug 4 12:10:12 UTC 2025


This bug was fixed in the package apport - 2.20.11-0ubuntu82.10

---------------
apport (2.20.11-0ubuntu82.10) jammy-security; urgency=medium

  * SECURITY REGRESSION: Type error during error handling (LP: #2117236)
    - data/apport: Use correct format specifier during error handling when
      /proc/<pid> is not found.

 -- Octavio Galland <octavio.galland at canonical.com>  Tue, 29 Jul 2025
12:25:17 -0300

** Changed in: apport (Ubuntu)
       Status: New => Fix Released

** Changed in: apport (Ubuntu)
       Status: New => Fix Released

-- 
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to apport in Ubuntu.
https://bugs.launchpad.net/bugs/2117236

Title:
  /usr/share/apport/apport:TypeError:get_pid_info:/usr/share/apport/apport at 613:get_pid_info:/usr/share/apport/apport at 616

Status in apport package in Ubuntu:
  Fix Released

Bug description:
  ```
  Traceback (most recent call last):
    File "/usr/share/apport/apport", line 102, in get_pid_info
      proc_pid_fd = os.open('/proc/%s' % pid, os.O_RDONLY | os.O_PATH | os.O_DIRECTORY)
  FileNotFoundError: [Errno 2] No such file or directory: '/proc/88802'

  The above exception was the direct cause of the following exception:

  Traceback (most recent call last):
    File "/usr/share/apport/apport", line 613, in <module>
      get_pid_info(pid)
    File "/usr/share/apport/apport", line 104, in get_pid_info
      raise ProcPidNotFoundError(*error.args, error.filename) from error
  ProcPidNotFoundError: [Errno 2] No such file or directory: '/proc/88802'

  During handling of the above exception, another exception occurred:

  Traceback (most recent call last):
    File "/usr/share/apport/apport", line 616, in <module>
      "%s not found. Cannot collect crash information for process %i any more."
  TypeError: %i format: a real number is required, not str
  ```

  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-0ubuntu82.9, the problem page at https://errors.ubuntu.com/problem/cdd78f47ef18855e1cb3051c304c2990a1c4489b 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/.

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/apport/+bug/2117236/+subscriptions




More information about the foundations-bugs mailing list