apt-cache-ng is taking 100% cpu
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
apt-cacher-ng (Ubuntu) |
New
|
Undecided
|
Unassigned |
Bug Description
Every once in a while, /usr/sbin/
root@magicbox:~# lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu 21.04
Release: 21.04
Codename: hirsute
root@magicbox:~# dpkg -l | grep apt-cacher
ii apt-cacher-ng 3.6.3-1 amd64 caching proxy server for software repositories
root@magicbox:~# ps -P 1494
PID PSR TTY STAT TIME COMMAND
1494 2 ? Ssl 2674:27 /usr/sbin/
root@magicbox:~# top -p 1494
PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND
1494 apt-cac+ 20 0 755256 10244 7392 S 100.0 0.1 2681:35 apt-cacher-ng
Seems one of the threads stuck in a select/pol loop (from gdb):
(gdb) bt
#0 0x00007f8c9495309e in epoll_wait (epfd=3, events=
#1 0x00007f8c94ca8719 in ?? () from /lib/x86_
#2 0x00007f8c94c9e685 in event_base_loop () from /lib/x86_
#3 0x00007f8c94d8455a in acng::evabase:
#4 0x000055b8c61f5b25 in ?? ()
#5 0x00007f8c94863565 in __libc_start_main (main=0x55b8c61
#6 0x000055b8c61f5ede in ?? ()
(gdb) info threads
Id Target Id Frame
* 1 LWP 1494 "apt-cacher-ng" 0x00007f8c9495309e in epoll_wait (epfd=3, events=
2 LWP 5052 "apt-cacher-ng" __futex_
3 LWP 11108 "apt-cacher-ng" __futex_
4 LWP 18009 "apt-cacher-ng" __futex_
5 LWP 18010 "apt-cacher-ng" __futex_
6 LWP 18014 "apt-cacher-ng" __futex_
7 LWP 19462 "apt-cacher-ng" 0x00007f8c94949b31 in __GI___select (nfds=15, readfds=
8 LWP 21198 "apt-cacher-ng" __futex_
9 LWP 22284 "apt-cacher-ng" 0x00007f8c94949b31 in __GI___select (nfds=19, readfds=
(gdb) thread 7
[Switching to thread 7 (LWP 19462)]
#0 0x00007f8c94949b31 in __GI___select (nfds=15, readfds=
Download failed: Function not implemented. Continuing without source file ./misc/
49 ../sysdeps/
(gdb) bt
#0 0x00007f8c94949b31 in __GI___select (nfds=15, readfds=
#1 0x00007f8c94d135f8 in acng::dlcon:
#2 0x00007f8c94d15636 in acng::dlcon:
#3 0x00007f8c94b1c694 in ?? () from /lib/x86_
#4 0x00007f8c94c64450 in start_thread (arg=0x7f8c915d
#5 0x00007f8c94952d53 in clone () at ../sysdeps/
description: | updated |
description: | updated |
description: | updated |
description: | updated |
Attached apt-cacher-ng logs.