I can tell you how to repeat it as I just tested it.

1. Shutdown Redis
2. Restart ntopng, use -l to disable user authentication
3. Click on a host inside ntopng so that you hit a URL using
host_details.lua e.g "
http://nmon.XXX.net/lua/host_details.lua?host=74.125.174.248<http://nmon.magmichq.net/lua/host_details.lua?host=74.125.174.248>
"
4. Segmentation fault


Here's the log in my console window -


root@nmon:~# /etc/init.d/redis-server stop
Stopping redis-server: redis-server.
root@nmon:/opt/ntopng# cd /opt/ntopng/ && ./ntopng -i eth0 -w 80 -m "
172.34.0.1/23,192.168.7.239/24,172.4.0.1/24,172.8.0.1/24,172.36.0.1/24,172.20.0.1/20,172.32.0.1/23,172.17.0.1/23"
-r 127.0.0.1 -U root -d /etc/ntopng/data/ -l
27/Nov/2013 10:17:01 [Ntop.cpp:457] Setting local networks to
172.34.0.1/23,192.168.7.239/24,172.4.0.1/24,172.8.0.1/24,172.36.0.1/24,172.20.0.1/20,172.32.0.1/23,172.17.0.1/23
27/Nov/2013 10:17:01 [PcapInterface.cpp:54] Reading packets from interface
eth0...
27/Nov/2013 10:17:01 [Ntop.cpp:564] Registered interface eth0 [id: 0]
27/Nov/2013 10:17:01 [Utils.cpp:238] User changed to root
27/Nov/2013 10:17:01 [main.cpp:147] PID stored in file /var/tmp/ntopng.pid
27/Nov/2013 10:17:01 [HTTPserver.cpp:343] HTTP server listening on port 80
[/opt/ntopng/httpdocs][/opt/ntopng/scripts]
27/Nov/2013 10:17:01 [main.cpp:179] Using RRD version 1.4.7
27/Nov/2013 10:17:01 [main.cpp:188] Working directory: /etc/ntopng/data
27/Nov/2013 10:17:01 [main.cpp:190] Scripts/HTML pages directory:
/usr/local/share/ntopng
27/Nov/2013 10:17:01 [Ntop.cpp:161] Welcome to ntopng x86_64 v.1.1.1
(r7037) - (C) 1998-13 ntop.org
27/Nov/2013 10:17:01 [Redis.cpp:42] Successfully connected to Redis
127.0.0.1:6379
27/Nov/2013 10:17:01 [PeriodicActivities.cpp:53] Started periodic
activities loop...
27/Nov/2013 10:17:01 [NetworkInterface.cpp:629] Started packet polling on
interface eth0...
Segmentation fault
root@nmon:/opt/ntopng#


Let me know what I can do to help.

- Jamie



On Wed, Nov 27, 2013 at 10:06 AM, Luca Deri <[email protected]> wrote:

