Package: apt-cacher-ng Version: 0.3.11-1 Severity: normal
Hello I have noticed, that acng eats all available to a process virtual memory after some days of work, and it starts to return 503 to all requests. It spawns a lot of threads and keeps them running. The reason of this behavior is race condition while counting spare threads. Variable nSpareThreads must change under mutually exclusive lock, but in the function ThreadAction it is guarded with reLock function, which allows all workers to enter this critical section simultaneously. Due to this nSpareThreads is increased slower, than it should, and it allows threads to leak. -- System Information: Debian Release: 5.0.1 APT prefers stable APT policy: (500, 'stable'), (1, 'experimental') Architecture: i386 (i686) Kernel: Linux 2.6.29.4-avi (SMP w/2 CPU cores; PREEMPT) Locale: LANG=ru_RU.UTF-8, LC_CTYPE=ru_RU.UTF-8 (charmap=UTF-8) (ignored: LC_ALL set to ru_RU.UTF-8) Shell: /bin/sh linked to /bin/bash -- To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org