[netflow-tools] "Fatal error - exiting immediately"

Tony and Robyn Lewis gnutered at yahoo.com.au
Thu Nov 17 10:34:11 EST 2005


Have just come across softflowd, and am trying to get it working.

When I run it, i get a fatal error:

me at mymachine:~/softflowd-0.9.7$ sudo ./softflowd -i eth0 
-nlocalhost:2055 -d -D
softflowd v0.9.7 starting data collection
Exporting flows to [127.0.0.1]:2055
Fatal error - exiting immediately
Exiting immediately on user request

I had a quick poke in the code, but nothing jumped out.  I can see where 
the error is reported, but it looks like it's generated in the big 
for(;;) loop.

I'm using libpcap0.8 headers, though I tried it with libpcap0.7 too.

The following tail end of strace output might yield clues:
----------------------------------------------------------------
socket(PF_INET, SOCK_DGRAM, IPPROTO_IP) = 4
connect(4, {sa_family=AF_INET, sin_port=htons(2055), 
sin_addr=inet_addr("127.0.0.1")}, 16) = 0
socket(PF_FILE, SOCK_STREAM, 0)         = 5
unlink("/var/run/softflowd.ctl")        = -1 ENOENT (No such file or 
directory)
bind(5, {sa_family=AF_FILE, path="/var/run/softflowd.ctl"}, 25) = 0
listen(5, 64)                           = 0
write(2, "softflowd v0.9.7 starting data c"..., 41softflowd v0.9.7 
starting data collection) = 41
write(2, "\n", 1
)                       = 1
write(2, "Exporting flows to [127.0.0.1]:2"..., 35Exporting flows to 
[127.0.0.1]:2055) = 35
write(2, "\n", 1
)                       = 1
gettimeofday({1132183833, 268447}, NULL) = 0
gettimeofday({1132183833, 268509}, NULL) = 0
poll([{fd=3, events=POLLIN|POLLERR|POLLHUP, revents=POLLIN}, {fd=5, 
events=POLLIN|POLLERR|POLLHUP}], 2, -1) = 1
recvfrom(3, 
"\0\220\32\240\0\320\0\2\245\254\222C\210d\21\0\10\242\5"..., 160, 
MSG_TRUNC, {sa_family=AF_PACKET, proto=0x8864, if2, 
pkttype=PACKET_OUTGOING, addr(6)={1, 0002a5ac9243}, [20]) = 1462
ioctl(3, SIOCGSTAMP, 0xbf9ea5f8)        = 0
write(2, "Fatal error - exiting immediatel"..., 33Fatal error - exiting 
immediately) = 33
write(2, "\n", 1
)                       = 1
write(2, "Exiting immediately on user requ"..., 35Exiting immediately on 
user request) = 35
write(2, "\n", 1
)                       = 1
close(3)                                = 0
close(4)                                = 0
unlink("/var/run/softflowd.pid")        = -1 ENOENT (No such file or 
directory)
unlink("/var/run/softflowd.ctl")        = 0
exit_group(0)                           = ?
----------------------------------------------------------------

My eye is drawn to the lines:

recvfrom(3, 
"\0\220\32\240\0\320\0\2\245\254\222C\210d\21\0\10\242\5"..., 160, 
MSG_TRUNC, {sa_family=AF_PACKET, proto=0x8864, if2, 
pkttype=PACKET_OUTGOING, addr(6)={1, 0002a5ac9243}, [20]) = 1462
ioctl(3, SIOCGSTAMP, 0xbf9ea5f8)        = 0
write(2, "Fatal error - exiting immediatel"..., 33Fatal error - exiting 
immediately) = 33

But other than that, before I go flinging code hither and yon, am I 
missing anything glaringly obvious?

I'm running debian testing, on a PIII jobbie.

Tony Lewis




More information about the netflow-tools mailing list