Re: [Clamav-users] clamd 100% cpu usage
i'm having the same problem. though, since gdb won't work with my system, i can't pinpoint the problem... On 6/16/05, Trog <[EMAIL PROTECTED]> wrote: > On Thu, 2005-06-16 at 15:19 +0200, [EMAIL PROTECTED] wrote: > > spamkiller:~# gdb /usr/local/sbin/clamd 31161 > > > > > 2 Thread 1085660080 (LWP 24411) 0x402223fe in > > pthread_cond_timedwait@@GLIBC_2.3.2 () from /lib/tls/libpthread.so.0 > > 1 Thread -1207991648 (LWP 31161) 0x4022485e in accept () > >from /lib/tls/libpthread.so.0 > > (gdb) thread 2 > > [Switching to thread 2 (Thread 1085660080 (LWP 24411))]#0 0x402223fe in > > pthread_cond_timedwait@@GLIBC_2.3.2 () from /lib/tls/libpthread.so.0 > > (gdb) bt > > #0 0x402223fe in pthread_cond_timedwait@@GLIBC_2.3.2 () > >from /lib/tls/libpthread.so.0 > > #1 0x0804d2af in thrmgr_worker (arg=0x8683000) at thrmgr.c:181 > > #2 0x4021fb63 in start_thread () from /lib/tls/libpthread.so.0 > > #3 0x40301c4a in clone () from /lib/tls/libc.so.6 > > > > there you have it.. > > This looks similar to a problem someone else had after they had > installed gettext and libiconv libraries, and weren't using the glib > versions. Check your libraries. GDB will tell you what libraries are in > use. > > -trog > > > > > > BodyID:18447104.2.n.logpart (stored separately) > > ___ > http://lurker.clamav.net/list/clamav-users.html > > > -- lattera http://lattera.antitech.org/ http://lattera.retoros.org/ http://retoros.org/ ___ http://lurker.clamav.net/list/clamav-users.html
Re: [Clamav-users] clamav hung taking up 100% of CPU
can't use strace, because I don't know the email that is making it hang. that is why I need to use gdb, so I can look through the stack/heap for the email... On 5/27/05, Damian Menscher <[EMAIL PROTECTED]> wrote: > On Fri, 27 May 2005, lattera wrote: > > > Well, clamscan still hangs. I'm using version 0.85.1. I cannot gdb > > attach to tell you guys why/where it's hanging, I'm sorry. > > What about an strace (or whatever your OS equivalent is)? > > Damian Menscher > -- > -=#| Physics Grad Student & SysAdmin @ U Illinois Urbana-Champaign |#=- > -=#| 488 LLP, 1110 W. Green St, Urbana, IL 61801 Ofc:(217)333-0038 |#=- > -=#| 4602 Beckman, VMIL/MS, Imaging Technology Group:(217)244-3074 |#=- > -=#| <[EMAIL PROTECTED]> www.uiuc.edu/~menscher/ Fax:(217)333-9819 |#=- > -=#| The above opinions are not necessarily those of my employers. |#=- > _______ > http://lurker.clamav.net/list/clamav-users.html > -- lattera http://lattera.antitech.org/ http://lattera.retoros.org/ http://retoros.org/ ___ http://lurker.clamav.net/list/clamav-users.html
Re: [Clamav-users] clamav hung taking up 100% of CPU
Well, clamscan still hangs. I'm using version 0.85.1. I cannot gdb attach to tell you guys why/where it's hanging, I'm sorry. -- lattera http://lattera.antitech.org/ http://lattera.retoros.org/ http://retoros.org/ ___ http://lurker.clamav.net/list/clamav-users.html
Re: [Clamav-users] clamav hung taking up 100% of CPU
On 5/23/05, Timo Schoeler <[EMAIL PROTECTED]> wrote: > just another thing: > > you seem to run pkgsrc. just install pkg_chk from pkgtools and run it > from time to time against an updated (!) pkgsrc tree, i.e. first run > cvs, sup or the way you like to update pkgsrc, and then run > > pkg_chk -i > > this will list available updates to packages installed. Thanks for the advice! I will definately be using that a bit more :) the local pkgsrc tree's clamav to 0.85.1 via changing the Makefile's CLAMAV_VERSION to 0.85.1. The hung processes have slowed down, but not stopped (or so it seems). I'll have to keep an eye on it and two fingers crossed. In the mean time, I'll take a look at why gdb is not working. Shawn Webb -- lattera http://lattera.antitech.org/ http://lattera.retoros.org/ http://retoros.org/ ___ http://lurker.clamav.net/list/clamav-users.html
Re: [Clamav-users] clamav hung taking up 100% of CPU
On 5/23/05, Tomasz Kojm <[EMAIL PROTECTED]> wrote: > clamd will loop instead do you guys know, then, when 0.85.1 will be merged into pkgsrc? -- lattera http://lattera.antitech.org/ http://lattera.retoros.org/ http://retoros.org/ ___ http://lurker.clamav.net/list/clamav-users.html
Re: [Clamav-users] clamav hung taking up 100% of CPU
On 5/23/05, Odhiambo Washington <[EMAIL PROTECTED]> wrote: > Is there a reason you are not using clamdscan then? Good question :) I think that maybe I can change qmail-scanner-queue.pl to use clamdscan. Maybe that will solve all my headaches (having to kill -9 about 10 processes every half hour). I shall report back :) Shawn Webb -- lattera http://lattera.antitech.org/ http://lattera.retoros.org/ http://retoros.org/ ___ http://lurker.clamav.net/list/clamav-users.html
Re: [Clamav-users] clamav hung taking up 100% of CPU
On 5/23/05, Odhiambo Washington <[EMAIL PROTECTED]> wrote: > gdb `which clamscan` core_file I can't do that, since there is no core file (clamscan isn't segfaulting, but is just hanging)... Shawn Webb -- lattera http://lattera.antitech.org/ http://lattera.retoros.org/ http://retoros.org/ ___ http://lurker.clamav.net/list/clamav-users.html
[Clamav-users] clamav hung taking up 100% of CPU
Sorry, tomaz, replied only to you, not to the mailinglist... I've upgraded to 0.85, and the problem is worse. I get about 10 hung processes per 30 minutes. It's really killing the server. I've searched the mailing list, and there is no C_URANDOM in the header files (as what the best answer for the search has come up with). Please, I really need this fixed. My users are not happy. gdb does not work with clamscan... (gdb) file /usr/pkg/bin/clamscan Reading symbols from /usr/pkg/bin/clamscan...(no debugging symbols found)... done. (gdb) attach 22136 Attaching to program: /usr/pkg/bin/clamscan, process 22136 Reading symbols from /usr/libexec/ld.elf_so...(no debugging symbols found)... done. Loaded symbols for /usr/libexec/ld.elf_so Reading symbols from /usr/pkg/lib/libclamav.so.1...done. Loaded symbols for /usr/pkg/lib/libclamav.so.1 Reading symbols from /usr/lib/libbz2.so.1...done. Loaded symbols for /usr/lib/libbz2.so.1 Reading symbols from /usr/pkg/lib/libgmp.so.3...done. Loaded symbols for /usr/pkg/lib/libgmp.so.3 Reading symbols from /usr/pkg/lib/libcurl.so.3...done. Loaded symbols for /usr/pkg/lib/libcurl.so.3 Reading symbols from /usr/pkg/lib/libidn.so.11...done. Loaded symbols for /usr/pkg/lib/libidn.so.11 Reading symbols from /usr/lib/libssl.so.3...done. Loaded symbols for /usr/lib/libssl.so.3 Reading symbols from /usr/lib/libcrypto.so.2...done. Loaded symbols for /usr/lib/libcrypto.so.2 Reading symbols from /usr/lib/libz.so.0...done. Loaded symbols for /usr/lib/libz.so.0 Reading symbols from /usr/lib/libpthread.so.0...done. Loaded symbols for /usr/lib/libpthread.so.0 Reading symbols from /usr/lib/libc.so.12...done. Loaded symbols for /usr/lib/libc.so.12 [Switching to Thread 0] nbsd_thread_fetch_registers: td_map_id2thr: process callback error (gdb) x/x $rbp nbsd_thread_fetch_registers: td_map_id2thr: process callback error it shows that error no matter what I do... Shawn Webb -- lattera http://lattera.antitech.org/ http://lattera.retoros.org/ http://retoros.org/ -- lattera http://lattera.antitech.org/ http://lattera.retoros.org/ http://retoros.org/ ___ http://lurker.clamav.net/list/clamav-users.html
Re: [Clamav-users] clamav hung taking up 100% of CPU
pkgsrc tree is up to 0.85, not 0.85.1. After upgrading, within ten minutes I've got two processes taking up 100% of the CPU. So unless it's been fixed in 0.85.1, I'm still having the problem. Shawn Webb On 5/23/05, lattera <[EMAIL PROTECTED]> wrote: > scratch that, it's been updated in the tree since my last cvs up, > which was around two weeks ago. > > Shawn Webb > > On 5/23/05, lattera <[EMAIL PROTECTED]> wrote: > > why would you say that I have no respect? The only reason why I'm > > using an old version is because that's what's in NetBSD's pkgsrc tree. > > I'm sorry if I bothered any of you with my email. Thanks for > > responding. > > > > Shawn Webb > > > > On 5/22/05, Tomasz Kojm <[EMAIL PROTECTED]> wrote: > > > On Sun, 22 May 2005 18:48:53 + > > > lattera <[EMAIL PROTECTED]> wrote: > > > > > > > bash-3.00# clamscan -V > > > > ClamAV 0.84/889/Sun May 22 04:18:49 2005 > > > [...] > > > > and I love the product you guys have spent time making. > > > > > > I don't think so. Actually you have no respect to our work and time. > > > > > > The problem described by you has been fixed in 0.85 (released on May > > > 11). > > > > > > > Thank you, > > > > > > > > Shawn Webb > > > > > > -- > > >oo. Tomasz Kojm <[EMAIL PROTECTED]> > > > (\/)\. http://www.ClamAV.net/gpg/tkojm.gpg > > > \..._ 0DCA5A08407D5288279DB43454822DC8985A444B > > >//\ /\ Sun May 22 21:07:59 CEST 2005 > > > > > > > > > ___ > > > http://lurker.clamav.net/list/clamav-users.html > > > > > > > > > > > > > > > > > > -- > > lattera > > http://lattera.antitech.org/ > > http://lattera.retoros.org/ > > http://retoros.org/ > > > > > -- > lattera > http://lattera.antitech.org/ > http://lattera.retoros.org/ > http://retoros.org/ > -- lattera http://lattera.antitech.org/ http://lattera.retoros.org/ http://retoros.org/ ___ http://lurker.clamav.net/list/clamav-users.html
Re: [Clamav-users] clamav hung taking up 100% of CPU
scratch that, it's been updated in the tree since my last cvs up, which was around two weeks ago. Shawn Webb On 5/23/05, lattera <[EMAIL PROTECTED]> wrote: > why would you say that I have no respect? The only reason why I'm > using an old version is because that's what's in NetBSD's pkgsrc tree. > I'm sorry if I bothered any of you with my email. Thanks for > responding. > > Shawn Webb > > On 5/22/05, Tomasz Kojm <[EMAIL PROTECTED]> wrote: > > On Sun, 22 May 2005 18:48:53 + > > lattera <[EMAIL PROTECTED]> wrote: > > > > > bash-3.00# clamscan -V > > > ClamAV 0.84/889/Sun May 22 04:18:49 2005 > > [...] > > > and I love the product you guys have spent time making. > > > > I don't think so. Actually you have no respect to our work and time. > > > > The problem described by you has been fixed in 0.85 (released on May > > 11). > > > > > Thank you, > > > > > > Shawn Webb > > > > -- > >oo. Tomasz Kojm <[EMAIL PROTECTED]> > > (\/)\. http://www.ClamAV.net/gpg/tkojm.gpg > > \..._ 0DCA5A08407D5288279DB43454822DC8985A444B > >//\ /\ Sun May 22 21:07:59 CEST 2005 > > > > > > ___ > > http://lurker.clamav.net/list/clamav-users.html > > > > > > > > > > > -- > lattera > http://lattera.antitech.org/ > http://lattera.retoros.org/ > http://retoros.org/ > -- lattera http://lattera.antitech.org/ http://lattera.retoros.org/ http://retoros.org/ ___ http://lurker.clamav.net/list/clamav-users.html
Re: [Clamav-users] clamav hung taking up 100% of CPU
why would you say that I have no respect? The only reason why I'm using an old version is because that's what's in NetBSD's pkgsrc tree. I'm sorry if I bothered any of you with my email. Thanks for responding. Shawn Webb On 5/22/05, Tomasz Kojm <[EMAIL PROTECTED]> wrote: > On Sun, 22 May 2005 18:48:53 + > lattera <[EMAIL PROTECTED]> wrote: > > > bash-3.00# clamscan -V > > ClamAV 0.84/889/Sun May 22 04:18:49 2005 > [...] > > and I love the product you guys have spent time making. > > I don't think so. Actually you have no respect to our work and time. > > The problem described by you has been fixed in 0.85 (released on May > 11). > > > Thank you, > > > > Shawn Webb > > -- >oo. Tomasz Kojm <[EMAIL PROTECTED]> > (\/)\. http://www.ClamAV.net/gpg/tkojm.gpg > \..._ 0DCA5A08407D5288279DB43454822DC8985A444B >//\ /\ Sun May 22 21:07:59 CEST 2005 > > > ___ > http://lurker.clamav.net/list/clamav-users.html > > > > -- lattera http://lattera.antitech.org/ http://lattera.retoros.org/ http://retoros.org/ ___ http://lurker.clamav.net/list/clamav-users.html
[Clamav-users] clamav hung taking up 100% of CPU
bash-3.00# uname -a NetBSD 2.0.2 NetBSD 2.0.2 (GENERIC) #0: Thu Mar 24 02:28:37 MST 2005 root@:/usr/obj/sys/arch/amd64/compile/GENERIC amd64 bash-3.00# clamscan -V ClamAV 0.84/889/Sun May 22 04:18:49 2005 I've been noticing several clamscan processes running, taking up 100% of the CPU. Some have been running for over 300 minutes. They usually last only less than half a second. This is critical, since I'm running a very high load email server for thousands of users. I cannot tell what the clamscan process is freezing up on, I am currently developing a project that will allow me to look into other processes' memory so that I can view the email (and/or it's attachments) being scanned. I would appreciate that this problem be addressed immediately and fixed quickly, as every few hours the server (3.2Ghz!) slows to a halt. Your help is very much appreciated and I love the product you guys have spent time making. Thank you, Shawn Webb -- lattera http://lattera.antitech.org/ http://lattera.retoros.org/ http://retoros.org/ ___ http://lurker.clamav.net/list/clamav-users.html