List won't help - the segfault is in gdbm code

#0  0x404c4813 in gdbm_store () from /usr/lib/libgdbm.so.2


Need to see what's going on up one level:

#1  0x400d30e3 in handleLsPacket (_deviceId=0xbebff6d4 "", h=0xbebff9ec,
    p=0x82347f8 "") at lastSeenPlugin.c:88

Either

(gdb) frame 1
(gdb) list
(gdb) print <this&that>

or

(gdb) bt full

-----Burton


-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of
Massimo Carnevali
Sent: Friday, July 05, 2002 4:51 AM
To: [EMAIL PROTECTED]
Subject: [Ntop] Ntop dies on Segmentation Fault


Hi,
my fresh new installation keeps on working for about 15 minutes then dies
on "Segmentation Fault".
This is my environment:
Command line: ntop -P /var/ntop -u ntop  -d -r 10 -E -L -S 1
Version: 2.0.99.RC2
Linux Version: Red Hat 7.2 Kernel 2.4.9-31 on i686
gcc: 2.96
glibc: 2.2.4-24
Compilation and build: left all defaults
gdb output:
++++++++++++++++++++++++++++++++++++++++++++++++++
[root@morgana ntop]# gdb /usr/local/bin/ntop
GNU gdb Red Hat Linux (5.1-1)
Copyright 2001 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-redhat-linux"...
(gdb) set args -P /var/ntop -u root -r 10 -E -L -S 1 -K -t 5
(gdb) run
Starting program: /usr/local/bin/ntop -P /var/ntop -u root -r 10 -E -L -S 1
-K -t 5
[New Thread 1024 (LWP 27856)]
Wait please: ntop is coming up...
SSL is present but https is disabled: use -W <https port> for enabling it

[New Thread 2049 (LWP 28853)]
[New Thread 1026 (LWP 28854)]
[New Thread 2051 (LWP 28856)]
[New Thread 3076 (LWP 28857)]
[New Thread 4101 (LWP 28858)]
[New Thread 5126 (LWP 28859)]
[New Thread 6151 (LWP 28860)]
[New Thread 7176 (LWP 28861)]
****************************************************************************
****************************************************************************
****************************************************************************
****************************************************************************
****************************************************************************
****************************************************************************
****************************************************************************
****************************************************************************
****************************************************************************
******************************************
Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread 7176 (LWP 28861)]
0x404c4813 in gdbm_store () from /usr/lib/libgdbm.so.2
(gdb) list
706     /* ************************************ */
707
708     /* That's the meat */
709     #ifdef WIN32
710     int ntop_main(int argc, char *argv[]) {
711     #else
712     int main(int argc, char *argv[]) {
713     #endif
714       int i, userSpecified;
715       char ifStr[196] = {0};
(gdb) info stack
#0  0x404c4813 in gdbm_store () from /usr/lib/libgdbm.so.2
#1  0x400d30e3 in handleLsPacket (_deviceId=0xbebff6d4 "", h=0xbebff9ec,
    p=0x82347f8 "") at lastSeenPlugin.c:88
#2  0x4027d2e7 in flowsProcess (h=0xbebff9ec, p=0x82347f8 "", deviceId=0)
    at pbuf.c:1476
#3  0x4027f2ae in processPacket (_deviceId=0x0, h=0xbebff9ec, p=0x82347f8
"")
    at pbuf.c:2330
#4  0x404a8ba3 in pcap_read_packet (handle=0x8234658,
    callback=0x4027d5c4 <processPacket>, userdata=0x0) at
./pcap-linux.c:446
#5  0x404a9c4a in pcap_dispatch (p=0x8234658, cnt=1,
    callback=0x4027d5c4 <processPacket>, user=0x0) at ./pcap.c:62
