I've got a hard-to-reproduce problem - I was just wondering if anyone has seen anything similar, or if it's just my code :-) The daemon using libclamav() can run for hours and hours being stress-tested - I've got a test-set of about 1000 emails that I keep running through it.
Here's the stacktrace: (gdb) bt #0 0xb7f3a5d7 in cli_ac_scanbuff (buffer=0xb7cfc0f1 "GIF89aK\002", length=8503, virname=0xb6493f24, root=0x8052410, partcnt=0xb5143a70, otfrec=0, offset=0, partoff=0xb5145948, ftype=515, fd=23) at matcher-ac.c:288 #1 0xb7f3bf0a in cli_scandesc (desc=23, virname=0xb6493f24, scanned=0xb6493f20, root=0x8052410, otfrec=0, ftype=515) at matcher.c:302 #2 0xb7f4847e in cli_scanraw (desc=23, virname=0xb6493f24, scanned=0xb6493f20, root=0x8052410, limits=0xb6493f0c, options=107, arec=0, mrec=1, type=CL_TYPE_GRAPHICS) at scanners.c:1365 #3 0xb7f490f8 in cli_magic_scandesc (desc=23, virname=0xb6493f24, scanned=0xb6493f20, root=0x8052410, limits=0xb6493f0c, options=107, arec=0, mrec=1) at scanners.c:1553 #4 0xb7f4934f in cli_scanfile (filename=0xb51204a0 "/tmp/clamav-05314924e4fc4447/.9.gifxwRGJM", virname=0xb6493f24, scanned=0xb6493f20, root=0x8052410, limits=0xb6493f0c, options=107, arec=0, mrec=1) at scanners.c:1595 #5 0xb7f46a22 in cli_scandir (dirname=0xb5120478 "/tmp/clamav-05314924e4fc4447", virname=0xb6493f24, scanned=0xb6493f20, root=0x8052410, limits=0xb6493f0c, options=107, arec=0, mrec=1) at scanners.c:888 #6 0xb7f48354 in cli_scanmail (desc=20, virname=0xb6493f24, scanned=0xb6493f20, root=0x8052410, limits=0xb6493f0c, options=107, arec=0, mrec=1) at scanners.c:1343 #7 0xb7f48cc9 in cli_magic_scandesc (desc=20, virname=0xb6493f24, scanned=0xb6493f20, root=0x8052410, limits=0xb6493f0c, options=107, arec=0, mrec=1) at scanners.c:1489 #8 0xb7f4928a in cl_scandesc (desc=20, virname=0xb6493f24, scanned=0xb6493f20, root=0x8052410, limits=0xb6493f0c, options=107) at scanners.c:1583 #9 0xb7f49411 in cl_scanfile (filename=0xb64953f4 "/tmp/ibwd.0", virname=0xb6493f24, scanned=0xb6493f20, root=0x8052410, limits=0xb6493f0c, options=107) at scanners.c:1609 #10 0x0804b7b3 in clamav_scan (c=0x8052cf0, filename=0xb64953f4 "/tmp/ibwd.0", virusname=0xb6493fd4) at ibwd_clamav.c:34 #11 0x0804ba6f in scan_email (c=0x8052cf0, domain=0xb6494d40 "jessen.ch", email=0xb64953f4 "/tmp/ibwd.0", mailsize=15263, hdr=0xb649452c) at ibwd_scanemail.c:124 #12 0x0804eeb0 in email_rcvd (c=0xb6494520, text=0xb6494e28 ".\r\n", len=3) at ibwd_proxy_fsm.c:227 #13 0x0804e308 in proxy_fsm (c=0x8052cf0, left=6, right=13) at ibwd_proxy_fsm.c:539 #14 0x0804aec0 in worker_thread (x=0x8052cf0) at ibwd_worker3.c:84 #15 0xb7f9933b in start_thread () from /lib/libpthread.so.0 #16 0xb7ed165e in clone () from /lib/libc.so.6 /Per Jessen, Zürich _______________________________________________ http://lurker.clamav.net/list/clamav-devel.html