On 5 Jul 2006 at 12:02, Stephen Gran wrote:
> On Wed, Jul 05, 2006 at 11:41:04AM +0100, Beginner said:
> > On 5 Jul 2006 at 10:22, Stephen Gran wrote:
> > > I have another report of problems on alpha (unaligned traps) - do you
> > > see anything in kern.log? Can you debug this a bit (strace, gdb, etc)?
> >
> > I just ran an strace on clamd until it spawned 2 defunct processes.
> > The content of the output file from strace is a bit cryptic. I can't work
> > out which of these pid is
> > beind referred to so I am not sure what part of it to post. The output file
> > has 6115 lines in.
>
> You'll want strace with -f (follow fork) and -o filename (which will
> produce one file per pid that you're tracing. Then can you send me the
> files in a tar.gz?
I am not getting any joy with the -f or -ff switch. When I try
>strace -o clam-debug.txt -ff clamd
It only creates one process:
clamav 4648 0.0 1.6 26904 20984 ? Ts 12:19 0:00 clamd
Clamd also has problems then removing the socket:
WARNING: Socket file /var/run/clamav/clamd.ctl exists. Unclean shutdown?
Removing...
The file generated by strace for pid 4648 is empty
======== Last output from strace
brk(0x12114c000) = 0x12114c000
open("/dev/null", O_WRONLY) = 4
close(0) = 0
dup2(4, 1) = 1
dup2(4, 2) = 2
chdir("/") = 0
fork() = 4648
munmap(0x2000001c000, 8192) = 0
exit_group(0) = ?
I think I may need to look at gdb? Any hints?
Thanx.
Dp.
Dermot Paikkos
Network Administrator @ Science Photo Library
Phone: 0207 432 1100
Fax: 0207 286 8668
_______________________________________________
http://lurker.clamav.net/list/clamav-users.html