Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ntopng crashes when too many ZMQ interfaces are used #4975

Closed
lucaderi opened this issue Jan 26, 2021 · 1 comment
Closed

ntopng crashes when too many ZMQ interfaces are used #4975

lucaderi opened this issue Jan 26, 2021 · 1 comment
Assignees
Labels

Comments

@lucaderi
Copy link
Member

it should not crash but just report a limit was hit

#7 0x000000000040e79a in main(int, char**) (argc=, argv=) at src/main.cpp:194
(gdb) f 3
#3 0x00007ffff794af28 in zmq::epoll_t::epoll_t(zmq::ctx_t const&) () from /lib64/libzmq.so.5
(gdb) f
#3 0x00007ffff794af28 in zmq::epoll_t::epoll_t(zmq::ctx_t const&) () from /lib64/libzmq.so.5
(gdb) f 6
#6 0x0000000000471462 in ZMQCollectorInterface::ZMQCollectorInterface (this=0x62275b0, _endpoint=) at src/ZMQCollectorInterface.cpp:54
54 subscriber[num_subscribers].socket = zmq_socket(context, ZMQ_SUB);
(gdb) q
A debugging session is active.

@simonemainardi
Copy link
Contributor

Crash was happening with 100 ZMQ intefaces.

After internal review, maximum number of ntopng interfaces has been reduced and the crash no longer occur (3159f49). This is also documented in https://www.ntop.org/guides/ntopng/faq.html#maximum-number-of-interfaces

Specifying more than the maximum number of interfaces causes exceeding interfaces to be ignored.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants