/
Debugging with gdb on FreeNAS
Debugging with gdb on FreeNAS
In case the UrBackup server crashes on FreeNAS a gdb stacktrace is a very helpful tool in finding the cause of the crash.
Steps to get a gdb backtrace:
- Enter the shell of the UrBackup jail
- Install gdb in the shell via the command
pkg_add -r gdb - Shutdown the urbackup server:
killall urbackupsrv - Install tmux:
pkg_add -r tmux - Run tmux:
tmux - Start the UrBackup server in gdb:
gdb --args/usr/local/sbin/urbackupsrv run -g 104857600 -u root
- Start the program in gdb:
run - Once it crashed enter the shell of the plugin jail again and attach to the tmux session:
tmux attach - Enter "bt" to get the backtrace to the location it crashed:
bt - Add the trace information to your bug report
How to get debug logging info:
- Export the Plugin filesystem via filesharing
- Access debug logfile at JAIL_ROOT/var/log
, multiple selections available,
Related content
Debugging with gdb on Linux
Debugging with gdb on Linux
More like this
How to test the UrBackup Server
How to test the UrBackup Server
More like this
Enable extensive debug logging
Enable extensive debug logging
More like this
Headless Linux client setup
Headless Linux client setup
More like this
Python3 web api wrapper
Python3 web api wrapper
More like this
How To
How To
More like this