Your message dated Wed, 04 Nov 2026 17:17:05 +0000
with message-id <[email protected]>
and subject line Bug#1111554: fixed in apt 3.0.4
has caused the Debian Bug report #1111554,
regarding apt: "Tried to start delayed item" warnings pile up in memory until 
the host runs out of RAM (trixie 3.0.3)
to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact [email protected]
immediately.)


-- 
1111554: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1111554
Debian Bug Tracking System
Contact [email protected] with problems
--- Begin Message ---
Package: apt
Version: 3.0.3
Severity: important

Dear maintainers,

#1111554 (merged with #1117797 and #1124940) was treated as log spam and
fixed in 3.1.8 by moving the message to debug output. On trixie, which
still ships apt 3.0.3, the same loop also exhausts memory, and that took
down a Proxmox VE 9 host (Proxmox VE 9 uses Debian's apt 3.0.3).

What happens:

- In pkgAcquire::Run (apt-pkg/acquire.cc), when the head item of a queue
  is idle with a FetchAfter time in the past and Queue::Cycle() cannot
  start it (the queue's pipeline is full with a slow download),
  fetchAfter is set to now, select() gets a zero timeout and the loop
  runs again at once.
- Every pass calls _error->Warning("Tried to start delayed item %s, but
  failed"). Warnings are kept in the global error list until apt prints
  them at the end, so memory grows by one message per pass for as long
  as the slow download lasts.

What we measured (apt 3.0.3, Proxmox VE 9.1 / Debian 13, default
apt settings, "apt-get --download-only dist-upgrade", run in a memory-
capped systemd scope):

- 1,351,886 such warnings held about 355 MB in apt before it finished.
- In the real incident on 30.10.2026 apt grew to 14.5 GB, the kernel
  OOM-killed an 8 GB virtual machine and the host froze.
- Trigger: one transient failure (a 5xx, a refused or timed-out
  connection, or a connection closed mid-body) on one file while another
  file from the same mirror is still downloading slowly, so the retried
  item sits idle behind it.
- With Acquire::Retries=0, or when every file comes from a local cache,
  the warnings do not appear and apt stays at about 75 MB.

Requests:

1. Please consider the 3.1.8 change for trixie (a stable update): every
   trixie and Proxmox VE 9 system still has the memory growth.
2. Even with the message moved to debug, the loop itself still spins with
   a zero timeout (fetchAfter = now) until a pipeline slot frees up, so
   it still burns CPU. Waiting for the queue instead of re-polling at once
   would fix both.

We can provide the reproduction script and logs if useful.

Thank you for apt.

--- End Message ---
--- Begin Message ---
Source: apt
Source-Version: 3.0.4
Done: Julian Andres Klode <[email protected]>

We believe that the bug you reported is fixed in the latest version of
apt, which is due to be installed in the Debian FTP archive.

A summary of the changes between this version and the previous one is
attached.

Thank you for reporting the bug, which will now be closed.  If you
have further comments please address them to [email protected],
and the maintainer will reopen the bug report if appropriate.

Debian distribution maintenance software
pp.
Julian Andres Klode <[email protected]> (supplier of updated apt package)

(This message was generated automatically at their request; if you
believe that there is a problem with it please contact the archive
administrators by mailing [email protected])


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA512

Format: 1.8
Date: Mon, 02 Nov 2026 14:41:34 +0100
Source: apt
Architecture: source
Version: 3.0.4
Distribution: trixie-security
Urgency: medium
Maintainer: APT Development Team <[email protected]>
Changed-By: Julian Andres Klode <[email protected]>
Closes: 1111554
Changes:
 apt (3.0.4) trixie-security; urgency=medium
 .
   * SECURITY UPDATE: Download verification bypass
     - methods/*.cc: Open target files exclusively
     - CVE-2026-109518
   * SECURITY UPDATE: Out-of-bounds accesses
     - deb: guard against unsigned underflow when trimming control newlines
     - gpgv: don't advance past the null terminator in PushEntryWithKeyID
     - debDebFileParser: reject .deb without a Version field
     - srvrec: reject res_query answers bigger than our buffer
     - tagfile: fix unbounded backward scan in Fill()'s trailing-newline check
     - solver: Ensure workLess is a strict weak ordering
   * Memory exhaustion during download
     - Move "Tried to start delayed item […], but failed" to debugging
      (Closes: #1111554)
   * Test suite reliability:
     - test: Limit valgrind to 1024 open files
     - .gitlab-ci.yml: Point at debian:trixie
Checksums-Sha1:
 10cfc55acc4632dce0336edd1a40ad51b46ea50a 3091 apt_3.0.4.dsc
 b1e9d1bda2a44fef4ea8db7e78c7b89765905631 2423460 apt_3.0.4.tar.xz
 881db983a5d9c53d15afd649a70b8de384479e19 7873 apt_3.0.4_source.buildinfo
Checksums-Sha256:
 efc029dbfb0e264dfb38a8bf34398a8d3709cd35a463c270153b59e2e4ffb404 3091 
apt_3.0.4.dsc
 e853aec49afbe520ebcd4dbcbc98e1c55262c6bf1c119cf43e6aec69752443c6 2423460 
apt_3.0.4.tar.xz
 260c4a6fb72ffb9e1feb48cf7981ad889c6e8211d0700927220fa0d7a1e490e3 7873 
apt_3.0.4_source.buildinfo
Files:
 98fbdd8fdb5c59caed79448f0ecb0a0f 3091 admin required apt_3.0.4.dsc
 6c165ba5bc1250044c9b1491d87f8006 2423460 admin required apt_3.0.4.tar.xz
 da9a63e9d19228171f5a4594bcae1aaa 7873 admin required apt_3.0.4_source.buildinfo

-----BEGIN PGP SIGNATURE-----

iQJDBAEBCgAtFiEET7WIqEwt3nmnTHeHb6RY3R2wP3EFAmroy/sPHGpha0BkZWJp
YW4ub3JnAAoJEG+kWN0dsD9x9CIP/jdvJAkN/Mam9OVo3Bo7pBgF0N7OW08rch+F
r3ASzpWsbnnCYPUuSv1YYrl8YtZNThCi9HaAN1Ttykgjcgf0yku/QUPCXuoi4pot
XFPXURXjb2urd3iwNn51nPBKyI/WOvbl8ahbrGoOhqpLzbgx5kCzcYkqh8afA5sS
FJ2J4//BLNEkQNCUPA2lvqEKW850PffXw8ceX/ZpllRzeBUA1rzxXHI8Ol1n0Tqm
binj/XusKXTKmIqrXZTmyzy4XnE7fzdq8dlEHl9P7caRHgDPTmYbNXT4u1e+afGW
iM6HONv8Yag/RSKelz375qIABnlWDqMmCAYNaaIgrXoni27z4hHFL8XBrolWqQKk
2kAFpTMWbA822OuYh9A6qxkxsdPLSYeMYVGaNt9Y3c4Rgp9kc4uN6AZPC+w3qoVM
QVMqlWvjxcWZU3+BYF6n0wbrVPFDpXVwYg/jqw5iV0SXjuevaF4YPk6dw5WBkPOT
d5jUJHCm5OgfpBUhKRq1pBiGmpnKfokmlL8/e3iKweLWFf5FXA4p1C6bOmyzKmjQ
Qk97rnj1v6MARsR8246bibdNvmcrLLpsivtI4GjNr1kidrWMXJ0wan3DzkUvtawF
/f+1GF6+QMeFnH03ieziTJYyahN2yoYrrPhEUiv8ZoQ+4jd04w5hHAielvz2eW/d
CqV1xbfn
=nY77
-----END PGP SIGNATURE-----

Attachment: pgplizeXQ5YQM.pgp
Description: PGP signature


--- End Message ---

Reply via email to