/
Debugging with gdb on Linux
Debugging with gdb on Linux
In case the UrBackup server crashes on Linux a gdb stacktrace is a very helpful tool in finding the cause of the crash.
- You'll need a self-compiled version of the UrBackup server, as the precompiled versions do not include debugging information. See e.g. here for how it is done
- You need to have the gdb debugger installed
- With UrBackup server > 2.0:
- Run the UrBackup server via
gdb --args urbackupsrv run -v debug
If you want to log off while it runs, run it in screen
- Run the UrBackup server via
- With UrBackup Server >= 1.3:
- Run the UrBackup server via
start_urbackup_server --loglevel debug --run_in_gdb
If you want to log off while it runs, run it in screen
- Run the UrBackup server via
- If log rotation is enabled enter "handle SIGHUP nostop" in the gdb command prompt to prevent gdb from stopping during log rotation
- Enter run in the gdb command prompt to start the server
- Once it crashed enter bt to get information on the location where it crashed.
, multiple selections available,
Related content
Troubleshooting UrBackup Server Database
Troubleshooting UrBackup Server Database
Read with this
Debugging with gdb on FreeNAS
Debugging with gdb on FreeNAS
More like this
How to test the UrBackup Server
How to test the UrBackup Server
More like this
Headless Linux client setup
Headless Linux client setup
More like this
Install UrBackup Server on a VM/Ubuntu 14.04
Install UrBackup Server on a VM/Ubuntu 14.04
More like this
Python3 web api wrapper
Python3 web api wrapper
More like this