so here some backtrace of the problem

*******************
crimson:/tmp/ntop/ntop-2.1.56/ntop# gdb /usr/local/bin/ntop
gdb: Symbol `emacs_ctlx_keymap' has different size in shared object, consider re-linking
GNU gdb 2002-04-01-cvs
Copyright 2002 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you are
welcome to change it and/or distribute copies of it under certain conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB. Type "show warranty" for details.
This GDB was configured as "i386-linux"...
(gdb) run -L -u ntop -w 192.168.2.1:3000 -p /etc/ntop/protocol.list -P /var/lib/ntop -a /var/lib/ntop -i eth1,ipsec0,ipsec1,ppp0,tun4,tun32 -t 0 -O /var/log/ntop/ -E -M -m 192.168.2.0/24
Starting program: /usr/local/bin/ntop -L -u ntop -w 192.168.2.1:3000 -p /etc/ntop/protocol.list -P /var/lib/ntop -a /var/lib/ntop -i eth1,ipsec0,ipsec1,ppp0,tun4,tun32 -t 0 -O /var/log/ntop/ -E -M -m 192.168.2.0/24
[New Thread 1024 (LWP 21372)]
Wait please: ntop is coming up...
SSL is present but https is disabled: use -W <https port> for enabling it
[New Thread 2049 (LWP 21823)]
[New Thread 1026 (LWP 22770)]
[New Thread 2051 (LWP 28608)]
[New Thread 3076 (LWP 30327)]
[New Thread 4101 (LWP 6267)]
[New Thread 5126 (LWP 28062)]
[New Thread 6151 (LWP 10548)]
[New Thread 7176 (LWP 17089)]
[New Thread 8201 (LWP 31409)]
[New Thread 9226 (LWP 7090)]
[New Thread 10251 (LWP 18423)]
[New Thread 11276 (LWP 21963)]
Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread 9226 (LWP 7090)]
0x0020174a in processIpPkt (bp=0x80697d8 "E", h=0xba7ff990, length=47, ether_src=0x0, ether_dst=0x0, actualDeviceId=3, vlanId=-1)
at pbuf.c:659
659 if((!myGlobals.dontTrustMACaddr)
(gdb) where
#0 0x0020174a in processIpPkt (bp=0x80697d8 "E", h=0xba7ff990, length=47, ether_src=0x0, ether_dst=0x0, actualDeviceId=3,
vlanId=-1) at pbuf.c:659
#1 0x002049d1 in processPacket (_deviceId=0x3 <Address 0x3 out of bounds>, h=0xba7ff990, p=0x80697d8 "E") at pbuf.c:1869
#2 0x007f2d63 in pcap_read () from /usr/lib/libpcap.so.0
#3 0x007f2b80 in pcap_read () from /usr/lib/libpcap.so.0
#4 0x007f3c5f in pcap_dispatch () from /usr/lib/libpcap.so.0
#5 0x001fdf16 in pcapDispatch (_i=0x3) at ntop.c:111
#6 0x004f2fa5 in pthread_start_thread () from /lib/libpthread.so.0
#7 0x004f2fed in pthread_start_thread_event () from /lib/libpthread.so.0
*******************
with CVS
*******************
(gdb) run -L -u ntop -w 192.168.2.1:3000 -p /etc/ntop/protocol.list -P /var/lib/ntop -a /var/lib/ntop -i eth1,ipsec0,ipsec1,ppp0,tun4,tun32 -t 0 -O /var/log/ntop/ -E -m 192.168.2.0/24 --ignore-sigpipe
The program being debugged has been started already.
Start it from the beginning? (y or n) y

Starting program: /opt/bin/ntop -L -u ntop -w 192.168.2.1:3000 -p /etc/ntop/protocol.list -P /var/lib/ntop -a /var/lib/ntop -i eth1,ipsec0,ipsec1,ppp0,tun4,tun32 -t 0 -O /var/log/ntop/ -E -m 192.168.2.0/24 --ignore-sigpipe
[New Thread 1024 (LWP 26442)]
Wait please: ntop is coming up...
[New Thread 2049 (LWP 17516)]
[New Thread 1026 (LWP 19627)]
[New Thread 2051 (LWP 32192)]
[New Thread 3076 (LWP 22803)]
[New Thread 4101 (LWP 20987)]
[New Thread 5126 (LWP 25907)]
[New Thread 6151 (LWP 1605)]
[New Thread 7176 (LWP 19367)]
[New Thread 8201 (LWP 10021)]
[New Thread 9226 (LWP 14820)]
[New Thread 10251 (LWP 8204)]

Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread 8201 (LWP 10021)]
0x00287fad in processIpPkt (bp=0x80685f8 "E", h=0xbddff990, length=47, ether_src=0x0, ether_dst=0x0, actualDeviceId=3, vlanId=-1)
at pbuf.c:682
682 if((!myGlobals.dontTrustMACaddr)
(gdb) where
#0 0x00287fad in processIpPkt (bp=0x80685f8 "E", h=0xbddff990, length=47, ether_src=0x0, ether_dst=0x0, actualDeviceId=3,
vlanId=-1) at pbuf.c:682
#1 0x0028b601 in processPacket (_deviceId=0x3 <Address 0x3 out of bounds>, h=0xbddff990, p=0x80685f8 "E") at pbuf.c:1972
#2 0x006c8d63 in pcap_read () from /usr/lib/libpcap.so.0
#3 0x006c8b80 in pcap_read () from /usr/lib/libpcap.so.0
#4 0x006c9c5f in pcap_dispatch () from /usr/lib/libpcap.so.0
#5 0x002847b6 in pcapDispatch (_i=0x3) at ntop.c:111
#6 0x004b6fa5 in pthread_start_thread () from /lib/libpthread.so.0
#7 0x004b6fed in pthread_start_thread_event () from /lib/libpthread.so.0
(gdb) print myGlobals.dontTrustMACaddr
$1 = 0

i test this with ntop 2.0-debian, 2.1.3, 2.1.56 and cvs (from feb 7th)
on the following system: debian 3woody - i386 / autoconf 2.13, automake 1.6.3, gcc 2.95.4 (all deb)

with old (2.0) release, all ntop process quit but for cvs/snap/dev, only main/web/? thread quit and i cannot anymore access to ntop with web interface (intop works when available)


Regards

Julien

_______________________________________________
Ntop mailing list
[EMAIL PROTECTED]
http://listgateway.unipi.it/mailman/listinfo/ntop

Reply via email to