> Jamie/Zachary
> this looks like a crash in the IAX nDPI module.
>
> If you are able to reproduce it using a pcap file, I can try to debug it
>
> Regards Luca
>
> On 27 Nov 2013, at 16:00, Jamie Gwatkin <[email protected]> wrote:
>
> I had the same issue, turned out I didn't have Redis installed.
>
> Make sure that's running I guess.
>
>
> On Tue, Nov 26, 2013 at 4:44 PM, Zachary McGibbon <
> [email protected]> wrote:
>
>> I'm getting a segfault on the latest build:
>>
>> root@ubuntu-nbox:/etc# gdb ntopng
>> GNU gdb (Ubuntu/Linaro 7.4-2012.04-0ubuntu2.1) 7.4-2012.04
>> Copyright (C) 2012 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 "x86_64-linux-gnu".
>> For bug reporting instructions, please see:
>> <http://bugs.launchpad.net/gdb-linaro/>...
>> Reading symbols from /usr/local/bin/ntopng...(no debugging symbols
>> found)...done.
>> (gdb) run -m "132.206.0.0/16,132.216.0.0/16,142.157.0.0/16" -G
>> var/run/ntopng.pid -A 2 -i eth1
>> Starting program: /usr/local/bin/ntopng -m "
>> 132.206.0.0/16,132.216.0.0/16,142.157.0.0/16" -G var/run/ntopng.pid -A 2
>> -i eth1
>> warning: no loadable sections found in added symbol-file system-supplied
>> DSO at 0x7ffff7ffa000
>> [Thread debugging using libthread_db enabled]
>> Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".
>> 26/Nov/2013 16:42:34 [Ntop.cpp:457] Setting local networks to
>> 132.206.0.0/16,132.216.0.0/16,142.157.0.0/16
>> 26/Nov/2013 16:42:34 [PcapInterface.cpp:54] Reading packets from
>> interface eth1...
>> 26/Nov/2013 16:42:34 [Ntop.cpp:564] Registered interface eth1 [id: 0]
>> 26/Nov/2013 16:42:34 [Utils.cpp:238] User changed to nobody
>> 26/Nov/2013 16:42:34 [main.cpp:149] ERROR: Unable to store PID in file
>> var/run/ntopng.pid
>> [New Thread 0x7ffff59fe700 (LWP 2155)]
>> [New Thread 0x7ffff51fd700 (LWP 2156)]
>> [New Thread 0x7ffff49fc700 (LWP 2157)]
>> [New Thread 0x7fffeffff700 (LWP 2158)]
>> [New Thread 0x7fffef7fe700 (LWP 2159)]
>> [New Thread 0x7fffeeffd700 (LWP 2160)]
>> 26/Nov/2013 16:42:34 [HTTPserver.cpp:343] HTTP server listening on port
>> 3000 [/usr/local/share/ntopng/httpdocs][/usr/local/share/ntopng/scripts]
>> 26/Nov/2013 16:42:34 [main.cpp:179] Using RRD version 1.4.7
>> 26/Nov/2013 16:42:34 [main.cpp:188] Working directory: /var/tmp/ntopng
>> 26/Nov/2013 16:42:34 [main.cpp:190] Scripts/HTML pages directory:
>> /usr/local/share/ntopng
>> 26/Nov/2013 16:42:34 [Ntop.cpp:161] Welcome to ntopng x86_64 v.1.1.1
>> (r7031) - (C) 1998-13 ntop.org
>> 26/Nov/2013 16:42:34 [Redis.cpp:42] Successfully connected to Redis
>> 127.0.0.1:6379
>> 26/Nov/2013 16:42:34 [PeriodicActivities.cpp:53] Started periodic
>> activities loop...
>> [New Thread 0x7fffee7fc700 (LWP 2161)]
>> [New Thread 0x7fffedffb700 (LWP 2162)]
>> [New Thread 0x7fffed7fa700 (LWP 2163)]
>> [New Thread 0x7fffecff9700 (LWP 2164)]
>> [New Thread 0x7fffd3fff700 (LWP 2165)]
>> 26/Nov/2013 16:42:34 [NetworkInterface.cpp:629] Started packet polling on
>> interface eth1...
>> [New Thread 0x7fffd37fe700 (LWP 2166)]
>>
>> Program received signal SIGSEGV, Segmentation fault.
>> [Switching to Thread 0x7fffd3fff700 (LWP 2165)]
>> 0x000000000045cdf7 in ndpi_search_iax ()
>>
>> root@ubuntu-nbox:/etc# uname -a
>> Linux ubuntu-nbox 3.8.0-33-generic #48~precise1-Ubuntu SMP Thu Oct 24
>> 16:28:06 UTC 2013 x86_64 x86_64 x86_64 GNU/Linux
>>
>>
>> _______________________________________________
>> Ntop mailing list
>> [email protected]
>> http://listgateway.unipi.it/mailman/listinfo/ntop
>>
>>
> _______________________________________________
> Ntop mailing list
> [email protected]
> http://listgateway.unipi.it/mailman/listinfo/ntop
>
>
>
> _______________________________________________
> Ntop mailing list
> [email protected]
> http://listgateway.unipi.it/mailman/listinfo/ntop
>
>
_______________________________________________
Ntop mailing list
[email protected]
http://listgateway.unipi.it/mailman/listinfo/ntop

Reply via email to