...
Steps to get a gdb backtrace:
- You need the 1.4.2 PBI with debug symbols. Get it from here: http://sourceforge.net/projects/urbackup/files/Server/1.4.2/urbackup-server-1.4.2-amd64-dbg.pbi/download Use the instructions here to install the different version: Upgrading UrBackup on FreeNAS (via PBI)Newer FreeNAS builds should include debugging symbols so the normal package should suffice.
- Enter the shell of the UrBackup plugin jail
- Install gdb in the shell via the command
pkg_add -r gdb - Shutdown the urbackup server:
killall urbackup_srv - Install tmux:
pkg_add -r tmux - Run tmux:
tmux - Start the UrBackup server in gdb:
start_urbackup_server --loglevel debug --run_in_gdb - 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
- Change in JAIL_ROOT/etc/rc.d/urbackup_srv: "–pidfile /var/run/urbackup_srv.pid --user root" to "–pidfile /var/run/urbackup_srv.pid --user root --loglevel debug" and restart the jail
- Access debug logfile at JAIL_ROOT/var/log