GithubHelp home page GithubHelp logo

Core dump on ntopng 6.0.240111 about ntopng HOT 8 CLOSED

mzac avatar mzac commented on May 27, 2024
Core dump on ntopng 6.0.240111

from ntopng.

Comments (8)

cardigliano avatar cardigliano commented on May 27, 2024

@mzac please drop an email to cardigliano at ntop.org, I will provide you a binary to debug this. Thank you.

from ntopng.

cardigliano avatar cardigliano commented on May 27, 2024

Thread 8 "ntopng" received signal SIGSEGV, Segmentation fault.
[Switching to Thread 0x7fffdda2f640 (LWP 1402930)]
0x00005555556bfc53 in IpAddress::match (this=0x2b2e2f2e2e2e2e2e, tree=0x7fffdda2b7c0) at src/IpAddress.cpp:386

Thread 8 (Thread 0x7fffdda2f640 (LWP 1402930) "ntopng"):
#0 0x00005555556bfc53 in IpAddress::match (this=0x2b2e2f2e2e2e2e2e, tree=0x7fffdda2b7c0) at src/IpAddress.cpp:386
#1 0x00005555556443e3 in Flow::lua (this=0x7ffef92a4bc0, vm=0x7fffc006bca8, ptree=0x7fffdda2b7c0, details_level=details_high, skipNewTable=true) at src/Flow.cpp:2722
#2 0x000055555572e65b in NetworkInterface::getFlows (this=0x55555b8959c0, vm=0x7fffc006bca8, begin_slot=0x7fffdda2b26c, walk_all=true, allowed_hosts=0x7fffdda2b7c0, host=0x0, talking_with_host=0x0, client=0x0, server=0x0, flow_info=0x0, p=0x7fffc00ff210) at src/NetworkInterface.cpp:6130
#3 0x00005555556e265d in ntop_get_interface_flows_info (vm=0x7fffc006bca8) at src/LuaEngineInterface.cpp:2561
#4 0x000055555598d542 in luaD_precall ()
#5 0x000055555599c0dc in luaV_execute ()
#6 0x000055555598d844 in luaD_callnoyield ()
#7 0x000055555598c933 in luaD_rawrunprotected ()
#8 0x000055555598dba4 in luaD_pcall ()
#9 0x000055555598a3f0 in lua_pcallk ()
#10 0x000055555583e40b in LuaHandler::luaL_dofileM (this=0x7fffc034e790, execute=true) at pro/src/LuaHandler.cpp:31
#11 0x00005555556d2d5a in __ntop_lua_handlefile (L=0x7fffc006bca8, script_path=0x7fffdda2cac0 "/usr/share/ntopng/scripts/lua/get_flows_data.lua", ex=true) at src/LuaEngine.cpp:357
#12 0x00005555556d6049 in LuaEngine::handle_script_request (this=0x7fffc01b6fe0, conn=0x7fffc0000b70, request_info=0x7fffc0000b70, script_path=0x7fffdda2cac0 "/usr/share/ntopng/scripts/lua/get_flows_data.lua", attack_attempt=0x7fffdda2c7f8, user=0x7fffdda2c930 "zmcgib.srv", group=0x7fffdda2c960 "administrator", session_csrf=0x7fffdda2c990 "4b1355cf274bce76c7577766a2c0fb48", localuser=false) at src/LuaEngine.cpp:1388
#13 0x000055555568ea1c in handle_lua_request (conn=0x7fffc0000b70) at src/HTTPserver.cpp:1566
#14 0x0000555555686ec7 in handle_request (conn=0x7fffc0000b70) at src/../third-party/mongoose/mongoose.c:4447
#15 0x0000555555689380 in process_new_connection (conn=0x7fffc0000b70) at src/../third-party/mongoose/mongoose.c:5173
#16 0x0000555555689937 in worker_thread (thread_func_param=0x55555dc98400) at src/../third-party/mongoose/mongoose.c:5270
#17 0x00007ffff708cac3 in start_thread (arg=) at ./nptl/pthread_create.c:442
#18 0x00007ffff711e850 in clone3 () at ../sysdeps/unix/sysv/linux/x86_64/clone3.S:81

from ntopng.

cardigliano avatar cardigliano commented on May 27, 2024

@mzac please provide your configuration file, thank you

from ntopng.

cardigliano avatar cardigliano commented on May 27, 2024

It seems this happens when calling ntop.getFlowsInfo on a view interface (@mzac you were clicking on flows in a view interface correct?),
which is calling src_ip->match(ptree) in Flow::lua where the segfault happens (src/IpAddress.cpp:386).
ntopng stable 6.0.240111

from ntopng.

mzac avatar mzac commented on May 27, 2024

Yes correct we are using views. I'll send you the config by email.

from ntopng.

cardigliano avatar cardigliano commented on May 27, 2024

This seems to be related to #8186

from ntopng.

MatteoBiscosi avatar MatteoBiscosi commented on May 27, 2024

The issue in the dev version should be fixed

from ntopng.

MatteoBiscosi avatar MatteoBiscosi commented on May 27, 2024

Verified as fixed

from ntopng.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.