From andreas.brillisauer at hetzner.de Fri Dec 9 20:24:57 2005 From: andreas.brillisauer at hetzner.de (Andreas Brillisauer -- Hetzner Online AG) Date: Fri, 09 Dec 2005 10:24:57 +0100 Subject: [netflow-tools] Cannot start softflowd without "-d" option Message-ID: <1134120297.3431.29.camel@neptune> Hello, I compiled and installed softlowfd on a Debian (AMD64) machine. softflowd works when I use the "-d" or "-D" option. The following works: softflowd -i eth0 -d softflowd -i eth0 -D softflowd -i eth0 -d -D But this doesn't work: softflowd -i eth0 I only want to start softflowd as daemon and without the debug mode. But when I try "softflowd -i eth0" it stops immediately. You can find the strace output at the end of the mail. Regards, Andreas ------------------------------------------------------------------------ debian:~# strace /usr/local/sbin/softflowd -i eth0 execve("/usr/local/sbin/softflowd", ["/usr/local/sbin/softflowd", "-i", "eth0"], [/* 16 vars */]) = 0 uname({sys="Linux", node="debian", ...}) = 0 brk(0) = 0x50b000 mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x2a9556a000 access("/etc/ld.so.nohwcap", F_OK) = -1 ENOENT (No such file or directory) open("/etc/ld.so.preload", O_RDONLY) = -1 ENOENT (No such file or directory) open("/etc/ld.so.cache", O_RDONLY) = 3 fstat(3, {st_mode=S_IFREG|0644, st_size=10546, ...}) = 0 mmap(NULL, 10546, PROT_READ, MAP_PRIVATE, 3, 0) = 0x2a9556b000 close(3) = 0 access("/etc/ld.so.nohwcap", F_OK) = -1 ENOENT (No such file or directory) open("/usr/lib/libpcap.so.0.8", O_RDONLY) = 3 read(3, "\177ELF\2\1\1\0\0\0\0\0\0\0\0\0\3\0>\0\1\0\0\0\0O\0\0\0"..., 640) = 640 fstat(3, {st_mode=S_IFREG|0644, st_size=160912, ...}) = 0 mmap(NULL, 1211000, PROT_READ|PROT_EXEC, MAP_PRIVATE, 3, 0) = 0x2a9566c000 mprotect(0x2a95690000, 1063544, PROT_NONE) = 0 mmap(0x2a9576c000, 159744, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED, 3, 0) = 0x2a9576c000 mmap(0x2a95793000, 2680, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED| MAP_ANONYMOUS, -1, 0) = 0x2a95793000 close(3) = 0 access("/etc/ld.so.nohwcap", F_OK) = -1 ENOENT (No such file or directory) open("/lib/libc.so.6", O_RDONLY) = 3 read(3, "\177ELF\2\1\1\0\0\0\0\0\0\0\0\0\3\0>\0\1\0\0\0\340\324"..., 640) = 640 fstat(3, {st_mode=S_IFREG|0755, st_size=1295328, ...}) = 0 mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x2a95794000 mmap(NULL, 2354760, PROT_READ|PROT_EXEC, MAP_PRIVATE, 3, 0) = 0x2a95795000 mprotect(0x2a958b7000, 1166920, PROT_NONE) = 0 mmap(0x2a95995000, 241664, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED, 3, 0x100000) = 0x2a95995000 mmap(0x2a959d0000, 15944, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED| MAP_ANONYMOUS, -1, 0) = 0x2a959d0000 close(3) = 0 mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x2a959d4000 arch_prctl(0x1002, 0x2a959d4090) = 0 munmap(0x2a9556b000, 10546) = 0 getrlimit(0x7, 0x7fbfffc6d0) = 0 close(3) = -1 EBADF (Bad file descriptor) close(4) = -1 EBADF (Bad file descriptor) close(5) = -1 EBADF (Bad file descriptor) close(6) = -1 EBADF (Bad file descriptor) close(7) = -1 EBADF (Bad file descriptor) . . . close(1021) = -1 EBADF (Bad file descriptor) close(1022) = -1 EBADF (Bad file descriptor) close(1023) = -1 EBADF (Bad file descriptor) brk(0) = 0x50b000 brk(0x52c000) = 0x52c000 brk(0) = 0x52c000 socket(PF_PACKET, SOCK_RAW, 768) = 3 ioctl(3, SIOCGIFINDEX, {1, "lo"}) = 0 ioctl(3, SIOCGIFHWADDR, 0x7fbfffc340) = 0 ioctl(3, SIOCGIFINDEX, {2, "eth0"}) = 0 bind(3, {sa_family=AF_PACKET, proto=0x03, if2, pkttype=PACKET_HOST, addr(0)={0, }, 20) = 0 getsockopt(3, SOL_SOCKET, SO_ERROR, "\0\0\0\0", [216172855128227844]) = 0 setsockopt(3, SOL_PACKET, PACKET_ADD_MEMBERSHIP, "\2\0\0\0\1\0\0\0\0\0\0 \0\0\0\0\0", 16) = 0 socket(PF_INET, SOCK_DGRAM, IPPROTO_IP) = 4 ioctl(4, SIOCGIFADDR, 0x7fbfffc550) = 0 ioctl(4, SIOCGIFNETMASK, 0x7fbfffc550) = 0 close(4) = 0 socket(PF_FILE, SOCK_STREAM, 0) = 4 unlink("/var/run/softflowd.ctl") = 0 bind(4, {sa_family=AF_FILE, path="/var/run/softflowd.ctl"}, 25) = 0 listen(4, 64) = 0 clone(child_stack=0, flags=CLONE_CHILD_CLEARTID|CLONE_CHILD_SETTID| SIGCHLD, child_tidptr=0x2a959d4120) = 29404 --- SIGCHLD (Child exited) @ 0 (0) --- exit_group(0, 0, 0x72dc, 0x2a959d4120, 0xffffffffffffffe0 From gizmen at bsdguru.org Fri Dec 9 21:55:53 2005 From: gizmen at bsdguru.org (Bartosz Giza) Date: Fri, 09 Dec 2005 11:55:53 +0100 Subject: [netflow-tools] Problem with pfflowd on freebsd 6.0 Message-ID: <20051209.F9F.59684300@wfs.blurp.pl> Hi, My box is running on freebsd 6.0-STABLE. I want to gather data to collector from my pf states. I was trying to make pfflowd to work but without success. Could anyone help me and tell how to do this? Maybe there is someone on this list who has pfflowd running on Freebsd machine and could help me with this. When i start pfflowd with -D switch i only have this message: pfflowd -D No export target defined ZZZZ -1 pfflowd[37565]: pfflowd listening on pfsync0 it dosen't matter that i tell to what collector send this data. Nothing happens. This is router for my network so there is a lot of changes in pf states. Could any one give me hint ? If not i will star use softflowd but i would rather want to use pfflowd. Thanks From djm at mindrot.org Tue Dec 13 07:50:27 2005 From: djm at mindrot.org (Damien Miller) Date: Tue, 13 Dec 2005 07:50:27 +1100 (EST) Subject: [netflow-tools] Cannot start softflowd without "-d" option In-Reply-To: <1134120297.3431.29.camel@neptune> References: <1134120297.3431.29.camel@neptune> Message-ID: On Fri, 9 Dec 2005, Andreas Brillisauer -- Hetzner Online AG wrote: > Hello, > > I compiled and installed softlowfd on a Debian (AMD64) machine. > softflowd works when I use the "-d" or "-D" option. > > The following works: > > softflowd -i eth0 -d > softflowd -i eth0 -D > softflowd -i eth0 -d -D > > But this doesn't work: > > softflowd -i eth0 > > I only want to start softflowd as daemon and without the debug mode. But > when I try "softflowd -i eth0" it stops immediately. What compiler are you using to build softflowd with? gcc 4.x has proved problematic in the past. > debian:~# strace /usr/local/sbin/softflowd -i eth0 Could you re-try this trace using: strace -f /usr/local/sbin/softflowd -i eth0 This will cause it to chase execution into the child process, which seems to be exiting early. -d From djm at mindrot.org Tue Dec 13 07:52:40 2005 From: djm at mindrot.org (Damien Miller) Date: Tue, 13 Dec 2005 07:52:40 +1100 (EST) Subject: [netflow-tools] Problem with pfflowd on freebsd 6.0 In-Reply-To: <20051209.F9F.59684300@wfs.blurp.pl> References: <20051209.F9F.59684300@wfs.blurp.pl> Message-ID: On Fri, 9 Dec 2005, Bartosz Giza wrote: > Hi, > My box is running on freebsd 6.0-STABLE. I want to gather data > to collector from my pf states. > > I was trying to make pfflowd to work but without success. > Could anyone help me and tell how to do this? > Maybe there is someone on this list who has pfflowd running on > Freebsd machine and could help me with this. > > When i start pfflowd with -D switch i only have this message: > pfflowd -D > No export target defined > ZZZZ -1 > pfflowd[37565]: pfflowd listening on pfsync0 > > it dosen't matter that i tell to what collector send this data. > Nothing happens. Make sure that you have brought up the pfsync0 interface "ifconfig pfsync up" before running pfllowd. Also, check to see whether traffic is making it to the interface using tcpdump. If tcpdump doesn't see any traffic, then your problem lies with pf/pfsync and not pfflowd. -d From andreas.brillisauer at hetzner.de Thu Dec 29 22:17:37 2005 From: andreas.brillisauer at hetzner.de (Andreas Brillisauer -- Hetzner Online AG) Date: Thu, 29 Dec 2005 12:17:37 +0100 Subject: [netflow-tools] Cannot start softflowd without "-d" option In-Reply-To: References: <1134120297.3431.29.camel@neptune> Message-ID: <1135855057.3456.31.camel@neptune> Damien Miller wrote: > What compiler are you using to build softflowd with? gcc 4.x has proved > problematic in the past. I use gcc 3.3. > Could you re-try this trace using: > strace -f /usr/local/sbin/softflowd -i eth0 > > This will cause it to chase execution into the child process, which seems > to be exiting early. Here is the output of "strace -f /usr/local/sbin/softflowd -i eth0": ------------------------------------------------------------------------ 19335 execve("/usr/local/sbin/softflowd", ["/usr/local/sbin/softflowd", "-i", "eth0"], [/* 16 vars */]) = 0 19335 uname({sys="Linux", node="debian", ...}) = 0 19335 brk(0) = 0x50b000 19335 mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x2a9556a000 19335 access("/etc/ld.so.nohwcap", F_OK) = -1 ENOENT (No such file or directory) 19335 open("/etc/ld.so.preload", O_RDONLY) = -1 ENOENT (No such file or directory) 19335 open("/etc/ld.so.cache", O_RDONLY) = 3 19335 fstat(3, {st_mode=S_IFREG|0644, st_size=10546, ...}) = 0 19335 mmap(NULL, 10546, PROT_READ, MAP_PRIVATE, 3, 0) = 0x2a9556b000 19335 close(3) = 0 19335 access("/etc/ld.so.nohwcap", F_OK) = -1 ENOENT (No such file or directory) 19335 open("/usr/lib/libpcap.so.0.8", O_RDONLY) = 3 19335 read(3, "\177ELF\2\1\1\0\0\0\0\0\0\0\0\0\3\0>\0\1\0\0\0\0O\0\0 \0"..., 640) = 640 19335 fstat(3, {st_mode=S_IFREG|0644, st_size=160912, ...}) = 0 19335 mmap(NULL, 1211000, PROT_READ|PROT_EXEC, MAP_PRIVATE, 3, 0) = 0x2a9566c000 19335 mprotect(0x2a95690000, 1063544, PROT_NONE) = 0 19335 mmap(0x2a9576c000, 159744, PROT_READ|PROT_WRITE, MAP_PRIVATE| MAP_FIXED, 3, 0) = 0x2a9576c000 19335 mmap(0x2a95793000, 2680, PROT_READ|PROT_WRITE, MAP_PRIVATE| MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0x2a95793000 19335 close(3) = 0 19335 access("/etc/ld.so.nohwcap", F_OK) = -1 ENOENT (No such file or directory) 19335 open("/lib/libc.so.6", O_RDONLY) = 3 19335 read(3, "\177ELF\2\1\1\0\0\0\0\0\0\0\0\0\3\0>\0\1\0\0\0\340 \324"..., 640) = 640 19335 fstat(3, {st_mode=S_IFREG|0755, st_size=1295328, ...}) = 0 19335 mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x2a95794000 19335 mmap(NULL, 2354760, PROT_READ|PROT_EXEC, MAP_PRIVATE, 3, 0) = 0x2a95795000 19335 mprotect(0x2a958b7000, 1166920, PROT_NONE) = 0 19335 mmap(0x2a95995000, 241664, PROT_READ|PROT_WRITE, MAP_PRIVATE| MAP_FIXED, 3, 0x100000) = 0x2a95995000 19335 mmap(0x2a959d0000, 15944, PROT_READ|PROT_WRITE, MAP_PRIVATE| MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0x2a959d0000 19335 close(3) = 0 19335 mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x2a959d4000 19335 arch_prctl(0x1002, 0x2a959d4090) = 0 19335 munmap(0x2a9556b000, 10546) = 0 19335 getrlimit(0x7, 0x7fbfffc6d0) = 0 19335 close(3) = -1 EBADF (Bad file descriptor) 19335 close(4) = -1 EBADF (Bad file descriptor) 19335 close(5) = -1 EBADF (Bad file descriptor) 19335 close(6) = -1 EBADF (Bad file descriptor) . . . 19335 close(1021) = -1 EBADF (Bad file descriptor) 19335 close(1022) = -1 EBADF (Bad file descriptor) 19335 close(1023) = -1 EBADF (Bad file descriptor) 19335 brk(0) = 0x50b000 19335 brk(0x52c000) = 0x52c000 19335 brk(0) = 0x52c000 19335 socket(PF_PACKET, SOCK_RAW, 768) = 3 19335 ioctl(3, SIOCGIFINDEX, {1, "lo"}) = 0 19335 ioctl(3, SIOCGIFHWADDR, 0x7fbfffc340) = 0 19335 ioctl(3, SIOCGIFINDEX, {2, "eth0"}) = 0 19335 bind(3, {sa_family=AF_PACKET, proto=0x03, if2, pkttype=PACKET_HOST, addr(0)={0, }, 20) = 0 19335 getsockopt(3, SOL_SOCKET, SO_ERROR, "\0\0\0\0", [216172855128227844]) = 0 19335 setsockopt(3, SOL_PACKET, PACKET_ADD_MEMBERSHIP, "\2\0\0\0\1\0\0\0 \0\0\0\0\0\0\0\0", 16) = 0 19335 socket(PF_INET, SOCK_DGRAM, IPPROTO_IP) = 4 19335 ioctl(4, SIOCGIFADDR, 0x7fbfffc550) = 0 19335 ioctl(4, SIOCGIFNETMASK, 0x7fbfffc550) = 0 19335 close(4) = 0 19335 socket(PF_FILE, SOCK_STREAM, 0) = 4 19335 unlink("/var/run/softflowd.ctl") = 0 19335 bind(4, {sa_family=AF_FILE, path="/var/run/softflowd.ctl"}, 25) = 0 19335 listen(4, 64) = 0 19335 clone(child_stack=0, flags=CLONE_CHILD_CLEARTID| CLONE_CHILD_SETTID|SIGCHLD, child_tidptr=0x2a959d4120) = 19336 19335 exit_group(0, 0, 0x4b88, 0x2a959d4120, 0xffffffffffffffe0 19336 setsid() = 19336 19336 chdir("/") = 0 19336 open("/dev/null", O_RDWR) = 5 19336 fstat(5, {st_mode=S_IFCHR|0666, st_rdev=makedev(1, 3), ...}) = 0 19336 dup2(5, 0) = 0 19336 dup2(5, 1) = 1 19336 dup2(5, 2) = 2 19336 close(5) = 0 19336 open("/var/run/softflowd.pid", O_WRONLY|O_CREAT|O_TRUNC, 0666) = 5 19336 getpid() = 19336 19336 fstat(5, {st_mode=S_IFREG|0644, st_size=0, ...}) = 0 19336 mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x2a9556b000 19336 write(5, "19336\n", 6) = 6 19336 close(5) = 0 19336 munmap(0x2a9556b000, 4096) = 0 19336 rt_sigaction(SIGINT, {0x402d00, [INT], SA_RESTART|0x4000000}, {SIG_DFL}, 8) = 0 19336 rt_sigaction(SIGTERM, {0x402d00, [TERM], SA_RESTART|0x4000000}, {SIG_DFL}, 8) = 0 19336 rt_sigaction(SIGSEGV, {0x402d10, [SEGV], SA_RESTART|0x4000000}, {SIG_DFL}, 8) = 0 19336 open("/etc/nsswitch.conf", O_RDONLY) = 5 19336 fstat(5, {st_mode=S_IFREG|0644, st_size=465, ...}) = 0 19336 mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x2a9556b000 19336 read(5, "# /etc/nsswitch.conf\n#\n# Example"..., 4096) = 465 19336 read(5, "", 4096) = 0 19336 close(5) = 0 19336 munmap(0x2a9556b000, 4096) = 0 19336 open("/etc/ld.so.cache", O_RDONLY) = 5 19336 fstat(5, {st_mode=S_IFREG|0644, st_size=10546, ...}) = 0 19336 mmap(NULL, 10546, PROT_READ, MAP_PRIVATE, 5, 0) = 0x2a9556b000 19336 close(5) = 0 19336 access("/etc/ld.so.nohwcap", F_OK) = -1 ENOENT (No such file or directory) 19336 open("/lib/libnss_db.so.2", O_RDONLY) = 5 19336 read(5, "\177ELF\2\1\1\0\0\0\0\0\0\0\0\0\3\0>\0\1\0\0\0\0\31\0 \0"..., 640) = 640 19336 fstat(5, {st_mode=S_IFREG|0644, st_size=21536, ...}) = 0 19336 mmap(NULL, 1068984, PROT_READ|PROT_EXEC, MAP_PRIVATE, 5, 0) = 0x2a959d5000 19336 mprotect(0x2a959da000, 1048504, PROT_NONE) = 0 19336 mmap(0x2a95ad5000, 20480, PROT_READ|PROT_WRITE, MAP_PRIVATE| MAP_FIXED, 5, 0) = 0x2a95ad5000 19336 close(5) = 0 19336 access("/etc/ld.so.nohwcap", F_OK) = -1 ENOENT (No such file or directory) 19336 open("/lib/libnss_files.so.2", O_RDONLY) = 5 19336 read(5, "\177ELF\2\1\1\0\0\0\0\0\0\0\0\0\3\0>\0\1\0\0\0@&\0\0 \0"..., 640) = 640 19336 fstat(5, {st_mode=S_IFREG|0644, st_size=41600, ...}) = 0 19336 mmap(NULL, 1089160, PROT_READ|PROT_EXEC, MAP_PRIVATE, 5, 0) = 0x2a95ada000 19336 mprotect(0x2a95ae3000, 1052296, PROT_NONE) = 0 19336 mmap(0x2a95bda000, 40960, PROT_READ|PROT_WRITE, MAP_PRIVATE| MAP_FIXED, 5, 0) = 0x2a95bda000 19336 close(5) = 0 19336 access("/etc/ld.so.nohwcap", F_OK) = -1 ENOENT (No such file or directory) 19336 open("/usr/lib/libdb3.so.3", O_RDONLY) = 5 19336 read(5, "\177ELF\2\1\1\0\0\0\0\0\0\0\0\0\3\0>\0\1\0\0\0\0\n\1 \0"..., 640) = 640 19336 fstat(5, {st_mode=S_IFREG|0644, st_size=761664, ...}) = 0 19336 mmap(NULL, 1809560, PROT_READ|PROT_EXEC, MAP_PRIVATE, 5, 0) = 0x2a95be4000 19336 mprotect(0x2a95c93000, 1092760, PROT_NONE) = 0 19336 mmap(0x2a95ce4000, 761856, PROT_READ|PROT_WRITE, MAP_PRIVATE| MAP_FIXED, 5, 0) = 0x2a95ce4000 19336 close(5) = 0 19336 munmap(0x2a9556b000, 10546) = 0 19336 open("/var/lib/misc/protocols.db", O_RDWR) = -1 ENOENT (No such file or directory) 19336 open("/var/lib/misc/protocols.db", O_RDONLY) = -1 ENOENT (No such file or directory) 19336 open("/etc/protocols", O_RDONLY) = 5 19336 fcntl(5, F_GETFD) = 0 19336 fcntl(5, F_SETFD, FD_CLOEXEC) = 0 19336 fstat(5, {st_mode=S_IFREG|0644, st_size=2478, ...}) = 0 19336 mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x2a9556b000 19336 lseek(5, 0, SEEK_CUR) = 0 19336 socket(PF_FILE, SOCK_STREAM, 0) = 6 19336 connect(6, {sa_family=AF_FILE, path="/var/run/.nscd_socket"}, 110) = -1 ENOENT (No such file or directory) 19336 close(6) = 0 19336 open("/etc/ld.so.cache", O_RDONLY) = 6 19336 fstat(6, {st_mode=S_IFREG|0644, st_size=10546, ...}) = 0 19336 mmap(NULL, 10546, PROT_READ, MAP_PRIVATE, 6, 0) = 0x2a9556c000 19336 close(6) = 0 19336 access("/etc/ld.so.nohwcap", F_OK) = -1 ENOENT (No such file or directory) 19336 open("/lib/libnss_compat.so.2", O_RDONLY) = 6 19336 read(6, "\177ELF\2\1\1\0\0\0\0\0\0\0\0\0\3\0>\0\1\0\0\0\300\30 \0"..., 640) = 640 19336 fstat(6, {st_mode=S_IFREG|0644, st_size=31744, ...}) = 0 19336 mmap(NULL, 1078856, PROT_READ|PROT_EXEC, MAP_PRIVATE, 6, 0) = 0x2a95d9e000 19336 mprotect(0x2a95da5000, 1050184, PROT_NONE) = 0 19336 mmap(0x2a95e9e000, 32768, PROT_READ|PROT_WRITE, MAP_PRIVATE| MAP_FIXED, 6, 0) = 0x2a95e9e000 19336 close(6) = 0 19336 access("/etc/ld.so.nohwcap", F_OK) = -1 ENOENT (No such file or directory) 19336 open("/lib/libnsl.so.1", O_RDONLY) = 6 19336 read(6, "\177ELF\2\1\1\0\0\0\0\0\0\0\0\0\3\0>\0\1\0\0\0\200S\0 \0"..., 640) = 640 19336 fstat(6, {st_mode=S_IFREG|0644, st_size=83000, ...}) = 0 19336 mmap(NULL, 1138312, PROT_READ|PROT_EXEC, MAP_PRIVATE, 6, 0) = 0x2a95ea6000 19336 mprotect(0x2a95eb8000, 1064584, PROT_NONE) = 0 19336 mmap(0x2a95fa6000, 81920, PROT_READ|PROT_WRITE, MAP_PRIVATE| MAP_FIXED, 6, 0) = 0x2a95fa6000 19336 mmap(0x2a95fba000, 7816, PROT_READ|PROT_WRITE, MAP_PRIVATE| MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0x2a95fba000 19336 close(6) = 0 19336 munmap(0x2a9556c000, 10546) = 0 19336 open("/etc/ld.so.cache", O_RDONLY) = 6 19336 fstat(6, {st_mode=S_IFREG|0644, st_size=10546, ...}) = 0 19336 mmap(NULL, 10546, PROT_READ, MAP_PRIVATE, 6, 0) = 0x2a9556c000 19336 close(6) = 0 19336 access("/etc/ld.so.nohwcap", F_OK) = -1 ENOENT (No such file or directory) 19336 open("/lib/libnss_nis.so.2", O_RDONLY) = 6 19336 read(6, "\177ELF\2\1\1\0\0\0\0\0\0\0\0\0\3\0>\0\1\0\0\0@$\0\0 \0"..., 640) = 640 19336 fstat(6, {st_mode=S_IFREG|0644, st_size=39488, ...}) = 0 19336 mmap(NULL, 1086904, PROT_READ|PROT_EXEC, MAP_PRIVATE, 6, 0) = 0x2a95fbc000 19336 mprotect(0x2a95fc5000, 1050040, PROT_NONE) = 0 19336 mmap(0x2a960bc000, 40960, PROT_READ|PROT_WRITE, MAP_PRIVATE| MAP_FIXED, 6, 0) = 0x2a960bc000 19336 close(6) = 0 19336 munmap(0x2a9556c000, 10546) = 0 19336 open("/etc/passwd", O_RDONLY) = 6 19336 fcntl(6, F_GETFD) = 0 19336 fcntl(6, F_SETFD, FD_CLOEXEC) = 0 19336 lseek(6, 0, SEEK_CUR) = 0 19336 fstat(6, {st_mode=S_IFREG|0644, st_size=916, ...}) = 0 19336 mmap(NULL, 916, PROT_READ, MAP_SHARED, 6, 0) = 0x2a9556c000 19336 lseek(6, 916, SEEK_SET) = 916 19336 munmap(0x2a9556c000, 916) = 0 19336 close(6) = 0 19336 chdir("/var/empty") = -1 ENOENT (No such file or directory) 19336 open("/etc/localtime", O_RDONLY) = 6 19336 fstat(6, {st_mode=S_IFREG|0644, st_size=837, ...}) = 0 19336 mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x2a9556c000 19336 read(6, "TZif\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\10\0\0\0 \10"..., 4096) = 837 19336 close(6) = 0 19336 munmap(0x2a9556c000, 4096) = 0 19336 getpid() = 19336 19336 rt_sigaction(SIGPIPE, {0x2a958644f0, [], 0x4000000}, {SIG_DFL}, 8) = 0 19336 socket(PF_FILE, SOCK_DGRAM, 0) = 6 19336 fcntl(6, F_SETFD, FD_CLOEXEC) = 0 19336 connect(6, {sa_family=AF_FILE, path="/dev/log"}, 16) = 0 19336 sendto(6, "<27>Dec 29 11:56:35 softflowd[19"..., 113, 0, NULL, 0) = 113 19336 rt_sigaction(SIGPIPE, {SIG_DFL}, NULL, 8) = 0 19336 exit_group(0x1, 0x1, 0x2a959d0530, 0x2a959d1e08, 0x2a959d4090 From djm at mindrot.org Thu Dec 29 22:47:24 2005 From: djm at mindrot.org (Damien Miller) Date: Thu, 29 Dec 2005 22:47:24 +1100 (EST) Subject: [netflow-tools] Cannot start softflowd without "-d" option In-Reply-To: <1135855057.3456.31.camel@neptune> References: <1134120297.3431.29.camel@neptune> <1135855057.3456.31.camel@neptune> Message-ID: On Thu, 29 Dec 2005, Andreas Brillisauer -- Hetzner Online AG wrote: > > This will cause it to chase execution into the child process, which seems > > to be exiting early. > > Here is the output of "strace -f /usr/local/sbin/softflowd -i eth0": I see this in your trace: > 19336 chdir("/var/empty") = -1 ENOENT (No such file or > directory) Have you created this directory? It should look like this: drwxr-xr-x 3 root wheel 512 Nov 22 12:27 /var/empty/ -d From andreas.brillisauer at hetzner.de Fri Dec 30 02:16:19 2005 From: andreas.brillisauer at hetzner.de (Andreas Brillisauer -- Hetzner Online AG) Date: Thu, 29 Dec 2005 16:16:19 +0100 Subject: [netflow-tools] Cannot start softflowd without "-d" option In-Reply-To: References: <1134120297.3431.29.camel@neptune> <1135855057.3456.31.camel@neptune> Message-ID: <1135869379.10472.0.camel@neptune> Damien Miller wrote: > Have you created this directory? It should look like this: > > drwxr-xr-x 3 root wheel 512 Nov 22 12:27 /var/empty/ I just created the directory and now it works. Thank you. Regards, Andreas