Every time clamd reloads its database it will increase memory usage. For more information regarding this bug see: https://wwws.clamav.net/bugzilla/show_bug.cgi?id=1028 Reproducible: Always Actual Results:
Created attachment 156045 [details, diff] patch includes changes in revision r3873 and r3882
Patch needs an s/pthread_yield/sched_yield otherwise it looks ok. should maybe check if upstream still have posix_yield() in trunk and ask them to fix if needed.
forgot this for the record: http://sourceware.org/cgi-bin/cvsweb.cgi/~checkout~/linuxthreads/linuxthreads/FAQ.html?rev=1.2.2.1&content-type=text/html&cvsroot=glibc#E
There is discussion ongoing in the corresponding upstream wether this *might* introduce a possible DoS - resolving this one as upstream therefore for now.