[Bug 2073787] Re: apport-retrace needs more than 1 GB

Benjamin Drung 2073787 at bugs.launchpad.net
Tue Jul 23 12:25:22 UTC 2024


sandbox_cache/Ubuntu 22.04/contents_mapping-jammy-amd64.pickle is 753 MB
in size. `_contents_mapping` uses `pickle.load` to load the whole cache
into memory.

Idea: Instead of building the whole cache in memory and pickle it, use
sqlite3 (part of the Python standard library) to build a database and
query the database.

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

Title:
  apport-retrace needs more than 1 GB

Status in apport package in Ubuntu:
  Triaged

Bug description:
  The system tests test_retrace_system_sandbox and
  test_retrace_jammy_sandbox fail on arm64, ppc64el, s390x, because
  apport-retrace is killed by the OOM killer. Example:

  autopkgtest kernel: Out of memory: Killed process 3597 (apport-
  retrace) total-vm:1512420kB, anon-rss:1241460kB, file-rss:2592kB,
  shmem-rss:0kB, UID:0 pgtables:2554kB oom_score_adj:0

  Log: https://autopkgtest.ubuntu.com/results/autopkgtest-oracular-
  bdrung-apport/oracular/s390x/a/apport/20240722_145904_d3c2f@/log.gz

  apport-retrace should be able to retrace crashes without needing
  multiple gigabytes of memory.

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




More information about the foundations-bugs mailing list