>>>> FreeBSD 5.4-RELEASE-patched-p8 >>>> ClamAV 0.94 from ports >>>> >>>> Clamd does not work. When starting, i get this in logs: >>>> However, clamd is not running and is not in processes list ("ps ax | grep >>>> clamd" shows >>>> nothing). There are no errors and warnings of any kind. >>>> >>>> How can i find out what is wrong? >>>> >>>> >> >> kzc> You can always run it with "Foreground yes" and see what it dumps >> kzc> out on the console. >> >> Thanks. On the console i get: >> >> [skipped] >> HTML support enabled. >> Self checking every 1800 seconds. >> Bus error >> >> What is "Bus error" and how can i deal with it? >>
TE> Bus error can mean different things depending on your architecture, such TE> as unaligned memory reference, stack overrun, etc. TE> For i386 it can't be unaligned references, so we need some further data TE> here. TE> 1. Try running clamd under strace (strace clamd) TE> 2. Run clamd from gdb (gdb clamd, then type run, when it stops with an TE> error type backtrace) strace clamd : execve(0xbfbfe7d0, [0xbfbfecb4], [/* 0 vars */]PIOCWSTOP: Input/output error Listening daemon: PID: 47273 Limits: Global size limit set to 104857600 bytes. Limits: File size limit set to 26214400 bytes. Limits: Recursion level limit set to 16. Limits: Files limit set to 10000. Archive support enabled. Algorithmic detection enabled. Portable Executable support enabled. ELF support enabled. Mail files support enabled. OLE2 support enabled. PDF support disabled. HTML support enabled. Self checking every 1800 seconds. gdb clamd : (gdb) run Starting program: /usr/local/sbin/clamd (no debugging symbols found)...(no debugging symbols found)...(no debugging symbols found)...Listening daemon: PID: 47697 Limits: Global size limit set to 104857600 bytes. Limits: File size limit set to 26214400 bytes. Limits: Recursion level limit set to 16. Limits: Files limit set to 10000. Archive support enabled. Algorithmic detection enabled. Portable Executable support enabled. ELF support enabled. Mail files support enabled. OLE2 support enabled. PDF support disabled. HTML support enabled. Self checking every 1800 seconds. Program received signal SIGBUS, Bus error. [Switching to Thread 100197 (LWP 100197)] 0x28141268 in _pthread_sigmask (how=3, set=0xbfbfeb50, oset=0x0) at /usr/src/lib/libthr/thread/thr_sig.c:60 60 error = sigprocmask(how, set, oset); gdb backtrace : A lot of lines like #0 0x28141268 in _pthread_sigmask (how=3, set=0xbfbfeb50, oset=0x0) at /usr/src/lib/libthr/thread/thr_sig.c:60 #1 0x281a5a1a in sigprocmask () from /usr/lib/libpthread.so.1 _______________________________________________ Help us build a comprehensive ClamAV guide: visit http://wiki.clamav.net http://www.clamav.net/support/ml