...
Steps to get a gdb backtrace:
- 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_srvurbackupsrv - Install tmux:
pkg_add -r tmux - Run tmux:
tmux - Start the UrBackup server in gdb:
start_urbackup_server --loglevel debug --run_in_gdbgdb --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
...
- Export the Plugin filesystem via filesharingChange 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