Here is the GDB session including the segmentation fault. The stack trace is
at the end.
# gdb /usr/local/bin/ntop
GNU gdb 4.18 (FreeBSD)
Copyright 1998 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-unknown-freebsd"...Deprecated bfd_read called
at /usr/src/gnu/usr.bin/binutils/gdb/../../../../contrib/gdb/gdb/dbxread.c line
2627 in elfstab_build_psymtabs
Deprecated bfd_read called at
/usr/src/gnu/usr.bin/binutils/gdb/../../../../contrib/gdb/gdb/dbxread.c line
933 in fill_symbuf
(gdb) set args -L --set-pcap-nonblocking -i bge0 -w 3000 -W 0 -a
/var/log/ntop.access.log @/usr/local/etc/ntop/ntop.parms
(gdb) run
Starting program: /usr/local/bin/ntop -L --set-pcap-nonblocking -i bge0 -w 3000
-W 0 -a /var/log/ntop.access.log @/usr/local/etc/ntop/ntop.parms
Processing file /usr/local/etc/ntop/ntop.parms for parameters...
Fri Jan 6 15:05:40 2006 NOTE: Interface merge enabled by default
Fri Jan 6 15:05:40 2006 Initializing gdbm databases
WARNING: --set-pcap-nonblocking requested
Program received signal SIGSEGV, Segmentation fault.
0x295eb7d1 in rrd_graph (argc=65, argv=0xbfaa7c9c, prdata=0x29b62724,
xsize=0xbfa9a9c8, ysize=0xbfa9a9cc) at rrd_graph.c:2862
2862 }
(gdb) list
2857 output[outp++] = input[inp];
2858 }
2859 }
2860 output[outp] = '\0';
2861 return inp;
2862 }
2863
2864 int
2865 rrd_graph(int argc, char **argv, char ***prdata, int *xsize, int *ysize)
2866 {
(gdb) info threads
10 process 78427, thread 10 0x2993b653 in _thread_kern_sched () from
/usr/lib/libc_r.so.4
9 process 78427, thread 9 0x2993b653 in _thread_kern_sched () from
/usr/lib/libc_r.so.4
8 process 78427, thread 8 0x2993b653 in _thread_kern_sched () from
/usr/lib/libc_r.so.4
7 process 78427, thread 7 0x2993b653 in _thread_kern_sched () from
/usr/lib/libc_r.so.4
6 process 78427, thread 6 0x2993b653 in _thread_kern_sched () from
/usr/lib/libc_r.so.4
5 process 78427, thread 5 0x2993b653 in _thread_kern_sched () from
/usr/lib/libc_r.so.4
4 process 78427, thread 4 0x2993b653 in _thread_kern_sched () from
/usr/lib/libc_r.so.4
3 process 78427, thread 3 0x2993b653 in _thread_kern_sched () from
/usr/lib/libc_r.so.4
2 process 78427, thread 2 0x2993b653 in _thread_kern_sched () from
/usr/lib/libc_r.so.4
* 1 process 78427, thread 1 0x295eb7d1 in rrd_graph (argc=65, argv=0xbfaa7c9c,
prdata=0x29b62724, xsize=0xbfa9a9c8, ysize=0xbfa9a9cc)
at rrd_graph.c:2862
(gdb) info stack
#0 0x295eb7d1 in rrd_graph (argc=65, argv=0xbfaa7c9c, prdata=0x29b62724,
xsize=0xbfa9a9c8, ysize=0xbfa9a9cc) at rrd_graph.c:2862
#1 0x29b537de in graphSummary (rrdPath=0xbfaa863c "interfaces/bge0/",
rrdName=0xbfaa85fc "", graphId=4, startTime=0xbfaa851c "now-12h",
endTime=0xbfaa84fc "now", rrdPrefix=0xbfaa84dc "") at rrdPlugin.c:963
#2 0x29b5779b in handleRRDHTTPrequest (url=0xbfaa9aef "action") at
rrdPlugin.c:2524
#3 0x280e60f8 in handlePluginHTTPRequest (url=0xbfaa9ae5 "rrdPlugin?action")
at webInterface.c:9110
#4 0x280a3217 in returnHTTPPage (pageName=0xbfaa9add
"plugins/rrdPlugin?action", postLen=-1, from=0xbfaa9ce4,
httpRequestedAt=0xbfaa9584,
usedFork=0xbfaa9578,
agent=0xbfaa999c "Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.7.12)
Gecko/20050922 Fedora/1.0.7-1.1.fc4 Firefox/1.0.7",
referer=0xbfaa989c "http://localhost:3000/trafficStats.html",
requestedLanguage=0xbfaa978c, numLang=0, isPostMethod=0) at http.c:2202
#5 0x280a6fab in handleHTTPrequest (from={hostFamily = 28, addr =
{_hostIp4Address = {s_addr = 0}, _hostIp6Address = {__u6_addr = {
__u6_addr8 =
"\000\000\000\000\000\000\000\000\uffff\237\uffff\uffff\f[\016(", __u6_addr16 =
{0, 0, 0, 0, 40892, 49066, 23308, 10254},
__u6_addr32 = {0, 0, 3215630268, 672029452}}}}}) at http.c:3610
#6 0x280e5eb9 in handleSingleWebConnection (fdmask=0xbfaa9f3c) at
webInterface.c:9062
#7 0x280e5b0c in handleWebConnections (notUsed=0x0) at webInterface.c:8914
#8 0x298ff240 in _thread_start () from /usr/lib/libc_r.so.4
#9 0x0 in ?? ()
(gdb)
_______________________________________________
Ntop mailing list
[email protected]
http://listgateway.unipi.it/mailman/listinfo/ntop