#980923 acngtools eats all the CPU and doesn’t finish daily cron with merged pdiffs

Package:
apt-cacher-ng
Source:
apt-cacher-ng
Description:
caching proxy server for software repositories
Submitter:
David Prévot
Date:
2021-03-28 12:21:05 UTC
Severity:
serious
#980923#5
Date:
2021-01-24 12:31:34 UTC
From:
To:
Hi,

Since (a few days after) merged pdiff were enabled on Sid and Bullseye,
apt-cacher-ng seems unable to finish its daily cron job (I have to
restart it to be able to use my machine again). acngtools seems to use
all the CPU according to top(1).

Regards

David

#980923#10
Date:
2021-01-25 18:46:45 UTC
From:
To:
Hallo,
* David Prévot [Sun, Jan 24 2021, 08:31:34AM]:

Interesting. Please throw gcore at it and send me a copy of that dump, or maybe a
decoded stacktrace for the beginning.

Best regards,
Eduard.

#980923#15
Date:
2021-01-26 10:13:19 UTC
From:
To:
Hi Eduard,

Le Mon, Jan 25, 2021 at 07:46:45PM +0100, Eduard Bloch a écrit :

Done in private.

How could I do that (apologies, I’m not used to debug compiled code).

Regards

David

#980923#20
Date:
2021-01-31 22:30:07 UTC
From:
To:
Hallo,
* David Prévot [Tue, Jan 26 2021, 06:12:58AM]:

Ok, thank you. I think I can reproduce the issue with a local sample
now. This also might be the cause of another bugreport I got recently.

Stay tuned, I will send you a test binary for fix verification soon.

Best regards,
Eduard.

#980923#27
Date:
2021-02-08 17:36:46 UTC
From:
To:
notfound 980923 3.6-1
thanks

Hallo,
* Eduard Bloch [Sun, Jan 31 2021, 11:30:07PM]:

At least that issue should be solved in 3.6 now.

Best regards,
Eduard.

#980923#36
Date:
2021-02-08 21:43:52 UTC
From:
To:
Hi,

Le 08/02/2021 à 13:36, Eduard Bloch a écrit :
[…]

Indeed, I managed to finish a manual maintenance task (and gain back ten
of the fifteen Go I’ve recently needed to add in /var). I’ll come back
to you in case the daily task is not as happy.

Thank you.

Regards

David

#980923#37
Date:
2021-03-03 21:48:37 UTC
From:
To:
We believe that the bug you reported is fixed in the latest version of
apt-cacher-ng, 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 977611@bugs.debian.org,
and the maintainer will reopen the bug report if appropriate.

