Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Steps to get a gdb backtrace:

 

  1. Newer FreeNAS builds should include debugging symbols so the normal package should suffice.
  2. Enter the shell of the UrBackup plugin jail
  3. Install gdb in the shell via the command
    pkg_add -r gdb
  4. Shutdown the urbackup server:
    killall urbackup_srvurbackupsrv
  5. Install tmux:
    pkg_add -r tmux
  6. Run tmux:
    tmux
  7. Start the UrBackup server in gdb:
    start_urbackup_server --loglevel debug --run_in_gdbgdb --args /usr/local/sbin/urbackupsrv run -g 104857600 -u root
  8. Start the program in gdb:
    run
  9. Once it crashed enter the shell of the plugin jail again and attach to the tmux session:
    tmux attach
  10. Enter "bt" to get the backtrace to the location it crashed:
    bt
  11. Add the trace information to your bug report

...

  1. 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
  2. Access debug logfile at JAIL_ROOT/var/log