I am getting "Segmentation fault" errors while running the router app using Debian 10.7 and CentOS 8.3 Linux. Also tested Oracle Linux 8 and Fedora 33, same error. I had success running the router app using Debian 9.13 and CentOS 7.7. See gdb debug below:
(gdb) run -c init.cfg
Starting program: /home/router -c init.cfg
Missing separate debuginfos, use: yum debuginfo-install glibc-2.28-127.el8.x86_64
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib64/libthread_db.so.1".
warning: Loadable section ".note.gnu.property" outside of ELF segments
I am router
opt = c
dev_type = bip
dev_type = mstp
cmd file parse success
[New Thread 0x7ffff7059700 (LWP 4545)]
Interface: ens18
IP Address: 10.42.32.183
IP Broadcast Address: 10.42.32.255
UDP Port: 0xBAC0 [47808]
[New Thread 0x7ffff6858700 (LWP 4546)]
Initializing...
RS485: Initializing /dev/ttyUSB0=success!
[New Thread 0x7ffff6057700 (LWP 4547)]
Thread 1 "router" received signal SIGSEGV, Segmentation fault.
0x00000000004083f4 in create_network_message ()
Missing separate debuginfos, use: yum debuginfo-install libconfig-1.5-9.el8.x86_64
(gdb)