Hi,

I have a problem with clamav-milter crashing

running: 
    clamav-milter -D -lo /var/run/clamav/clmilter.sock -q -m 10 -x 9

When i send a fairly empty email (just headers) or any email i get the 
following:

LibClamAV debug: watchdog sleeps
LibClamAV debug: clamav-milter [0x805aaa7]
LibClamAV debug: clamav-milter [0x805aeba]
LibClamAV debug: clamav-milter [0x805832a]
LibClamAV debug: clamav-milter [0x8056b6d]
LibClamAV debug: /lib/libpthread.so.0 [0x3de3db]
LibClamAV debug: /lib/libc.so.6(clone+0x5e) [0x33806e]
ERROR: Segmentation fault :-( Bye..
Segmentation fault

System Details: 
===========

uname -mrsp
Linux 2.6.18-1.2849.fc6 i686 i686

Sendmail 8.13.8

GNU C Library stable release version 2.5
GNU CC version 4.1.1

I have tried these versions:

0.88.6
0.90rc2
ClamAV devel-20061206/2292/Wed Dec  6 11:00:54 2006
ClamAV version devel-20061206, clamav-milter version devel-021206

Back Trace:
=========

[New Thread -1234830448 (LWP 26269)]

Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread -1234830448 (LWP 26269)]
0x002d75b0 in strncpy () from /lib/libc.so.6
(gdb) bt
#0  0x002d75b0 in strncpy () from /lib/libc.so.6
#1  0x0804fa94 in clamfi_eom (ctx=0xab1b758) at clamav-milter.c:3206
#2  0x0805aaa7 in st_bodyend ()
#3  0x0805aeba in mi_engine ()
#4  0x0805832a in mi_handle_session ()
#5  0x08056b6d in mi_thread_handle_wrapper ()
#6  0x003de3db in start_thread () from /lib/libpthread.so.0
#7  0x0033806e in clone () from /lib/libc.so.6
(gdb) info threads
* 4 Thread -1234830448 (LWP 26269)  0x002d75b0 in strncpy ()
   from /lib/libc.so.6
  3 Thread -1213850736 (LWP 26223)  0x007e0402 in __kernel_vsyscall ()
  2 Thread -1224340592 (LWP 26224)  0x007e0402 in __kernel_vsyscall ()
  1 Thread -1208105280 (LWP 26222)  0x007e0402 in __kernel_vsyscall ()
(gdb) thread 1
[Switching to thread 1 (Thread -1208105280 (LWP 26222))]#0  0x007e0402 in 
__kernel_vsyscall ()
(gdb) bt
#0  0x007e0402 in __kernel_vsyscall ()
#1  0x00330f01 in ___newselect_nocancel () from /lib/libc.so.6
#2  0x08057a40 in mi_listener ()
#3  0x0805689c in smfi_main ()
#4  0x080560ee in main (argc=8, argv=0xbf8e6b34) at clamav-milter.c:1874
(gdb) thread 2
[Switching to thread 2 (Thread -1224340592 (LWP 26224))]#0  0x007e0402 in 
__kernel_vsyscall ()
(gdb) bt
#0  0x007e0402 in __kernel_vsyscall ()
#1  0x003e5ebe in do_sigwait () from /lib/libpthread.so.0
#2  0x003e5f5f in sigwait () from /lib/libpthread.so.0
#3  0x08059529 in mi_signal_thread ()
#4  0x003de3db in start_thread () from /lib/libpthread.so.0
#5  0x0033806e in clone () from /lib/libc.so.6
(gdb) thread 3
[Switching to thread 3 (Thread -1213850736 (LWP 26223))]#0  0x007e0402 in 
__kernel_vsyscall ()
(gdb) bt
#0  0x007e0402 in __kernel_vsyscall ()
#1  0x003e242c in pthread_cond_timedwait@@GLIBC_2.3.2 ()
   from /lib/libpthread.so.0
#2  0x0804de28 in watchdog (a=0x0) at clamav-milter.c:5097
#3  0x003de3db in start_thread () from /lib/libpthread.so.0
#4  0x0033806e in clone () from /lib/libc.so.6
(gdb)


Thanks 

Martin.
_______________________________________________
Help us build a comprehensive ClamAV guide: visit http://wiki.clamav.net
http://lurker.clamav.net/list/clamav-users.html

Reply via email to