Hello, could you get a core dump of the segfault? It could be very helpful. If you: . download the SVN version; . compile it with -g and without the optimization -O2 option; . configure command execution limits to generate a core dump: ulimit -c unlimited a core dump should be generated as soon as ntopng segfaults.
Thank you, Arianna On 10/01/2015 04:24, Chris Bennett wrote:
I started using elasticsearch dump-flows late last year and it was working well with ntopng-1.2.2-8618. I've upgraded to the latest version from the yum repo (1.2.2-8790) and am now getting a segmentation fault. [root@gw1-co6 sbin]# /usr/bin/ntopng -G=/var/tmp/ntopng.gid --interface eth7.19 --local-networks "192.168.0.0/16,172.16.0.0/12,10.0.0.0/8,2001:XXXX:XXXX:XXXX::/56" --dns-mode 1 --dump-flows 'es;flows;ntopng;http://el01.mydom:9200/_bulk;' --packet-filter 'ip and not (host 10.11.0.1 and port 161)' --ndpi-protocols /root/protos.txt ; 10/Jan/2015 13:50:48 [Prefs.cpp:564] Using ElasticSearch for data dump [flows][ntopng][http://el01.mydom:9200/_bulk] 10/Jan/2015 13:50:48 [Ntop.cpp:692] Setting local networks to 192.168.0.0/16,172.16.0.0/12,10.0.0.0/8,2001:XXXX:XXXX:XXXX::/56 10/Jan/2015 13:50:48 [Redis.cpp:84] Successfully connected to Redis 127.0.0.1:6379 10/Jan/2015 13:50:48 [PcapInterface.cpp:81] Reading packets from interface eth7.19... 10/Jan/2015 13:50:48 [PcapInterface.cpp:217] Packet capture filter set to "ip and not (host 10.11.0.1 and port 161)" 10/Jan/2015 13:50:48 [Ntop.cpp:816] Registered interface eth7.19 [id: 0] 10/Jan/2015 13:50:48 [Utils.cpp:260] User changed to nobody 10/Jan/2015 13:50:48 [main.cpp:191] ERROR: Unable to store PID in file =/var/tmp/ntopng.gid 10/Jan/2015 13:50:48 [HTTPserver.cpp:387] HTTPS Disabled: missing SSL certificate /usr/share/ntopng/httpdocs/ssl/ntopng-cert.pem 10/Jan/2015 13:50:48 [HTTPserver.cpp:389] Please read https://svn.ntop.org/svn/ntop/trunk/ntopng/README.SSL if you want to enable SSL. 10/Jan/2015 13:50:48 [HTTPserver.cpp:434] Web server dirs [/usr/share/ntopng/httpdocs][/usr/share/ntopng/scripts] 10/Jan/2015 13:50:48 [HTTPserver.cpp:437] HTTP server listening on port 3000 10/Jan/2015 13:50:48 [main.cpp:236] Working directory: /var/tmp/ntopng 10/Jan/2015 13:50:48 [main.cpp:238] Scripts/HTML pages directory: /usr/share/ntopng 10/Jan/2015 13:50:48 [Ntop.cpp:218] Welcome to ntopng x86_64 v.1.2.2 (r1.2.2) - (C) 1998-14 ntop.org 10/Jan/2015 13:50:48 [PeriodicActivities.cpp:53] Started periodic activities loop... 10/Jan/2015 13:50:48 [RuntimePrefs.cpp:32] Dumping alerts into syslog 10/Jan/2015 13:50:48 [NetworkInterface.cpp:881] Started packet polling on interface eth7.19 [id: 7]... Segmentation fault dmesg contains: ntopng[7832]: segfault at 8 ip 00007f4616aca885 sp 00007fffffd42e00 error 4 in libc-2.12.so[7f4616a27000+18a000] Running with --verbose, the last few lines show: 10/Jan/2015 13:53:19 [Lua.cpp:2858] ntop_lua_http_print() called 10/Jan/2015 13:53:19 [Lua.cpp:2858] ntop_lua_http_print() called 10/Jan/2015 13:53:19 [Lua.cpp:2858] ntop_lua_http_print() called 10/Jan/2015 13:53:19 [Lua.cpp:2858] ntop_lua_http_print() called 10/Jan/2015 13:53:19 [Lua.cpp:2858] ntop_lua_http_print() called 10/Jan/2015 13:53:19 [Lua.cpp:2858] ntop_lua_http_print() called 10/Jan/2015 13:53:19 [Lua.cpp:2858] ntop_lua_http_print() called 10/Jan/2015 13:53:19 [Lua.cpp:2858] ntop_lua_http_print() called 10/Jan/2015 13:53:19 [Lua.cpp:2858] ntop_lua_http_print() called 10/Jan/2015 13:53:19 [PeriodicActivities.cpp:91] Starting script /usr/share/ntopng/scripts/callbacks/second.lua 10/Jan/2015 13:53:19 [Lua.cpp:1895] ntop_get_dirs() called 10/Jan/2015 13:53:19 [Lua.cpp:1887] ntop_is_pro() called Segmentation fault Any suggestions for debugging this? Regards, Chris _______________________________________________ Ntop mailing list [email protected] http://listgateway.unipi.it/mailman/listinfo/ntop
-- /* * Arianna Avanzini * [email protected] * http://ava.webhop.me */ _______________________________________________ Ntop mailing list [email protected] http://listgateway.unipi.it/mailman/listinfo/ntop
