Hi, While investigating the crashes I've been seeing with ClamAV 0.75 on FreeBSD I have discovered a place where an assertion fails. The assertion that fails is on line 331 of message.c:
assert(m->base64chars == 0); The backtrace for the process in question was: (gdb) c Continuing. [Switching to process 7243, thread 4] Program received signal SIGABRT, Aborted. 0x28124ce4 in kill () from /usr/lib/libc_r.so.4 (gdb) bt #0 0x28124ce4 in kill () from /usr/lib/libc_r.so.4 #1 0x2817334a in abort () from /usr/lib/libc_r.so.4 #2 0x2814ceab in __assert () from /usr/lib/libc_r.so.4 #3 0x28089457 in messageReset (m=0x97bd100) at message.c:331 #4 0x2808932f in messageDestroy (m=0x97bd100) at message.c:304 #5 0x280861b7 in cl_mbox (dir=0x808a2c0 "/var/tmp//clamav-d836f6595d1f0a01", desc=22) at mbox.c:570 #6 0x2807df08 in cli_scanmail (desc=22, virname=0xbfadcaa4, scanned=0x0, root=0x8084800, limits=0xbfbffa20, options=27, reclev=0xbfadaa48) at scanners.c:950 #7 0x2807e25e in cli_magic_scandesc (desc=22, virname=0xbfadcaa4, scanned=0x0, root=0x8084800, limits=0xbfbffa20, options=27, reclev=0xbfadaa48) at scanners.c:1030 #8 0x2807e420 in cli_scanfile ( filename=0x808a280 "/var/tmp//clamav-662db5d6db3ab4b8/unknownOH36Ca", virname=0xbfadcaa4, scanned=0x0, root=0x8084800, limits=0xbfbffa20, options=27, reclev=0xbfadaa48) at scanners.c:1079 #9 0x2807d462 in cli_scandir ( dirname=0x808a240 "/var/tmp//clamav-662db5d6db3ab4b8", virname=0xbfadcaa4, scanned=0x0, root=0x8084800, limits=0xbfbffa20, options=27, reclev=0xbfadaa48) at scanners.c:741 #10 0x2807df34 in cli_scanmail (desc=20, virname=0xbfadcaa4, scanned=0x0, root=0x8084800, limits=0xbfbffa20, options=27, reclev=0xbfadaa48) at scanners.c:953 #11 0x2807e25e in cli_magic_scandesc (desc=20, virname=0xbfadcaa4, scanned=0x0, root=0x8084800, limits=0xbfbffa20, options=27, reclev=0xbfadaa48) at scanners.c:1030 #12 0x2807e420 in cli_scanfile ( filename=0x808a1c0 "/var/tmp//clamav-4166d32502bcf690/unknown4mAqAJ", virname=0xbfadcaa4, scanned=0x0, root=0x8084800, limits=0xbfbffa20, options=27, reclev=0xbfadaa48) at scanners.c:1079 #13 0x2807d462 in cli_scandir ( dirname=0x808a180 "/var/tmp//clamav-4166d32502bcf690", virname=0xbfadcaa4, scanned=0x0, root=0x8084800, limits=0xbfbffa20, options=27, reclev=0xbfadaa48) at scanners.c:741 #14 0x2807df34 in cli_scanmail (desc=16, virname=0xbfadcaa4, scanned=0x0, root=0x8084800, limits=0xbfbffa20, options=27, reclev=0xbfadaa48) at scanners.c:953 #15 0x2807e25e in cli_magic_scandesc (desc=16, virname=0xbfadcaa4, scanned=0x0, root=0x8084800, limits=0xbfbffa20, options=27, reclev=0xbfadaa48) at scanners.c:1030 #16 0x2807e420 in cli_scanfile ( filename=0x808a140 "/var/tmp//clamav-c037f384ba6813b5/unknowngsg9XC", virname=0xbfadcaa4, scanned=0x0, root=0x8084800, limits=0xbfbffa20, options=27, reclev=0xbfadaa48) at scanners.c:1079 #17 0x2807d462 in cli_scandir ( dirname=0x955ef40 "/var/tmp//clamav-c037f384ba6813b5", virname=0xbfadcaa4, scanned=0x0, root=0x8084800, limits=0xbfbffa20, options=27, reclev=0xbfadaa48) at scanners.c:741 #18 0x2807df34 in cli_scanmail (desc=19, virname=0xbfadcaa4, scanned=0x0, root=0x8084800, limits=0xbfbffa20, options=27, reclev=0xbfadaa48) at scanners.c:953 #19 0x2807e25e in cli_magic_scandesc (desc=19, virname=0xbfadcaa4, scanned=0x0, root=0x8084800, limits=0xbfbffa20, options=27, reclev=0xbfadaa48) at scanners.c:1030 #20 0x2807e420 in cli_scanfile ( filename=0x955ef00 "/var/tmp//clamav-0c7611aa08893677/unknownmIP9vj", virname=0xbfadcaa4, scanned=0x0, root=0x8084800, limits=0xbfbffa20, options=27, reclev=0xbfadaa48) at scanners.c:1079 #21 0x2807d462 in cli_scandir ( dirname=0x808a000 "/var/tmp//clamav-0c7611aa08893677", virname=0xbfadcaa4, scanned=0x0, root=0x8084800, limits=0xbfbffa20, options=27, reclev=0xbfadaa48) at scanners.c:741 #22 0x2807df34 in cli_scanmail (desc=10, virname=0xbfadcaa4, scanned=0x0, root=0x8084800, limits=0xbfbffa20, options=27, reclev=0xbfadaa48) at scanners.c:953 #23 0x2807e25e in cli_magic_scandesc (desc=10, virname=0xbfadcaa4, scanned=0x0, root=0x8084800, limits=0xbfbffa20, options=27, reclev=0xbfadaa48) at scanners.c:1030 #24 0x2807e3b2 in cl_scandesc (desc=10, virname=0xbfadcaa4, scanned=0x0, root=0x8084800, limits=0xbfbffa20, options=27) at scanners.c:1067 #25 0x805050e in getopt () #26 0x804dfce in getopt () #27 0x804e854 in getopt () #28 0x804e64d in getopt () #29 0x280ff240 in _thread_start () from /usr/lib/libc_r.so.4 #30 0x0 in ?? () Scanning the file from 'clamscan' manually causes the assertion to fail reproducibly: su-2.05# clamscan --mbox /var/tmp//clamav-662db5d6db3ab4b8/unknownOH36Ca assertion "m->base64chars == 0" failed: file "message.c", line 331 Abort trap (core dumped) I've made the file available at http://www.olliecook.net/unknownOH36Ca if the developers are interested. Cheers, Ollie -- Oliver Cook Systems Administrator, Claranet UK [EMAIL PROTECTED] +44 20 7903 3065 ------------------------------------------------------- This SF.Net email is sponsored by OSTG. Have you noticed the changes on Linux.com, ITManagersJournal and NewsForge in the past few weeks? Now, one more big change to announce. We are now OSTG- Open Source Technology Group. Come see the changes on the new OSTG site. www.ostg.com _______________________________________________ Clamav-users mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/clamav-users