sbbs binary: Debian Linux AARCH64 sigfault or permission denied
I was successfully able to build Synchronet on Debian Linux 12 aarch64 (arm64). The configuration command scfg
works, but sbbs
fails with either segmentation fault
(when run without sudo permission), or permission denied to ctrl/*
when run as sudo. This same behavior is observed even when all server ports are changed to non-privileged ports (like 2323
, etc). It is also observed on the tag sbbs319b.
debianlinuxexp% uname -a
Linux debianlinuxexp 6.1.0-16-arm64 #1 SMP Debian 6.1.67-1 (2023-12-12) aarch64 GNU/Linux
- Log for segfault (when run as non-root):
% SBBSCTRL=/home/aackmann/sbbs/ctrl SBBSEXEC=/home/aackmann/sbbs/exec XDG_RUNTIME_DIR=/home/aackmann/.cache/sbbs /home/aackmann/sbbs/exec/sbbs
Synchronet Console for Linux-armv8 Version 3.20a Copyright 2022 Rob Swindell
Reading /home/aackmann/sbbs/ctrl/sbbs.ini
Loading configuration files from /home/aackmann/sbbs/ctrl
!Started as non-root user (id 1000): May fail to bind TCP/UDP ports below 1024
12/19 10:42:37 term Synchronet Terminal Server Version 3.20a
12/19 10:42:37 term Compiled master/ded39adbd Dec 19 2023 08:10:52 with GCC 12.2.0
12/19 10:42:37 term Initializing on Tue Dec 19 10:42:37 2023 with options: 1022
12/19 10:42:37 term Loading configuration files from /home/aackmann/sbbs/ctrl
12/19 10:42:37 web Synchronet Web Server Version 3.20a
12/19 10:42:37 web Compiled master/ded39adbd Dec 19 2023 08:11:29 with GCC 12.2.0
12/19 10:42:37 web Initializing on Tue Dec 19 10:42:37 2023 with options: 8a0
12/19 10:42:37 web Loading configuration files from /home/aackmann/sbbs/ctrl
12/19 10:42:37 term Verifying/creating data directories
12/19 10:42:37 term Verifying/creating node directories
12/19 10:42:37 term Telnet Server listening on socket 0.0.0.0 port 2323
12/19 10:42:37 term Telnet Server listening on socket :: port 2323
12/19 10:42:37 term RLogin Server listening on socket 0.0.0.0 port 2325
12/19 10:42:37 term RLogin Server listening on socket :: port 2325
12/19 10:42:37 term SSH Server listening on socket 0.0.0.0 port 2324
12/19 10:42:37 term SSH Server listening on socket :: port 2324
12/19 10:42:37 web Web Server listening on socket 0.0.0.0 port 2400
12/19 10:42:37 web Web Server listening on socket :: port 2400
12/19 10:42:37 web Secure Web Server listening on socket 0.0.0.0 port 2401
12/19 10:42:37 evnt BBS Events BBS Events thread started
12/19 10:42:37 web Secure Web Server listening on socket :: port 2401
12/19 10:42:37 web Web Server thread started
12/19 10:42:37 term Node 1 local spy using socket /home/aackmann/.cache/sbbs/localspy1.sock
[Threads: 6 Sockets: 10 Clients: 0 Served: 0 Errors: 0] (?=Help): zsh: segmentation fault SBBSCTRL=/home/aackmann/sbbs/ctrl SBBSEXEC=/home/aackmann/sbbs/exec =
- Permission issues when run as sudo:
% SBBSCTRL=/home/aackmann/sbbs/ctrl SBBSEXEC=/home/aackmann/sbbs/exec XDG_RUNTIME_DIR=/home/aackmann/.cache/sbbs sudo -E /home/aackmann/sbbs/exec/sbbs
[sudo] password for aackmann:
Synchronet Console for Linux-armv8 Version 3.20a Copyright 2022 Rob Swindell
Reading /home/aackmann/sbbs/ctrl/sbbs.ini
Loading configuration files from /home/aackmann/sbbs/ctrl
Current usr ids: ruid - 0, euid - 0, suid - 0
Current grp ids: rgid - 0, egid - 0, sgid - 0
The process 11317 was given capabilities =ep
Setting initial privileges
No password name for:
Successfully changed user-id to
Setting minimum privileges
Current usr ids: ruid - 0, euid - 0, suid - 0
Current grp ids: rgid - 0, egid - 0, sgid - 0
The process 11317 was given capabilities cap_net_bind_service,cap_sys_resource=ep
WARNING: No user account specified, running as root!
12/19 10:45:37 web Synchronet Web Server Version 3.20a
12/19 10:45:37 web Compiled master/ded39adbd Dec 19 2023 08:11:29 with GCC 12.2.0
12/19 10:45:37 web Initializing on Tue Dec 19 10:45:37 2023 with options: 8a0
12/19 10:45:37 term Synchronet Terminal Server Version 3.20a
12/19 10:45:37 term Compiled master/ded39adbd Dec 19 2023 08:10:52 with GCC 12.2.0
12/19 10:45:37 term Initializing on Tue Dec 19 10:45:37 2023 with options: 1022
12/19 10:45:42 web !ERROR 13 (Permission denied) changing directory to: /home/aackmann/sbbs/ctrl
12/19 10:45:42 web Loading configuration files from /home/aackmann/sbbs/ctrl
12/19 10:45:42 term !ERROR 13 (Permission denied) changing directory to: /home/aackmann/sbbs/ctrl
12/19 10:45:42 term Loading configuration files from /home/aackmann/sbbs/ctrl
12/19 10:45:52 term !ERROR 13 (Permission denied) opening /home/aackmann/sbbs/ctrl/main.ini
12/19 10:45:57 web !ERROR 13 (Permission denied) opening /home/aackmann/sbbs/ctrl/msgs.ini
12/19 10:45:57 term !FAILED to load configuration files
12/19 10:45:57 term Terminal Server thread terminating
12/19 10:45:57 term Terminal Server thread terminated (0 clients served)
12/19 10:46:02 web !FAILED to load configuration files
12/19 10:46:02 web #### Web Server thread terminated (0 clients served, 0 concurrently)
[Threads: 2 Sockets: 0 Clients: 0 Served: 0 Errors: 6] (?=Help): q