DragonFly users List (threaded) for 2007-08
DragonFly BSD
DragonFly users List (threaded) for 2007-08
[Date Prev][Date Next]  [Thread Prev][Thread Next]  [Date Index][Thread Index]

Re: Trying to setup PF and spamd...hell!


From: elekktretterr@xxxxxxxxxxxxxx
Date: Thu, 9 Aug 2007 21:47:14 +1000 (EST)

>
> No, we'd need to see where fd 4 is being opened, but maybe that's a
> limitation of ktrace.  I could guess that that the pipe is between 3 and
> 4, so we'd have to know what the spamd-setup child is doing.  Could you
> run the trace with -i, so that we can see why the child is closing the fd?
>
> cheers
>   simon
>


Here is the nre trace:

daria# kdump -f ktrace.out | tail -n 100
 42004 spamd-setup CALL  mmap(0,0x1000,0x3,0x1002,0xffffffff,0,0,0)
 42004 spamd-setup RET   mmap 674217984/0x282fc000
 42004 spamd-setup CALL  mmap(0,0x1000,0x3,0x1002,0xffffffff,0,0,0)
 42004 spamd-setup RET   mmap 674222080/0x282fd000
 42004 spamd-setup CALL  mmap(0,0x1000,0x3,0x1002,0xffffffff,0,0,0)
 42004 spamd-setup RET   mmap 674226176/0x282fe000
 42004 spamd-setup CALL  mmap(0,0x1000,0x3,0x1002,0xffffffff,0,0,0)
 42004 spamd-setup RET   mmap 674230272/0x282ff000

 42004 spamd-setup CALL  mmap(0,0x1000,0x3,0x1002,0xffffffff,0,0,0)
 42004 spamd-setup RET   mmap 674234368/0x28300000
 42004 spamd-setup CALL  mmap(0,0x1000,0x3,0x1002,0xffffffff,0,0,0)
 42004 spamd-setup RET   mmap 674238464/0x28301000
 42004 spamd-setup CALL  mmap(0,0x1000,0x3,0x1002,0xffffffff,0,0,0)
 42004 spamd-setup RET   mmap 674242560/0x28302000
 42004 spamd-setup CALL  socket(0x2,0x1,0)
 42004 spamd-setup RET   socket 3
 42004 spamd-setup CALL  getsockopt(0x3,0,0x13,0xbfbff5f4,0xbfbff5f8)
 42004 spamd-setup RET   getsockopt 0
 42004 spamd-setup CALL  setsockopt(0x3,0,0x13,0xbfbff5f0,0x4)
 42004 spamd-setup RET   setsockopt 0
 42004 spamd-setup CALL  bind(0x3,0xbfbff6d0,0x10)
 42004 spamd-setup RET   bind 0
 42004 spamd-setup CALL  getsockname(0x3,0xbfbff6d0,0xbfbff5fc)
 42004 spamd-setup RET   getsockname 0
 42004 spamd-setup CALL  connect(0x3,0xbfbff7d0,0x10)
 42004 spamd-setup RET   connect 0
 42004 spamd-setup CALL  fcntl(0x3,0x3,0)
 42004 spamd-setup RET   fcntl 2
 42004 spamd-setup CALL  fstat(0x3,0xbfbff630)
 42004 spamd-setup RET   fstat 0
 42004 spamd-setup CALL  mmap(0,0xe000,0x3,0x1002,0xffffffff,0,0,0)
 42004 spamd-setup RET   mmap 674246656/0x28303000
 42004 spamd-setup CALL  write(0x3,0x28303000,0xe000)
 42004 spamd-setup GIO   fd 3 wrote 57344 bytes
       "spews1;"SPAM. Your address %A is in the spews level 1 database\\n"
 42004 spamd-setup RET   write 57344/0xe000
 42004 spamd-setup CALL  write(0x3,0x28303000,0xb933)
 42004 spamd-setup GIO   fd 3 wrote 47411 bytes
       "24;200.140.110.0/24;200.141.161.0/25;200.141.161.134/32;200.142."
 42004 spamd-setup RET   write 47411/0xb933
 42004 spamd-setup CALL  close(0x3)
 42004 spamd-setup RET   close 0
 42004 spamd-setup CALL  close(0x3)
 42004 spamd-setup RET   close -1 errno 9 Bad file descriptor
 42004 spamd-setup CALL  pipe
 42004 spamd-setup RET   pipe 3
 42004 spamd-setup CALL  fork
 42004 spamd-setup RET   fork 42015/0xa41f
 42015 spamd-setup RET   fork 0
 42004 spamd-setup CALL  close(0x3)
 42004 spamd-setup RET   close 0
 42015 spamd-setup CALL  close(0x4)
 42015 spamd-setup RET   close 0
 42004 spamd-setup CALL  fcntl(0x4,0x3,0)
 42004 spamd-setup RET   fcntl 2
 42015 spamd-setup CALL  dup2(0x3,0)
 42015 spamd-setup RET   dup2 0
 42004 spamd-setup CALL  fstat(0x4,0xbfbff1a0)
 42004 spamd-setup RET   fstat 0
 42015 spamd-setup CALL  close(0x3)
 42015 spamd-setup RET   close 0
 42015 spamd-setup CALL  execve(0xbfbff370,0xbfbff7c0,0xbfbff8e0)
 42015 spamd-setup NAMI  "/sbin/__nonexistent__"
 42015 spamd-setup RET   execve -1 errno 2 No such file or directory
 42015 spamd-setup CALL  execve(0xbfbff370,0xbfbff7c0,0xbfbff8e0)
 42015 spamd-setup NAMI  "/bin/__nonexistent__"
 42015 spamd-setup RET   execve -1 errno 2 No such file or directory
 42015 spamd-setup CALL  execve(0xbfbff370,0xbfbff7c0,0xbfbff8e0)
 42015 spamd-setup NAMI  "/usr/sbin/__nonexistent__"
 42015 spamd-setup RET   execve -1 errno 2 No such file or directory
 42015 spamd-setup CALL  execve(0xbfbff370,0xbfbff7c0,0xbfbff8e0)
 42015 spamd-setup NAMI  "/usr/bin/__nonexistent__"
 42015 spamd-setup RET   execve -1 errno 2 No such file or directory
 42015 spamd-setup CALL  execve(0xbfbff370,0xbfbff7c0,0xbfbff8e0)
 42015 spamd-setup NAMI  "/usr/pkg/bin/__nonexistent__"
 42015 spamd-setup RET   execve -1 errno 2 No such file or directory
 42015 spamd-setup CALL  execve(0xbfbff370,0xbfbff7c0,0xbfbff8e0)
 42015 spamd-setup NAMI  "/usr/pkg/sbin/__nonexistent__"
 42015 spamd-setup RET   execve -1 errno 2 No such file or directory
 42015 spamd-setup CALL  execve(0xbfbff370,0xbfbff7c0,0xbfbff8e0)
 42015 spamd-setup NAMI  "/usr/games/__nonexistent__"
 42015 spamd-setup RET   execve -1 errno 2 No such file or directory
 42015 spamd-setup CALL  execve(0xbfbff370,0xbfbff7c0,0xbfbff8e0)
 42015 spamd-setup NAMI  "/usr/local/sbin/__nonexistent__"
 42015 spamd-setup RET   execve -1 errno 2 No such file or directory
 42015 spamd-setup CALL  execve(0xbfbff370,0xbfbff7c0,0xbfbff8e0)
 42015 spamd-setup NAMI  "/usr/local/bin/__nonexistent__"
 42015 spamd-setup RET   execve -1 errno 2 No such file or directory
 42015 spamd-setup CALL  execve(0xbfbff370,0xbfbff7c0,0xbfbff8e0)
 42015 spamd-setup NAMI  "/usr/pkg/xorg/bin/__nonexistent__"
 42015 spamd-setup RET   execve -1 errno 2 No such file or directory
 42015 spamd-setup CALL  execve(0xbfbff370,0xbfbff7c0,0xbfbff8e0)
 42015 spamd-setup NAMI  "/usr/X11R6/bin/__nonexistent__"
 42015 spamd-setup RET   execve -1 errno 2 No such file or directory
 42015 spamd-setup CALL  execve(0xbfbff370,0xbfbff7c0,0xbfbff8e0)
 42015 spamd-setup NAMI  "/root/bin/__nonexistent__"
 42015 spamd-setup RET   execve -1 errno 2 No such file or directory
 42015 spamd-setup CALL  exit(0x1)
 42004 spamd-setup CALL  write(0x4,0x28303000,0x4000)
 42004 spamd-setup PSIG  SIGPIPE SIG_DFL


Thanks,
Petr




[Date Prev][Date Next]  [Thread Prev][Thread Next]  [Date Index][Thread Index]