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 gdbShutdown the urbackup server:
killall urbackupsrvInstall tmux:
pkg_add -r tmuxRun tmux:
tmuxStart the UrBackup server in gdb:
gdb --args/usr/local/sbin/urbackupsrv run -g 104857600 -u rootStart the program in gdb:
runOnce it crashed enter the shell of the plugin jail again and attach to the tmux session:
tmux attachEnter "bt" to get the backtrace to the location it crashed:
btAdd 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