Debugging a crash
ostserver and ostserver-complete ship stripped - no debug info inside, to keep the package small. A separate package, ostserver-dbgsym, carries that debug info split out into its own build-id-keyed files, the same mechanism Debian’s own automatic -dbgsym packages use. Install it when you need a real, symbolized backtrace after a crash instead of a wall of ?? addresses.
1. Install ostserver-dbgsym
Download it from the same place you got ostserver/ostserver-complete, following the same <package>_<channel>_<suffix> naming (see Manual installation):
DEB=ostserver-dbgsym_latest_2604_amd64.deb # Ubuntu 26.04 (Resolute)
# DEB=ostserver-dbgsym_latest_2404_amd64.deb # Ubuntu 24.04 (Noble)
# DEB=ostserver-dbgsym_latest_2204_amd64.deb # Ubuntu 22.04 (Jammy)
wget "https://gitlab.ostserver.fr/api/v4/projects/1/packages/generic/latest/latest/${DEB}"
sudo apt install -y "./${DEB}"Debug symbols are matched to a binary by build-id, not by name - a mismatched version resolves nothing. If you track a specific release tag rather than latest, download the dbgsym package for that same tag, and re-install it every time you update ostserver/ostserver-complete.
This page covers the package downloaded from GitLab. The Launchpad PPA produces its debug symbols through Ubuntu’s own automatic ddebs mechanism instead, published separately from the main PPA - not covered here.
ostserver-dbgsym is sizable (it’s nothing but debug info) and only useful while you’re actively investigating something - sudo apt remove ostserver-dbgsym once you’re done.
2. Enable core dumps for the service
By default, a crashing ostserver may leave nothing behind to look at. The simplest fix is systemd-coredump, since ostserver already runs as a systemd service:
systemctl status systemd-coredump.socketIf it’s not installed:
sudo apt install systemd-coredumpThen make sure the service itself is allowed to dump:
sudo systemctl edit ostserver.serviceAdd:
[Service]
LimitCORE=infinitySave, then reload and restart:
sudo systemctl daemon-reload
sudo systemctl restart ostserver3. Running the process by hand (to reproduce a crash live)
To catch a crash as it happens rather than waiting for one, stop the service and run the same binary with the same arguments under gdb, as the same user:
sudo systemctl stop ostserver
sudo -u ostserver bash -c '
grep -v "^[[:space:]]*#" "$HOME/.ost/ostserver.parms" 2>/dev/null \
| grep -v "^[[:space:]]*$" \
| xargs -d "\n" gdb --args /usr/bin/ostserver
'This reuses the exact argument parsing ostserver.service itself uses (see Managing the ostserver service), so the manual run behaves like the real service. Inside gdb:
(gdb) runReproduce the crash. When it hits:
(gdb) bt fullWhen you’re done, restart the real service:
sudo systemctl start ostserver4. Analyzing a crash that already happened
With systemd-coredump installed (step 2), every crash is captured automatically - nothing else to configure:
coredumpctl list ostserver
coredumpctl debug ostservercoredumpctl debug opens gdb directly on the most recent dump, with symbols resolved automatically from ostserver-dbgsym by build-id. From there:
(gdb) bt full
(gdb) thread apply all btWithout it, a crash only leaves a core file if ulimit -c allows one and kernel.core_pattern points somewhere sensible - open that file directly instead:
gdb /usr/bin/ostserver /path/to/core-filegdb finds the matching .debug file under /usr/lib/debug/.build-id/ the same way, no extra flag needed.
The bt full (or thread apply all bt for a multi-threaded crash) output is what’s worth keeping - that’s the part to attach to a bug report.