Debian distribution maintenance software
pp.
Eduard Bloch <blade@debian.org> (supplier of updated apt-cacher-ng 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 ftpmaster@ftp-master.debian.org)
Format: 1.8
Date: Wed, 03 Mar 2021 19:20:34 +0100
Source: apt-cacher-ng
Architecture: source
Version: 3.6.2-1
Distribution: unstable
Urgency: medium
Maintainer: Eduard Bloch <blade@debian.org>
Changed-By: Eduard Bloch <blade@debian.org>
Closes: 977611 982984
Changes:
 apt-cacher-ng (3.6.2-1) unstable; urgency=medium
 .
   * New upstream bugfix version
     + solves another DNS issue where resolv.conf is modified after startup,
       also report most connect errors correctly (now really closes: #982984)
     + solves sporadic hanging of acngtool in the daily cron job
       (closes: #977611)
Checksums-Sha1:
 2db9b020885fa623c7b65beb699bc8ceb146a50e 2146 apt-cacher-ng_3.6.2-1.dsc
 13fc76f1ae05f0e34d3437a2d2ea8feefecb6a53 334412 apt-cacher-ng_3.6.2.orig.tar.xz
 8f9f1ab79a98a2286f9e23ea6f1dadf697dcb961 49484 apt-cacher-ng_3.6.2-1.debian.tar.xz
 de99eb3f2494ce103bb70d4c043df93bc053ec6e 8866 apt-cacher-ng_3.6.2-1_source.buildinfo
Checksums-Sha256:
 ead1e0cfd345a4bfd0b1274c87ea41b95c973175a3bd2855b4127be206c366c0 2146 apt-cacher-ng_3.6.2-1.dsc
 736b8e43a7858b67f62ff9395ae7fdd59e9010ab74d44e7c65d6fcea8c9d80ed 334412 apt-cacher-ng_3.6.2.orig.tar.xz
 9f5120dab820e62ed9cb2e87e33d47039979b32469ae2b160478ec1f884e6a9a 49484 apt-cacher-ng_3.6.2-1.debian.tar.xz
 7914c00370c744d6ec194a4fc988086156b79dfdc0ffb8651c19273f61d71a4a 8866 apt-cacher-ng_3.6.2-1_source.buildinfo
Files:
 dd05ca229e56edb4703aa278ed41c7f9 2146 net optional apt-cacher-ng_3.6.2-1.dsc
 24a743cdd295e4094a7ca52b48a14729 334412 net optional apt-cacher-ng_3.6.2.orig.tar.xz
 d37f53e86a2cedcc5da1cbc0a43a3041 49484 net optional apt-cacher-ng_3.6.2-1.debian.tar.xz
 e10f6bc49e3b0f9fc251bee7d6dce51f 8866 net optional apt-cacher-ng_3.6.2-1_source.buildinfo
-----BEGIN PGP SIGNATURE-----

iQIzBAEBCAAdFiEEZI3Zj0vEgpAXyw40aXQOXLNf7DwFAmA/+ocACgkQaXQOXLNf
7Dx2vRAArctYK1ZUOXuBzUWcR43G8AXnwPAtw9vgi3eFn8dLZ4x9djlY7cWQBzdS
/dTGssKcEAjttnZn5CloLhfpcLjJDLDJ3HEVhEN2OUrECzRt9yINJLvTuDLUGUZr
kskUzSuERwYQc51FRa9ZkcD2C01gjYGdCBrnvxBxkHTl0GrvPc5iEOS5vyFBH1lL
tS+j2Wd+oLnheqrb8EtDiDJBmswO9QHxRwtjoxamHa4G69j0tpR5SZNClyBQrmia
Cwy/hBGS32hoWg+mFZNMaUG5nu4jmkYt2jQA11ad+5OxGE1nPX0ICWDLhj55dff8
lYQjboaf1I/vleO3oOunss7i7oXIFH7n7Fu8+mCXO7y/TvHfnmskRzWkDSpfO7GB
nWtOB+h6UtXlnQ+WvKgtUOhkkBk0r7H3jkoooGlp26TfIQ6ISE+sqDQOimJPs+9T
F1ky3PN6Pxqc8sgIoPLRlRqhO1A/IVX2wuTlTpPB/umj5L/3kb0pbK0YITW7kurG
n7UuYnNvt/Kf4qlSdiSyZzAbHbNyOKd7fZ0JFNhmjoySA80pSR9tm0Af/RnJP/uC
pl5HAipYvelcMqnCTt6oGtrdd0+f6EFwCzjQhbx2aHAlgLZQjUkxrqODUKDzxdt/
kNeBnimM2x15L+gMDXjqvjUeht0+xskPlMD3heCZxfuTmXXqJUo=
=+RgJ
-----END PGP SIGNATURE-----

#980923#42
Date:
2021-03-26 04:48:11 UTC
From:
To:
Dear Maintainer,

*** Reporter, please consider answering these questions, where appropriate ***

   * What led up to the situation? The last two versions of apt-cacher-ng in testing have shown this issue. No idea what triggers it
   * What exactly did you do (or not do) that was effective (or
     ineffective)? restart service temporarily fixes it
   * What was the outcome of this action? apt-cacher-ng not using 100% CPU
   * What outcome did you expect instead? No need to restart service...

*** End of the template - remove these template lines ***

#980923#47
Date:
2021-03-26 19:46:35 UTC
From:
To:
Hallo,
* Marcos Carot [Fri, Mar 26 2021, 12:48:11PM]:

The version you mentioned above is not in Testing. So what do you mean?
You see this with the Testing version? Have you tried the actual version
3.6.3 then?

And what issue? What exactly are you observing? Mind to share your log
files from /var/log/apt-cacher-ng/ and the maint*.html files with me?
(compress them all into a tarball or ZIP)

So how does it behave? Before restarting, can you do a:

strace -f -o /tmp/acngtool.log -p $(pidof acngtool)

and then send that acngtool.log file to me?

This ticket is about acngtool eating CPU, not apt-cacher-ng. So what do
you mean?

If this is about apt-cacher-ng, please create another ticket. And also
trace the actual program. Like:

strace -f -o /tmp/apt-cacher-ng.log -p $(pidof apt-cacher-ng)

Best regards,
Eduard.

#980923#52
Date:
2021-03-28 00:17:13 UTC
From:
To:
Apologies. Please ignore this email