[Bug 2149911] Re: test_retrace_jammy_sandbox fails in pickle.load(fp): EOFError: Ran out of input

Benjamin Drung 2149911 at bugs.launchpad.net
Wed Apr 22 21:31:51 UTC 2026


** Changed in: apport
   Importance: Undecided => High

** Changed in: apport
       Status: New => In Progress

-- 
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/2149911

Title:
  test_retrace_jammy_sandbox fails in pickle.load(fp): EOFError: Ran out
  of input

Status in Apport:
  In Progress
Status in apport package in Ubuntu:
  New

Bug description:
  test_retrace_jammy_sandbox might fail in a autopkgtest VM:

  ```
  Traceback (most recent call last):
    File "/usr/bin/apport-retrace", line 713, in <module>
      sys.exit(main(sys.argv[1:]))
               ~~~~^^^^^^^^^^^^^^
    File "/usr/bin/apport-retrace", line 542, in main
      sandbox, cache, outdated_msg = apport.sandboxutils.make_sandbox(
                                     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^
          report,
          ^^^^^^^
      ...<6 lines>...
          options.dynamic_origins,
          ^^^^^^^^^^^^^^^^^^^^^^^^
      )
      ^
    File "/usr/lib/python3/dist-packages/apport/sandboxutils.py", line 274, in make_sandbox
      pkgs = needed_runtime_packages(report, pkgmap_cache_dir, pkg_versions, verbose)
    File "/usr/lib/python3/dist-packages/apport/sandboxutils.py", line 103, in needed_runtime_packages
      pkg = packaging.get_file_package(
          line,
      ...<3 lines>...
          arch=report.get("Architecture"),
      )
    File "/usr/lib/python3/dist-packages/apport/packaging_impl/apt_dpkg.py", line 800, in get_file_package
      return self._search_contents(file, map_cachedir, release, arch)
             ~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    File "/usr/lib/python3/dist-packages/apport/packaging_impl/apt_dpkg.py", line 1752, in _search_contents
      contents_mapping = self._get_file2pkg_mapping(map_cachedir, release, arch)
    File "/usr/lib/python3/dist-packages/apport/packaging_impl/apt_dpkg.py", line 1726, in _get_file2pkg_mapping
      file2pkg = self._contents_mapping(map_cachedir, release, arch)
    File "/usr/lib/python3/dist-packages/apport/packaging_impl/apt_dpkg.py", line 340, in _contents_mapping
      self._contents_mapping_obj = pickle.load(fp)
                                   ~~~~~~~~~~~^^^^
  EOFError: Ran out of input
  ```

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





More information about the foundations-bugs mailing list