[netflow-tools] Cannot start softflowd without "-d" option
Andreas Brillisauer -- Hetzner Online AG
andreas.brillisauer at hetzner.de
Fri Dec 9 20:24:57 EST 2005
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
<unfinished ... exit status 0>
More information about the netflow-tools
mailing list