Your message dated Sun, 22 Jun 2025 20:10:25 +0200
with message-id <d576c159-7560-40af-bee5-143d5749b...@wp.pl>
and subject line Re: Bug#1059540: apt: Infinite loop when config file is a 
directory
has caused the Debian Bug report #1059540,
regarding apt: Infinite loop when config file is a directory
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 ow...@bugs.debian.org
immediately.)


-- 
1059540: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1059540
Debian Bug Tracking System
Contact ow...@bugs.debian.org with problems
--- Begin Message ---
Package: apt
Version: 2.6.1
Severity: normal
X-Debbugs-Cc: none

The following causes apt-get to go into an infinite busy loop:

```
$ mkdir /tmp/empty
$ apt-get -c /tmp/empty
```

This affects the latest dev build as well.

I submitted a fix here:
https://salsa.debian.org/apt-team/apt/-/merge_requests/314

-- System Information:
Debian Release: 12.2
  APT prefers stable-updates
  APT policy: (500, 'stable-updates'), (500, 'stable-security'), (500, 'stable')
Architecture: amd64 (x86_64)

Kernel: Linux 6.1.0-13-amd64 (SMP w/8 CPU threads; PREEMPT)
Kernel taint flags: TAINT_PROPRIETARY_MODULE, TAINT_OOT_MODULE,
TAINT_UNSIGNED_MODULE
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
(ignored: LC_ALL set to en_US.UTF-8), LANGUAGE=en_US.UTF-8
Shell: /bin/sh linked to /usr/bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled

Versions of packages apt depends on:
ii  adduser                 3.134
ii  debian-archive-keyring  2023.3+deb12u1
ii  gpgv                    2.2.40-1.1
ii  libapt-pkg6.0           2.6.1
ii  libc6                   2.36-9+deb12u3
ii  libgcc-s1               12.2.0-14
ii  libgnutls30             3.7.9-2+deb12u1
ii  libseccomp2             2.5.4-1+b3
ii  libstdc++6              12.2.0-14
ii  libsystemd0             252.17-1~deb12u1

Versions of packages apt recommends:
ii  ca-certificates  20230311

Versions of packages apt suggests:
pn  apt-doc         <none>
ii  dpkg-dev        1.21.22
ii  gnupg           2.2.40-1.1
pn  powermgmt-base  <none>
ii  synaptic        0.91.3

--- End Message ---
--- Begin Message ---
On Wed, 27 Dec 2023 17:46:18 -0500 a...@php.net wrote:
The following causes apt-get to go into an infinite busy loop:

```
$ mkdir /tmp/empty
$ apt-get -c /tmp/empty
```

This affects the latest dev build as well.

I submitted a fix here:
https://salsa.debian.org/apt-team/apt/-/merge_requests/314

Hi!

This problem has been fixed with following commit:
https://salsa.debian.org/apt-team/apt/-/commit/014d0ccfa0ade684e2b650fda3e8d3ffd4d7b431
The commit merges change linked in this ticket's comment #5.

My tests are below.




1. Successful reproduction on Debian 12, with apt 2.7.11 compiled from
59cd4953f5 (last commit before fix):

acerion@debian:~$ grep CODENAME /etc/os-release
VERSION_CODENAME=bookworm
acerion@debian:~$ apt-get --version
apt 2.7.11 (amd64)
Supported modules:
*Ver: Standard .deb
[...]
acerion@debian:~$ mkdir /tmp/empty
acerion@debian:~$ sudo apt-get -c /tmp/empty/
^C
acerion@debian:~$

apt-get process just sits silently, printing nothing, and 'top' command
shows that it uses 100% of time of one of CPU's threads. I had to stop
apt-get with Ctrl-C.




2. Attempt to reproduce on Debian 12, with apt 2.7.11 compiled from
014d0ccfa0 (commit merging the fix to 'main' branch).

acerion@debian:~$ grep CODENAME /etc/os-release
VERSION_CODENAME=bookworm
acerion@debian:~$ apt-get --version
apt 2.7.11 (amd64)
Supported modules:
*Ver: Standard .deb
[...]
acerion@debian:~$ sudo apt-get -c /tmp/empty/
apt 2.7.11 (amd64)
Usage: apt-get [options] command
       apt-get [options] install|remove pkg1 [pkg2 ...]
       apt-get [options] source pkg1 [pkg2 ...]
[...]

apt-get returns after printing help text. Problem no longer occurs.




3. Attempt to reproduce on Debian sid, with apt 3.0.2

acerion@debian:~$ grep CODENAME /etc/os-release
VERSION_CODENAME=trixie
acerion@debian:~$ apt-get --version
apt 3.0.2 (amd64)
Supported modules:
*Ver: Standard .deb
[...]
acerion@debian:~$ mkdir /tmp/empty
acerion@debian:~$ sudo apt-get -c /tmp/empty/
apt 3.0.2 (amd64)
Usage: apt-get [options] command
       apt-get [options] install|remove pkg1 [pkg2 ...]
       apt-get [options] source pkg1 [pkg2 ...]
[...]

apt-get returns after printing help text. Problem no longer occurs.




Since the problem was solved by merging a fix to repo, I'm closing this
ticket.

Kamil

--- End Message ---

Reply via email to