Hello Luca,

I got a crash so I ran under gdb and got this one captured.
This is on a very busy corp network.

$ sudo gdb ./ntopng
GNU gdb (GDB) Red Hat Enterprise Linux (7.2-50.el6)
Copyright (C) 2010 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.  Type "show copying"
and "show warranty" for details.
This GDB was configured as "i686-redhat-linux-gnu".
For bug reporting instructions, please see:
<http://www.gnu.org/software/gdb/bugs/>...
Reading symbols from /var/lib/pgsql/ntopng/ntopng...done.
(gdb) r -s -i eth3 -d./data -w 3000 -n 0 -m 172.16.0.0/16,10.254.0.0/16
Starting program: /var/lib/pgsql/ntopng/ntopng -s -i eth3 -d./data -w 3000 -n 0 
-m 172.16.0.0/16,10.254.0.0/16
[Thread debugging using libthread_db enabled]
29/May/2013 10:33:52 [Ntop.cpp:33] Welcome to ntopng i686 v.0.1 (r6320) - (C) 
1998-13 ntop.org
29/May/2013 10:33:52 [Redis.cpp:39] Succesfully connected to Redis 32 bit 
v.2.6.13
29/May/2013 10:33:52 [PF_RINGInterface.cpp:41] Reading packets from interface 
eth3...
[New Thread 0xb77e6b70 (LWP 24038)]
[New Thread 0xb6de5b70 (LWP 24039)]
29/May/2013 10:33:52 [HTTPserver.cpp:217] HTTP server listening on port 3000 
[./httpdocs][./scripts/lua]
29/May/2013 10:33:52 [main.cpp:212] Using RRD version 1.4.7
29/May/2013 10:33:52 [PeriodicActivities.cpp:51] Started periodic activities 
loop...
[New Thread 0xb63e4b70 (LWP 24040)]
[New Thread 0xb59e3b70 (LWP 24041)]
[New Thread 0xb4dffb70 (LWP 24042)]
[New Thread 0xb43feb70 (LWP 24043)]
[New Thread 0xb39fdb70 (LWP 24044)]
[New Thread 0xb2ffcb70 (LWP 24045)]
29/May/2013 10:33:52 [NetworkInterface.cpp:381] Started packet polling...
29/May/2013 10:34:07 [NetworkInterface.cpp:687] WARNING: findHostByMac() NOT 
IMPLEMENTED
29/May/2013 10:34:37 [NetworkInterface.cpp:370] Purged 32727/41 idle flows
29/May/2013 10:34:39 [NetworkInterface.cpp:370] Purged 1/19097 idle flows
29/May/2013 10:35:07 [NetworkInterface.cpp:374] Purged 19/153 idle hosts
29/May/2013 10:35:13 [NetworkInterface.cpp:370] Purged 19054/13714 idle flows
29/May/2013 10:35:13 [NetworkInterface.cpp:374] Purged 12/145 idle hosts
29/May/2013 10:35:17 [NetworkInterface.cpp:370] Purged 13671/19097 idle flows
29/May/2013 10:35:17 [NetworkInterface.cpp:374] Purged 12/150 idle hosts
29/May/2013 10:35:21 [NetworkInterface.cpp:370] Purged 1/32767 idle flows
29/May/2013 10:35:21 [NetworkInterface.cpp:374] Purged 5/151 idle hosts
29/May/2013 10:35:27 [NetworkInterface.cpp:374] Purged 9/160 idle hosts
29/May/2013 10:35:35 [NetworkInterface.cpp:370] Purged 2/32766 idle flows
29/May/2013 10:35:35 [NetworkInterface.cpp:374] Purged 5/162 idle hosts
29/May/2013 10:35:40 [NetworkInterface.cpp:374] Purged 10/158 idle hosts
29/May/2013 10:35:42 [NetworkInterface.cpp:196] WARNING: IPv4 fragments are not 
handled yet
29/May/2013 10:35:44 [NetworkInterface.cpp:374] Purged 3/166 idle hosts
29/May/2013 10:35:50 [NetworkInterface.cpp:370] Purged 19052/13716 idle flows
29/May/2013 10:35:50 [NetworkInterface.cpp:374] Purged 9/164 idle hosts
29/May/2013 10:35:55 [NetworkInterface.cpp:370] Purged 13670/19098 idle flows
29/May/2013 10:35:55 [NetworkInterface.cpp:374] Purged 11/157 idle hosts
29/May/2013 10:36:00 [NetworkInterface.cpp:370] Purged 2/32766 idle flows
29/May/2013 10:36:00 [NetworkInterface.cpp:374] Purged 9/159 idle hosts
29/May/2013 10:36:05 [NetworkInterface.cpp:374] Purged 7/160 idle hosts
29/May/2013 10:36:10 [NetworkInterface.cpp:370] Purged 3/32765 idle flows
29/May/2013 10:36:10 [NetworkInterface.cpp:374] Purged 3/164 idle hosts
29/May/2013 10:36:16 [NetworkInterface.cpp:370] Purged 1/32767 idle flows
29/May/2013 10:36:16 [NetworkInterface.cpp:374] Purged 2/170 idle hosts
29/May/2013 10:36:20 [NetworkInterface.cpp:196] WARNING: IPv4 fragments are not 
handled yet
29/May/2013 10:36:20 [NetworkInterface.cpp:196] WARNING: IPv4 fragments are not 
handled yet
29/May/2013 10:36:21 [NetworkInterface.cpp:370] Purged 1/32767 idle flows
29/May/2013 10:36:21 [NetworkInterface.cpp:374] Purged 14/164 idle hosts
29/May/2013 10:36:24 [NetworkInterface.cpp:370] Purged 19051/13717 idle flows
29/May/2013 10:36:24 [NetworkInterface.cpp:374] Purged 14/153 idle hosts
29/May/2013 10:36:28 [NetworkInterface.cpp:370] Purged 13668/15769 idle flows
29/May/2013 10:36:28 [NetworkInterface.cpp:374] Purged 17/140 idle hosts
29/May/2013 10:36:33 [NetworkInterface.cpp:370] Purged 4/31375 idle flows
29/May/2013 10:36:33 [NetworkInterface.cpp:374] Purged 7/136 idle hosts
29/May/2013 10:36:38 [NetworkInterface.cpp:374] Purged 6/137 idle hosts
29/May/2013 10:36:43 [NetworkInterface.cpp:370] Purged 3/32765 idle flows
29/May/2013 10:36:43 [NetworkInterface.cpp:374] Purged 12/130 idle hosts
29/May/2013 10:36:49 [NetworkInterface.cpp:370] Purged 1/32767 idle flows
29/May/2013 10:36:49 [NetworkInterface.cpp:374] Purged 6/131 idle hosts
29/May/2013 10:36:57 [NetworkInterface.cpp:370] Purged 2/32766 idle flows
29/May/2013 10:36:57 [NetworkInterface.cpp:374] Purged 3/139 idle hosts

Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread 0xb77e6b70 (LWP 24038)]
0x00680376 in __strlen_sse2 () from /lib/libc.so.6
Missing separate debuginfos, use: debuginfo-install 
glibc-2.12-1.47.el6_2.12.i686 libgcc-4.4.7-3.el6.i686 
libpcap-1.0.0-6.20091201git117cb5.el6.i686 libstdc++-4.4.7-3.el6.i686 
libxml2-2.7.6-12.el6_4.1.i686 zlib-1.2.3-27.el6.i686
(gdb) bt
#0  0x00680376 in __strlen_sse2 () from /lib/libc.so.6
#1  0x080b0368 in lua_pushstring (L=0xb4fc31c0, str=0x736f4800 <Address 0x736f4800 
out of bounds>) at lj_api.c:599
#2  0x0805ac80 in lua_push_str_table_entry (L=0xb4fc31c0, key=0x816aea7 "city",
    value=0x736f4800 <Address 0x736f4800 out of bounds>) at Lua.cpp:483
