Edwin,

thanks very much for your quick response.

I did the strace you suggested,

There are quite a few open commands shown:


open("/etc/ld.so.cache", O_RDONLY)      = 3
open("/usr/local/lib/libclamav.so.6", O_RDONLY) = 3
open("/lib/tls/libpthread.so.0", O_RDONLY) = 3
open("/lib/tls/libc.so.6", O_RDONLY)    = 3
open("/lib/libdl.so.2", O_RDONLY)       = 3
open("/lib/libz.so.1", O_RDONLY)        = 3
open("/usr/lib/libbz2.so.1", O_RDONLY)  = 3
open("/lib/tls/libm.so.6", O_RDONLY)    = 3
open("/usr/local/etc/clamd.conf", O_RDONLY) = 3
open("/usr/local/lib/libclamunrar_iface.so.6.1.3", O_RDONLY) = 3
open("/etc/ld.so.cache", O_RDONLY)      = 3
open("/usr/local/lib/libclamunrar.so.6", O_RDONLY) = 3
open("/usr/local/share/clamav",
O_RDONLY|O_NONBLOCK|O_LARGEFILE|O_DIRECTORY) = 3
open("/usr/local/share/clamav/daily.cld", O_RDONLY) = 4
open("/usr/local/share/clamav/daily.cld", O_RDONLY) = 4
open("/usr/local/share/clamav/main.cvd", O_RDONLY) = 4
open("/usr/local/share/clamav/bytecode.cvd", O_RDONLY) = 4



and at the end there is the following:



umask(022)                              = 0777
chmod("/tmp/clamd.socket", 0666)        = 0
open("/dev/null", O_RDONLY)             = 4
open("/dev/null", O_WRONLY)             = 5
open("/dev/null", O_WRONLY)             = 6
dup2(4, 0)                              = 0
dup2(5, 1)                              = 1
dup2(6, 2)                              = 2
close(4)                                = 0
close(5)                                = 0
close(6)                                = 0
clone(child_stack=0,
flags=CLONE_CHILD_CLEARTID|CLONE_CHILD_SETTID|SIGCHLD,
child_tidptr=0x40291028) = -1 ENOMEM (
write(2, "ERROR: daemonize() failed\n", 26) = 26
close(3)                                = 0
unlink("/tmp/clamd.socket")             = 0
fstat64(1, {st_mode=S_IFCHR|0666, st_rdev=makedev(1, 3), ...}) = 0
ioctl(1, SNDCTL_TMR_TIMEBASE or TCGETS, 0xbfada9b4) = -1 ENOTTY
(Inappropriate ioctl for device)
mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1,
0) = 0x4001b000
write(1, "Socket file removed.\n", 21)  = 21
brk(0x9c3a000)                          = 0x9c3a000
brk(0x9bfb000)                          = 0x9bfb000
munmap(0x40aa7000, 135168)              = 0
munmap(0x48249000, 262144)              = 0
munmap(0x48209000, 192512)              = 0
munmap(0x481c9000, 262144)              = 0
munmap(0x48189000, 262144)              = 0
munmap(0x48149000, 262144)              = 0
munmap(0x48109000, 262144)              = 0
munmap(0x480c9000, 262144)              = 0
munmap(0x48089000, 262144)              = 0
munmap(0x48049000, 262144)              = 0
munmap(0x48009000, 262144)              = 0
munmap(0x47fc9000, 262144)              = 0
munmap(0x47f89000, 262144)              = 0
munmap(0x47f49000, 262144)              = 0
munmap(0x47f09000, 262144)              = 0
munmap(0x47ec9000, 262144)              = 0

(followed by another heap of munmap lines )

================

Is here anything visible regarding my problem?

Thanks
Mike




On 25.05.2010 17:52, Török Edwin wroute:
> On 05/25/2010 06:27 PM, Michael Feldmann wrote:
>> Hello list.
>>
>> having upgraded to the current version 0.96.1 on a Suse Linux 10.3 the
>> clamd daemon won't start. I get the same error other users have
>> described some time ago:
>>
>> ==================
>> Tue May 25 15:57:27 2010 -> +++ Started at Tue May 25 15:57:27 2010
>> Tue May 25 15:57:27 2010 -> clamd daemon 0.96.1 (OS: linux-gnu, ARCH:
>> i386, CPU: i686)
>> Tue May 25 15:57:27 2010 -> Log file size limit disabled.
>> Tue May 25 15:57:27 2010 -> Reading databases from /usr/local/share/clamav
>> Tue May 25 15:57:27 2010 -> Not loading PUA signatures.
>> Tue May 25 15:57:34 2010 -> Loaded 787256 signatures.
>> Tue May 25 15:57:34 2010 -> LOCAL: Unix socket file /tmp/clamd.socket
>> Tue May 25 15:57:34 2010 -> LOCAL: Setting connection queue length to 15
>> Tue May 25 15:57:34 2010 -> ERROR: daemonize() failed
>> Tue May 25 15:57:34 2010 -> Closing the main socket.
>> Tue May 25 15:57:34 2010 -> Socket file removed.
>> ===================
> 
> Try 'strace /usr/sbin/clamd 2>log'. Then see what fails (well its either
> open(), dup2(), or fork()), and paste the relevant lines here.
> Or just paste the last 50 or so lines of output from strace.
> 
> --Edwin
> _______________________________________________
> Help us build a comprehensive ClamAV guide: visit http://wiki.clamav.net
> http://www.clamav.net/support/ml

_______________________________________________
Help us build a comprehensive ClamAV guide: visit http://wiki.clamav.net
http://www.clamav.net/support/ml

Reply via email to