Brendon Colby | 4 Mar 2005 21:30

Re: Segmentation fault on Debian 3.0r4

I have 3.1 and there is nothing in the LINUXredhat8.0 script except:

#!/bin/sh

echo "        Setting RedHat 8.0 specific flag values"

After searching I found a post you made about this and added the CPP 
flag (the stuff you talk about is in CVS but not in 3.1 yet apparently) 
to LINUXdebian.

Apparently configure picked up that flag:

Host System Type        : i686-pc-linux-gnu
Preprocessor (cppflags) :  -DLINUX -DFORPRENPTL -I/usr/local/include
Compiler (cflags)       : gcc -g -O2 -I/usr/local/include -Wshadow 
-Wpointer-arith -Wmissing-prototypes -Wmissing-declarations 
-Wnested-externs  -fPIC
Defines                 : -DHAVE_CONFIG_H
Loader (ldflags)        :  -L/usr/local/lib
Include path            :
System Libs             : -lpthread -lresolv -lnsl -lc -lssl -lcrypto 
-lpcap -lgdbm -lgd -lpng -lz
MultiThread mode        : enabled
Locale                  : /usr/lib/locale

make; make install

chown -R ntop.ntop /usr/local/ntop/share/ntop

/usr/local/ntop/bin/ntop -u ntop -A
(Continue reading)

Burton Strauss | 4 Mar 2005 22:24

RE: Segmentation fault on Debian 3.0r4

Need the output  <at>  the time of the segv...

(gdb) bt full

plus judicious show threads and show stack ... That way you see where the
failure really occurred...

-----Burton

-----Original Message-----
From: ntop-dev-bounces <at> unipi.it [mailto:ntop-dev-bounces <at> unipi.it] On Behalf
Of Brendon Colby
Sent: Friday, March 04, 2005 2:30 PM
To: ntop-dev <at> Unipi.IT
Subject: Re: [Ntop-dev] Segmentation fault on Debian 3.0r4

I have 3.1 and there is nothing in the LINUXredhat8.0 script except:

#!/bin/sh

echo "        Setting RedHat 8.0 specific flag values"

After searching I found a post you made about this and added the CPP flag
(the stuff you talk about is in CVS but not in 3.1 yet apparently) to
LINUXdebian.

Apparently configure picked up that flag:

Host System Type        : i686-pc-linux-gnu
Preprocessor (cppflags) :  -DLINUX -DFORPRENPTL -I/usr/local/include
(Continue reading)

Brendon Colby | 4 Mar 2005 23:36

Re: Segmentation fault on Debian 3.0r4

(gdb) bt full
#0  0x412151b7 in memcpy () from /lib/libc.so.6
No symbol table info available.
#1  0x415fce26 in dissectFlow (buffer=0xbe3ff264 "", bufferLen=308, 
deviceId=3)
     at netflowPlugin.c:863
         cursor = (FlowSetV9 *) 0xbe3ff264
         found = 0 '\0'
         len = 18281
         fieldId = 14804
         foundRecord = 1 '\001'
         done = 0 '\0'
         displ = 294
         template = {templateFlowset = 55296, flowsetLen = 62405,
   templateId = 34048, fieldCount = 16}
         i = 1
         the5Record = {flowHeader = {version = 2304, count = 1536,
     sysUptime = 3557991992, unix_secs = 81471554, unix_nsecs = 1165754368,
     flow_sequence = 0, engine_type = 1 '\001', engine_id = 0 '\0'},
   flowRecord = {{srcaddr = 3168183608, dstaddr = 1289135416,
       nexthop = 2952790016, input = 0, output = 512, dPkts = 285215488,
       dOctets = 130830808, First = 2021675480, Last = 2097479686,
       srcport = 30724, dstport = 0, pad1 = 216 'Ø', tcp_flags = 81 'Q',
       prot = 128 '\200', tos = 120 'x', dst_as = 0, src_as = 24,
       dst_mask = 0 '\0', src_mask = 0 '\0', pad2 = 14336}, {
       srcaddr = 952949157, dstaddr = 13425061, nexthop = 5898752, input 
= 0,
       output = 1, dPkts = 3624992779, dOctets = 1057934417, First = 
286754171,
       Last = 331617192, srcport = 196, dstport = 16128, pad1 = 123 '{',
(Continue reading)

Burton Strauss | 5 Mar 2005 00:11

RE: Segmentation fault on Debian 3.0r4

That's this line...

            memcpy(cursor->fields, &buffer[displ+sizeof(V9Template)],
cursor->templateInfo.flowsetLen-sizeof(V9Template));

In dissectFlow()

Given the line before is the malloc(), it's got to be something like a
messed up or mishandled v9 record.

Luca?

-----Burton

-----Original Message-----
From: ntop-dev-bounces <at> unipi.it [mailto:ntop-dev-bounces <at> unipi.it] On Behalf
Of Brendon Colby
Sent: Friday, March 04, 2005 4:36 PM
To: ntop-dev <at> Unipi.IT
Subject: Re: [Ntop-dev] Segmentation fault on Debian 3.0r4

(gdb) bt full
#0  0x412151b7 in memcpy () from /lib/libc.so.6 No symbol table info
available.
#1  0x415fce26 in dissectFlow (buffer=0xbe3ff264 "", bufferLen=308,
deviceId=3)
     at netflowPlugin.c:863
         cursor = (FlowSetV9 *) 0xbe3ff264
         found = 0 '\0'
         len = 18281
(Continue reading)


Gmane