{"action":"created","issue":{"url":"https://api.github.com/repos/ntop/ntopng/issues/485","repository_url":"https://api.github.com/repos/ntop/ntopng","labels_url":"https://api.github.com/repos/ntop/ntopng/issues/485/labels{/name}","comments_url":"https://api.github.com/repos/ntop/ntopng/issues/485/comments","events_url":"https://api.github.com/repos/ntop/ntopng/issues/485/events","html_url":"https://github.com/ntop/ntopng/issues/485","id":147551102,"number":485,"title":"Segmentation Fault","user":{"login":"sirvulcan","id":1088408,"avatar_url":"https://avatars.githubusercontent.com/u/1088408?v=3","gravatar_id":"","url":"https://api.github.com/users/sirvulcan","html_url":"https://github.com/sirvulcan","followers_url":"https://api.github.com/users/sirvulcan/followers","following_url":"https://api.github.com/users/sirvulcan/following{/other_user}","gists_url":"https://api.github.com/users/sirvulcan/gists{/gist_id}","starred_url":"https://api.github.com/users/sirvulcan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sirvulcan/subscriptions","organizations_url":"https://api.github.com/users/sirvulcan/orgs","repos_url":"https://api.github.com/users/sirvulcan/repos","events_url":"https://api.github.com/users/sirvulcan/events{/privacy}","received_events_url":"https://api.github.com/users/sirvulcan/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2016-04-11T20:47:35Z","updated_at":"2016-04-11T21:04:56Z","closed_at":"2016-04-11T21:04:56Z","body":"Ive just decided to give the 2.x series a go but im getting a segmentation fault. This happens on both the 2.2 latest release and the latest 2.3 git revision. We are running Debian 7 currently (upgrading to 8 is not an option at this point in time). We are running 1.9 at the same time but the issue also occurs if we stop the 1.9 version and just run 2.x.\r\n\r\nIve tarred up the binary and the core dump - http://sirvulcan.co.nz/ntop_bin_core.tgz . This is based on the latest git revision.\r\n\r\nv.2.3.160407 [Community Edition]\r\nGIT rev:   dev:46f69860c596ba6fa2441b05b2d035a03d561b91:20160407\r\n\r\n`\r\nStarting program: /usr/local/ntop/bin/ntopng -i eth0 -w 30001 --dont-change-user\r\n[Thread debugging using libthread_db enabled]\r\nUsing host libthread_db library \"/lib/i386-linux-gnu/i686/cmov/libthread_db.so.1\".\r\n12/Apr/2016 08:44:32 [Ntop.cpp:989] Setting local networks to 127.0.0.0/8\r\n12/Apr/2016 08:44:32 [Redis.cpp:106] Successfully connected to redis 127.0.0.1:6379@0\r\n12/Apr/2016 08:44:32 [PcapInterface.cpp:85] Reading packets from interface eth0...\r\n12/Apr/2016 08:44:32 [Ntop.cpp:1209] Registered interface eth0 [id: 0]\r\n12/Apr/2016 08:44:32 [Ntop.cpp:1221] Registered interface view eth0 [id: 0]\r\n12/Apr/2016 08:44:32 [main.cpp:258] PID stored in file /var/tmp/ntopng.pid\r\n12/Apr/2016 08:44:32 [HTTPserver.cpp:466] Please read https://github.com/ntop/ntopng/blob/dev/doc/README.SSL if you want to enable SSL.\r\n[New Thread 0xb6d9ab70 (LWP 6042)]\r\n[New Thread 0xb6599b70 (LWP 6043)]\r\n[New Thread 0xb5d98b70 (LWP 6044)]\r\n[New Thread 0xb5597b70 (LWP 6045)]\r\n[New Thread 0xb4d96b70 (LWP 6046)]\r\n[New Thread 0xb4595b70 (LWP 6047)]\r\n12/Apr/2016 08:44:32 [HTTPserver.cpp:509] Web server dirs [/usr/local/ntop/share/ntopng/httpdocs][/usr/local/ntop/share/ntopng/scripts]\r\n12/Apr/2016 08:44:32 [HTTPserver.cpp:512] HTTP server listening on port 30001\r\n12/Apr/2016 08:44:32 [main.cpp:295] Working directory: /var/tmp/ntopng\r\n12/Apr/2016 08:44:32 [main.cpp:297] Scripts/HTML pages directory: /usr/local/ntop/share/ntopng\r\n12/Apr/2016 08:44:32 [Ntop.cpp:259] Welcome to ntopng i686 v.2.3.160407 - (C) 1998-16 ntop.org\r\n12/Apr/2016 08:44:32 [PeriodicActivities.cpp:53] Started periodic activities loop...\r\n[New Thread 0xb3d94b70 (LWP 6048)]\r\n[New Thread 0xb3593b70 (LWP 6049)]\r\n[New Thread 0xb2d51b70 (LWP 6050)]\r\n[New Thread 0xb2550b70 (LWP 6051)]\r\n12/Apr/2016 08:44:32 [RuntimePrefs.cpp:34] Dumping alerts into syslog\r\n12/Apr/2016 08:44:32 [Ntop.cpp:515] Adding 10.2.0.0/16 as IPv4 local network for eth0\r\n\r\nProgram received signal SIGSEGV, Segmentation fault.\r\n0x080a15b7 in Ntop::loadLocalInterfaceAddress (this=0x8236290) at src/Ntop.cpp:541\r\n541               s6->sin6_addr.s6_addr[j] &= i >= 8 ? 0xff : (u_int32_t)(( 0xffU << ( 8 - i ) ) & 0xffU );\r\n\r\n(gdb) bt\r\n#0  0x080a15b7 in Ntop::loadLocalInterfaceAddress (this=0x8236290) at src/Ntop.cpp:541\r\n#1  0x080a105f in Ntop::start (this=0x8236290) at src/Ntop.cpp:282\r\n#2  0x08092b15 in main (argc=6, argv=0xbffffce4) at src/main.cpp:311\r\n\r\n`\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/ntop/ntopng/issues/comments/208560023","html_url":"https://github.com/ntop/ntopng/issues/485#issuecomment-208560023","issue_url":"https://api.github.com/repos/ntop/ntopng/issues/485","id":208560023,"user":{"login":"lucaderi","id":4493366,"avatar_url":"https://avatars.githubusercontent.com/u/4493366?v=3","gravatar_id":"","url":"https://api.github.com/users/lucaderi","html_url":"https://github.com/lucaderi","followers_url":"https://api.github.com/users/lucaderi/followers","following_url":"https://api.github.com/users/lucaderi/following{/other_user}","gists_url":"https://api.github.com/users/lucaderi/gists{/gist_id}","starred_url":"https://api.github.com/users/lucaderi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lucaderi/subscriptions","organizations_url":"https://api.github.com/users/lucaderi/orgs","repos_url":"https://api.github.com/users/lucaderi/repos","events_url":"https://api.github.com/users/lucaderi/events{/privacy}","received_events_url":"https://api.github.com/users/lucaderi/received_events","type":"User","site_admin":false},"created_at":"2016-04-11T21:04:56Z","updated_at":"2016-04-11T21:04:56Z","body":"@sirvulcan I think I have fixed the bug. Please rebuild the code and try again. Thanks for reporting the issue. In case the bug isn't fixes please reopen it."}}