[netflow-tools] Cannot start softflowd without "-d" option

Andreas Brillisauer -- Hetzner Online AG andreas.brillisauer at hetzner.de
Thu Dec 29 22:17:37 EST 2005


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
<unfinished ... exit status 0>
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





More information about the netflow-tools mailing list