#6  0x40278064 in pcapDispatch (_i=0x0) at ntop.c:107
#7  0x40220f87 in pthread_start_thread (arg=0xbebffc00) at manager.c:284
++++++++++++++++++++++++++++++++++++++++++++++++++
syslog output:
++++++++++++++++++++++++++++++++++++++++++++++++++
Jul  2 11:29:50 morgana ntop[27856]: Initializing IP services...
Jul  2 11:29:50 morgana ntop[27856]: Initializing GDBM...
Jul  2 11:29:50 morgana ntop[27856]: Initializing network devices...
Jul  2 11:29:50 morgana ntop[27856]: ntop v.2.0.99 MT (SSL)
[i686-pc-linux-gnu] (07/02/02 10:25:21 AM build)
Jul  2 11:29:50 morgana ntop[27856]: Listening on [eth0]
Jul  2 11:29:50 morgana ntop[27856]: Copyright 1998-2002 by Luca Deri
<[EMAIL PROTECTED]>
Jul  2 11:29:50 morgana ntop[27856]: Get the freshest ntop from
http://www.ntop.org/
Jul  2 11:29:50 morgana ntop[27856]: Initializing...
Jul  2 11:29:50 morgana ntop[27856]: Loading plugins (if any)...
Jul  2 11:29:50 morgana ntop[27856]: Searching plugins in
/usr/local/lib/ntop/plugins
Jul  2 11:29:50 morgana kernel: eth0: Setting promiscuous mode.
Jul  2 11:29:50 morgana kernel: device eth0 entered promiscuous mode
Jul  2 11:29:52 morgana ntop[27856]: Welcome to icmpWatchPlugin. (C) 1999
by Luca Deri.
Jul  2 11:29:53 morgana ntop[27856]: Welcome to LastSeenWatchPlugin. (C)
1999 by Andrea Marangoni.
Jul  2 11:29:54 morgana ntop[27856]: Welcome to NetFlow. (C) 2002 by Luca
Deri.
Jul  2 11:29:55 morgana ntop[27856]: Welcome to nfsWatchPlugin. (C) 1999 by
Luca Deri.
Jul  2 11:29:56 morgana ntop[27856]: Welcome to PDAPlugin. (C) 2001-2002 by
L.Deri and W.Brock
Jul  2 11:29:57 morgana ntop[27856]: Welcome to sFlowPlugin. (C) 2002 by
Luca Deri.
Jul  2 11:29:57 morgana ntop[27856]: Resetting traffic statistics...
Jul  2 11:29:58 morgana ntop[28854]: Wait please: reading lsof
information...
Jul  2 11:29:58 morgana ntop[27856]: Started thread (1026) for lsof
support.
Jul  2 11:29:58 morgana ntop[27856]: Started thread (2051) for network
packet analyser.
Jul  2 11:29:58 morgana ntop[27856]: Started thread (3076) for idle hosts
detection.
Jul  2 11:29:58 morgana ntop[27856]: Started thread (4101) for DNS address
resolution.
Jul  2 11:29:59 morgana ntop[28854]: readLsofInfo completed (1 sec).
Jul  2 11:29:59 morgana ntop[27856]: Started thread (5126) for address
purge.
Jul  2 11:29:59 morgana ntop[27856]: Initializing plugins (if any)...
Jul  2 11:29:59 morgana ntop[27856]: Waiting for HTTP connections on port
3000...
Jul  2 11:29:59 morgana ntop[27856]: Started thread (6151) for web server.
Jul  2 11:29:59 morgana ntop[27856]: Sniffying...
Jul  2 11:29:59 morgana ntop[28861]: Extending hash size
[newSize=512][deviceId=0]
Jul  2 11:29:59 morgana ntop[27856]: Started thread (7176) for network
packet sniffing on eth0.
Jul  2 11:30:47 morgana ntop[28861]: Extending hash size
[newSize=1024][deviceId=0]
Jul  2 11:31:00 morgana ntop[28854]: Wait please: reading lsof
information...
Jul  2 11:31:01 morgana ntop[28854]: readLsofInfo completed (1 sec).
Jul  2 11:32:01 morgana ntop[28854]: Wait please: reading lsof
information...
Jul  2 11:32:01 morgana ntop[28854]: readLsofInfo completed (0 sec).
Jul  2 11:32:47 morgana ntop[28860]: Thanks for using LsWatch...
Jul  2 11:32:47 morgana ntop[28860]: Done.
++++++++++++++++++++++++++++++++++++++++++++++++++
any help/hints/suggestions ?

Thanks Massimo Carnevali

Massimo Carnevali - IBM Global Services
[EMAIL PROTECTED]

_______________________________________________
Ntop mailing list
[EMAIL PROTECTED]
http://lists.ntop.org/mailman/listinfo/ntop

_______________________________________________
Ntop mailing list
[EMAIL PROTECTED]
http://lists.ntop.org/mailman/listinfo/ntop

Reply via email to