mirror of
https://github.com/ntop/ntopng.git
synced 2026-04-28 23:19:33 +00:00
1.5 KiB
1.5 KiB
If the ntopng service crashes with a segmentation fault, there is a bug in the software which must be fixed.
Before opening a new issue, please ensure that you are using a recent (ideally the latest) ntopng version. In order to speed up the troubleshooting process, a stack trace of the crash is needed.
Linux
An easy way to get a stack trace on Linux is to run ntopng through the gdb debugger:
- Ask to the ntop team a binary with debug symbols, specifing ntopng version
- Install gdb (e.g.
sudo apt-get install gdb) - Stop the running service:
sudo systemctl stop ntopng - Start gdb:
gdb --args <downloaded binary path> /etc/ntopng/ntopng.conf - Execute
handle SIG33 nostop noprint passandhandle SIGPIPE nostop noprint pass - Execute
runto start debugging ntopng - Wait for the crash to occur
- Now run
btinto gdb to get a stack trace of the crash - Send the bt output to ntop team
Windows
The WinDbg tool can be used to get a stack trace on Windows:
- Download and install WinDbg Preview: https://docs.microsoft.com/en-us/windows-hardware/drivers/debugger/debugger-download-tools
- Stop the running service:
C:\Program Files\ntopng\ntopng.exe /r - Open the WinDbg debugger and load the ntopng executable
- Run the
gcommand to start ntopng - Wait for the crash to occur
- Now run
kto get a stack trace of the crash
See https://docs.microsoft.com/en-us/windows-hardware/drivers/debugger/getting-started-with-windbg for more details.