#3  0x080570ca in Host::lua (this=0xadbffee0, vm=0xb4fc31c0, host_details=true, 
returnHost=false) at Host.cpp:126
#4  0x0805de35 in hosts_get_list_details (h=0xadbffee0, user_data=0xb4fc31c0) 
at NetworkInterface.cpp:467
#5  0x08056364 in GenericHash::walk (this=0x824e290, walker=0x805de07 
<hosts_get_list_details(GenericHashEntry*, void*)>,
    user_data=0xb4fc31c0) at GenericHash.cpp:126
#6  0x0805de8a in NetworkInterface::getActiveHostsList (this=0x81961d8, 
vm=0xb4fc31c0, host_details=true)
    at NetworkInterface.cpp:475
#7  0x08059a5a in ntop_get_interface_hosts_info (vm=0xb4fc31c0) at Lua.cpp:156
#8  0x080cc32f in lj_BC_FUNCC ()
#9  0x080b207c in lua_call (L=0xb4fc31c0, nargs=0, nresults=-1) at lj_api.c:1034
#10 0x08116a2b in lj_cf_dofile (L=0xb4fc31c0) at lib_base.c:435
#11 0x080cc32f in lj_BC_FUNCC ()
#12 0x080b2114 in lua_pcall (L=0xb4fc31c0, nargs=0, nresults=-1, errfunc=0) at 
lj_api.c:1052
#13 0x0805bac5 in Lua::handle_script_request (this=0xb1000e98, script_path=0xb77e5f21 
"./scripts/lua/flows_stats.lua",
    cls=0x816b030, connection=0xb10006e0, url=0xb7ff57ac "/flows_stats.lua", 
method=0xb7ff57a8 "GET",
    version=0xb7ff57bd "HTTP/1.1", upload_data=0x0, 
upload_data_size=0xb77e60dc, ptr=0xb10006fc) at Lua.cpp:923
#14 0x08058114 in handle_http_request (cls=0x816b030, connection=0xb10006e0, 
url=0xb7ff57ac "/flows_stats.lua",
    method=0xb7ff57a8 "GET", version=0xb7ff57bd "HTTP/1.1", upload_data=0x0, 
upload_data_size=0xb77e60dc, ptr=0xb10006fc)
    at HTTPserver.cpp:148
#15 0x080a2e20 in call_connection_handler (connection=0xb10006e0) at 
connection.c:1391
#16 0x080a3da7 in MHD_connection_handle_idle (connection=0xb10006e0) at 
connection.c:2304
#17 0x080a6c66 in MHD_select (daemon=<value optimized out>, may_block=1) at 
daemon.c:1441
#18 0x080a6e34 in MHD_select_thread (cls=0x83286c0) at daemon.c:1685
#19 0x007cda09 in start_thread () from /lib/libpthread.so.0
#20 0x006df43e in clone () from /lib/libc.so.6

--
Stephen Clark
*NetWolves*
Director of Technology
Phone: 813-579-3200
Fax: 813-882-0209
Email: [email protected]
http://www.netwolves.com
_______________________________________________
Ntop-dev mailing list
[email protected]
http://listgateway.unipi.it/mailman/listinfo/ntop-dev

Reply via email to